https://www.puppet.com/community logo
Join Slack
Powered by
# puppet
  • s

    Stefan Hristovski

    08/15/2022, 10:32 AM
    hey guys, anyone here familiar with cpanel and the newer theme jupiter? I am trying to do the following: • The theme is created along with our own logo / footer - header I am trying to connect the theme to go into other cpanel servers (multiple agents) but I fail to do so. My code is : class cpanelthemes {
    File {'<http://cpanel_jupiter_footer.html.tt|cpanel_jupiter_footer.html.tt>':
    path    => '/var/cpanel/customizations/content_includes/cpanel_jupiter_footer.html.tt',
    content => template('cpanelthemes/cpanel_jupiter_footer.html.tt'),
    owner   => 'root',
    mode    => '0644',
    }
    }
    and also with exec command :
    exec { 'brand.txt':
    path     => 'whmapi1 update_customizations application=cpanel theme="jupiter" brand=$(cat /var/cpanel/customizations/content_includes/brand.txt)',
    creates  => '/var/cpanel/customizations/content_includes/brand.txt',
    provider => shell,
    }
    This only seems to create a brand.txt (it's a code that is too long but shortened for puppet) into a wrong directorium. Any tips on how to procceed with this? Thanks!
  • s

    Stefan Hristovski

    08/15/2022, 10:33 AM
    hey guys, anyone here familiar with cpanel and the newer theme jupiter? I am trying to do the following: • The theme is created along with our own logo / footer - header I am trying to connect the theme to go into other cpanel servers (multiple agents) but I fail to do so. My code is : class cpanelthemes {
    File {'<http://cpanel_jupiter_footer.html.tt|cpanel_jupiter_footer.html.tt>':
    path    => '/var/cpanel/customizations/content_includes/cpanel_jupiter_footer.html.tt',
    content => template('cpanelthemes/cpanel_jupiter_footer.html.tt'),
    owner   => 'root',
    mode    => '0644',
    }
    }
    and also with exec command :
    exec { 'brand.txt':
    path     => 'whmapi1 update_customizations application=cpanel theme="jupiter" brand=$(cat /var/cpanel/customizations/content_includes/brand.txt)',
    creates  => '/var/cpanel/customizations/content_includes/brand.txt',
    provider => shell,
    }
    This only seems to create a brand.txt (it's a code that is too long but shortened for puppet) into a wrong directorium. Any tips on how to procceed with this? Thanks!
  • h

    helindbe

    08/15/2022, 10:36 AM
    Your first line should be
    file {
    instead of
    File {
    by convention all resource types are written with a lower case initial letter. This is not your problem though since the upper case variant is also allowed to cater for some advanced use cases.
  • s

    Slackbot

    08/15/2022, 10:36 AM
    This message was deleted.
    s
    t
    • 3
    • 8
  • s

    Slackbot

    08/15/2022, 12:34 PM
    This message was deleted.
    a
    b
    +2
    • 5
    • 6
  • s

    Slackbot

    08/15/2022, 1:19 PM
    This message was deleted.
    t
    a
    • 3
    • 10
  • s

    Slackbot

    08/15/2022, 1:54 PM
    This message was deleted.
    a
    • 2
    • 2
  • a

    Allahshukur Ahmadzada

    08/15/2022, 1:54 PM
    I have used nightly build for ubuntu 22.04 support, on Aug 4 Puppet released 6.28.0-1 now\ I try to do apt install puppet-agent but it fails with "puppet-agent is already the newest version (6.28.0.7.g92834a081-1jammy)". So nightly has higher version number I have to force it? possible issues?
  • a

    Allahshukur Ahmadzada

    08/15/2022, 1:55 PM
    I have used nightly build for ubuntu 22.04 support, on Aug 4 Puppet released 6.28.0-1 now I try to do apt install puppet-agent (added new repo) but it fails with "puppet-agent is already the newest version (6.28.0.7.g92834a081-1jammy)". So nightly has higher version number I have to force it? possible issues?
  • j

    Joel Wilson

    08/15/2022, 4:49 PM
    Will you still get a duplicate resource conflict if one location has a specific resource declaration and the other is using
    ensure_resource()
    ? I seem to be and am trying to understand that.
  • j

    Joel Wilson

    08/15/2022, 4:50 PM
    Meaning, do I have to switch to
    ensure_resource()
    in both locations?
  • j

    Joel Wilson

    08/15/2022, 4:51 PM
    I mean, I created a spec test even to make sure that that wasn’t the case, but I seem to be getting that behavior anyway.
  • c

    csharpsteen

    08/15/2022, 4:52 PM
    You can still get a duplicate declaration error if the
    ensure_resource()
    is evaluated before the specific declaration. Order of evaluation for manifest files is very difficult to predict, let alone control, so using
    ensure_resource()
    in both locations is the way to go.
  • j

    Joel Wilson

    08/15/2022, 4:57 PM
    Ah. That makes sense.
  • j

    Joel Wilson

    08/15/2022, 4:58 PM
    That’s one of the things I wish was manageable in Puppet. non-Puppet CMs don’t even try. They just execute in a specific order, but have none of the benefit of declarative relationships.
  • j

    Joel Wilson

    08/15/2022, 4:58 PM
    That’s one of the things I wish was manageable in Puppet. non-Puppet CMs don’t even try. They just execute in a specific order, but have none of the benefit of declarative relationships.
  • s

    Slackbot

    08/15/2022, 5:00 PM
    This message was deleted.
    c
    j
    • 3
    • 4
  • s

    Skylar Thompson

    08/15/2022, 5:09 PM
    Another thing to keep in mind is that the parameters hash has to be identical for all instances for
    ensure_resource
    to work
    👍 1
  • j

    Joel Wilson

    08/15/2022, 5:24 PM
    We've only got classes declared in our ENC, but there are multiple of them. It's not a single role, in other words
  • s

    Slackbot

    08/15/2022, 5:44 PM
    This message was deleted.
    y
    k
    n
    • 4
    • 9
  • s

    Slackbot

    08/15/2022, 7:02 PM
    This message was deleted.
    y
    f
    • 3
    • 4
  • s

    Slackbot

    08/15/2022, 9:05 PM
    This message was deleted.
    b
    r
    r
    • 4
    • 38
  • r

    ramnad

    08/15/2022, 9:18 PM
    4.10.0
  • b

    bastelfreak

    08/15/2022, 9:33 PM
    https://github.com/rodjek/rspec-puppet a very very rough overview for rspec-puppet
  • r

    ramnad

    08/15/2022, 9:39 PM
    your website is very interesting. Any of your trainings are available on udemy, pluralsight or coursera ?
  • f

    fe80

    08/16/2022, 9:16 AM
    https://github.com/puppetlabs/pdk/pull/1180
  • a

    Anders

    08/16/2022, 1:34 PM
    Are there any plans to release a new version of PDK which supports Ubuntu 22.04? I believe it's because current version of PDK includes facterdb-1.16.1 while Ubuntu facts was added in 1.18.0 (1.19.0 is released though). Or does PDK include this in some other way?
  • j

    Joel Wilson

    08/16/2022, 1:37 PM
    I think PDK is discussed in #C113FRBRU
  • a

    Anders

    08/16/2022, 1:39 PM
    I saw there there is a post there about it. Sorry for missing it, or that was more packing generally and not this.
  • s

    Slackbot

    08/16/2022, 1:39 PM
    This message was deleted.
    c
    l
    j
    • 4
    • 8
1...130131132...428Latest