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

    David Sandilands

    02/14/2023, 3:43 PM
    This is now resolved and the https://training.puppet.com/pages/19/get-certified correctly links to https://www.puppet.com/learning-training/certification Thanks for everyone patience
  • d

    Dr Bunsen Honeydew

    02/14/2023, 3:45 PM
    letsplay _🦊Vox Pupuli monthly sync; see calendar event for info_ is about to start up in #CFD8Z9A4T
  • s

    Slackbot

    02/14/2023, 4:44 PM
    This message was deleted.
    b
    s
    +2
    • 5
    • 49
  • b

    bastelfreak

    02/14/2023, 4:44 PM
    do you even need those old reports?
  • s

    spin

    02/14/2023, 4:49 PM
    it certainly will pile up again in the long run.. and we are going to pursue removing puppetDB instances at this remote site.. but given the tweaks to cmd processes its slightly better able to keep up with slewed incoming reports every 30min
  • s

    spin

    02/14/2023, 4:53 PM
    in this case it was less about needing more capacity and more limited routing for our networks in EU.. so i have increased both heap and concurrent jobs.. that is why the backlog is trending down steadily
  • s

    Slackbot

    02/14/2023, 5:04 PM
    This message was deleted.
    b
    i
    • 3
    • 5
  • p

    Paul Mekhedjian

    02/14/2023, 5:43 PM
    Is PPT-PCP-19 the last certification? Will there be one for 2023?
  • d

    Dr Bunsen Honeydew

    02/14/2023, 5:45 PM
    fry dancing 🧑‍🏫Puppet Core Team is about to start up in #CFD8Z9A4T
  • s

    Slackbot

    02/14/2023, 7:21 PM
    This message was deleted.
    s
    b
    +2
    • 5
    • 12
  • v

    vchepkov

    02/14/2023, 7:26 PM
    host puppet resource is pretty much backwards, primary key for /etc/hosts file is IP, not name so if you have default /etc/hosts
    Copy code
    # cat /etc/hosts
    127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
    ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
    There is no way I can get rid of
    ::
    entry using hosts, I have to use host and file_line resource to manage the same file, which probably will cause bunch of conflicts
  • a

    Anthony Paragas

    02/14/2023, 8:36 PM
    hey am trying to update this puppet key but can’t seem to find anything to resolve… am running this on ubuntu 16
    Copy code
    [8:50 PM] GPG error: <http://apt-mirror.shapeways.net/puppet> xenial InRelease: The following signatures were invalid: KEYEXPIRED 1629234366  KEYEXPIRED 1629234366  KEYEXPIRED 1629234366
  • s

    Slackbot

    02/14/2023, 8:44 PM
    This message was deleted.
    v
    m
    • 3
    • 7
  • s

    spin

    02/14/2023, 10:31 PM
    bumped it to 16.. load is still .2. mem same.. network usage 600k/s dropping the queue by ~100 per minute.. should have queue cleared in < 5 hours 😄
  • v

    vStone

    02/15/2023, 9:15 AM
    you remove the source and replace it with
    content => epp('clients/testfile.pp'),
  • v

    vStone

    02/15/2023, 9:16 AM
    so you wil need
    file {'/etc/test_dir/test_file': content => epp(''),}
  • n

    Neeloj

    02/15/2023, 9:20 AM
    thank you @vStone, one last qustion, what if I want to change the file ending to .sh =
    content => epp('clients/testfile.pp'),
    here is still .epp and can I change it on the agent to .sh ?
  • n

    Neeloj

    02/15/2023, 9:21 AM
    thank you @vStone, one last qustion, what if I want to change the file ending to .sh
    content => epp('clients/testfile.pp'),
    here is still .epp and can I change it on the agent to .sh ?
  • s

    Slackbot

    02/15/2023, 10:18 AM
    This message was deleted.
    z
    n
    +2
    • 5
    • 27
  • n

    Neeloj

    02/15/2023, 10:38 AM
    I use
    server="<%= $facts['puppet_server'] %>"
    but the variable is then empty on the client... and this is how I use it:
    Copy code
    file { 'testfile_template':
                            ensure             => file,
                            content => epp('testtemplate/testfile_template.epp'),
                            path               => '/etc/check/testfile_template.sh',
            }
  • n

    Neeloj

    02/15/2023, 10:38 AM
    I use
    server="<%= $facts['puppet_server'] %>"
    but the variable is then empty on the client... and this is how I use it:
    Copy code
    file { 'testfile_template':
                            ensure             => file,
                            content => epp('testtemplate/testfile_template.epp'),
                            path               => '/usr/local/bin/testfile_template.sh',
            }
  • n

    Neeloj

    02/15/2023, 10:50 AM
    it was installed and I reinstall it again with --force ,
    # puppet module install puppetlabs-stdlib --version 8.5.0 --force
    now it works. And this is how it works in template for all other:
    server="<%= $facts['puppet_server'] %>"
    Thank you @zipkid & @bastelfreak
  • n

    Neeloj

    02/15/2023, 10:56 AM
    @bastelfreak thank you for your suggestion, I'll take your advice like always, now r10k is on my ToDos and if I have question I'll ask it here... thanks. and if you have any good articles about it share it please
  • s

    Slackbot

    02/15/2023, 1:50 PM
    This message was deleted.
    c
    b
    +2
    • 5
    • 14
  • b

    Brian Schonecker

    02/15/2023, 1:57 PM
    I'm still having trouble with resource ordering. I've got a hash of Linux packages (RPMS) that need to be installed before some other resources -- specifically, I have to install cifs-utils, libXtst and a few other packages before I can mount a CIFS filesystem. The cifs-utils package is a member of the $required_packages hash where the hash looks like:
    required_packages:
    cifs-utils:
    ensure: installed
    xorg-x11-apps:
    ensure: installed
    oracle-instantclient19.9-basic:
    ensure: installed
    oracle-instantclient19.9-sqlplus:
    ensure: installed
    glibc:
    ensure: installed
    and I'm not sure how I can tell my mount resources how to require all of the packages in $required_packages before trying to mount the CIFS filesystem. Yes, I could just do "require => Package[cifs-utils]" on the resource but what if there's another package that my application requires in order to run properly? It seems to me that it would be more scalable if I could just do something like "require => Package[$required_packages]". I'm embarrassed to keep asking these (seemingly) simple questions but I just can't wrap my brain around the right way to do things and to keep the code scalable. Specifically, here is the code in question. The packages need to be installed before the mount resources kick off. Is "require => Package[cifs-utils]" really the way to do it? If so, that means I need to keep track of the cifs-utils in two places: common.yaml and my class module and that's definitely not "Do not repeat yourself."
  • c

    chadh

    02/15/2023, 2:02 PM
    you could also put all the package resources contained in a class and then require that, i think
  • m

    Massimiliano (Max)

    02/15/2023, 2:40 PM
    what is the name of new security plugin for puppet-lint ?
  • s

    Slackbot

    02/15/2023, 2:47 PM
    This message was deleted.
    m
    t
    +3
    • 6
    • 14
  • d

    David Sandilands

    02/15/2023, 2:47 PM
    If you use either PDK or https://github.com/puppetlabs/puppet-lint and are still referring to the http://puppet-lint.com/ website be aware this is NOT a Puppet managed website and the github site https://puppetlabs.github.io/puppet-lint/ has the latest up to date documentation.
  • d

    David Sandilands

    02/15/2023, 2:48 PM
    If you use either PDK or https://github.com/puppetlabs/puppet-lint and are still referring to the http://puppet-lint.com/ website be aware this is NOT a Puppet managed website and the github site https://puppetlabs.github.io/puppet-lint/ has the latest up to date documentation.
1...307308309...428Latest