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

    Robert Vincent

    09/27/2022, 1:27 PM
    As a sanity check, should manually uninstall the package and verify that the file disappears. Packaging systems, and even individual packages, are variably successful at cleaning up their own cruft.
  • c

    CVQuesty

    09/27/2022, 1:48 PM
    I usually try to point at the main executable.
  • c

    CVQuesty

    09/27/2022, 1:49 PM
    Take Trend, for instance…
    Copy code
    unless   => 'If (Test-Path -Path "C:\Program Files\Trend Micro\Deep Security Agent\dsa.exe") { exit 0 } else { exit 1 }',
    provider => 'powershell',
  • k

    Krizz

    09/27/2022, 2:18 PM
    Today we installed Puppetserver 7.9.1 and enabled dropsonde in /etc/puppetlabs/puppetserver/conf.d/puppetserver.conf
    Copy code
    puppetserver dropsonde --version
    dropsonde version 0.0.8
    But "puppetserver dropsonde preview" shows following error: error: No such file or directory @ dir_initialize - /opt/puppetlabs/server/data/puppetserver/.puppetlabs/etc/code/environments In this case /opt/puppetlabs/server/data/puppetserver/ is the puppet home directory telemetry.yaml says:
    :cachepath: "/opt/puppetlabs/server/data/puppetserver/.puppetlabs/opt/puppet/cache/dropsonde"
    After
    Copy code
    mkdir -p /opt/puppetlabs/server/data/puppetserver/.puppetlabs/etc/code/environments
    following error occur:
    Copy code
    puppetserver dropsonde preview
    
    error: undefined method `request' for nil:NilClass
    What's wrong? 😕
  • s

    Slackbot

    09/27/2022, 3:02 PM
    This message was deleted.
    k
    h
    • 3
    • 7
  • d

    Dr Bunsen Honeydew

    09/27/2022, 4:45 PM
    letsplay 🧑‍🏫Puppet Core Team is about to start up in #CFD8Z9A4T
  • s

    Slackbot

    09/27/2022, 7:42 PM
    This message was deleted.
    r
    b
    c
    • 4
    • 14
  • b

    bastelfreak

    09/27/2022, 7:44 PM
    yes!
  • b

    binford2k

    09/27/2022, 7:44 PM
    what about fosdem?
  • b

    bastelfreak

    09/27/2022, 7:45 PM
    no!
  • b

    bastelfreak

    09/27/2022, 7:45 PM
    :D
  • b

    binford2k

    09/27/2022, 7:45 PM
    hahaha
  • b

    binford2k

    09/27/2022, 7:45 PM
    fosdem's a zoo
  • b

    bastelfreak

    09/27/2022, 7:45 PM
    too often I had a flu afterwards
  • b

    binford2k

    09/27/2022, 7:46 PM
    yeah, that's my concern too. If I do, I'll be masked the entire time.
  • b

    binford2k

    09/27/2022, 7:53 PM
    gonna have to prepare for my ass to be kicked by http://cavalopers.be again.
  • p

    Patrick Rynhart

    09/27/2022, 9:02 PM
    How could I use a ‘require’ in combination with create_resources(). The block of code I have is:
    Copy code
    if ('nfs_mounts' in $config) {
            $mounts = $config['nfs_mounts']
            validate_hash($mounts)
            create_resources(mount, $mounts)
          }
  • s

    Slackbot

    09/27/2022, 9:02 PM
    This message was deleted.
    s
    p
    h
    • 4
    • 13
  • p

    Patrick Rynhart

    09/27/2022, 9:02 PM
    Elsewhere I have:
    Copy code
    if ('nfs_mount_dirs' in $config) {
          $mount_dirs = $config['nfs_mount_dirs']
          file { $mount_dirs:
            ensure  => 'directory',
          }
        }
  • s

    Slackbot

    09/27/2022, 9:03 PM
    This message was deleted.
    t
    p
    • 3
    • 6
  • s

    Slackbot

    09/27/2022, 9:32 PM
    This message was deleted.
    s
    p
    c
    • 4
    • 20
  • p

    Patrick Rynhart

    09/27/2022, 9:32 PM
    Just re the above question, can anyone see where I’m going wrong (I’m getting Error 500 on SERVER: Server Error: Could not find resource ‘File[‘/staff_idcards’]’). Here is the real code and hiera snips: Manifest (snip):
    Copy code
    if ('nfs_mount_dirs' in $config) {
          $mount_dirs = $config['nfs_mount_dirs']
          file { $mount_dirs:
            ensure  => 'directory',
          }
        }
    
        if ('nfs_mounts' in $config) {
          $mounts = $config['nfs_mounts']
          validate_hash($mounts)
          create_resources(mount, $mounts)
        }
    Hiera (snip):
    Copy code
    profile::mgmt_io1::config:
       nfs_mount_dirs:
         '/staff_idcards'
       nfs_mounts:
         '/staff_idcards':
           ensure: 'mounted'
           device: 'tur-napp1b:/vol/storage3_t1b/qstaffidcards'
           fstype: 'nfs'
           options: 'nfsvers=3,users'
           atboot: true
           require: File['/staff_idcards']
  • d

    Dr Bunsen Honeydew

    09/27/2022, 9:45 PM
    indeed 🧑‍🏫 Bolt is about to start up in #CFD8Z9A4T
  • l

    Lupita Pech

    09/28/2022, 2:58 AM
    @Lupita Pech has left the channel
  • s

    Slackbot

    09/28/2022, 6:26 AM
    This message was deleted.
    z
    s
    +2
    • 5
    • 39
  • s

    sameer

    09/28/2022, 6:29 AM
    Hello, I am getting this Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Could not find resource 'Exec[systemctl reload apache2]' in parameter 'require' .....I even tried with Exec[apache2ctl_graceful]
  • s

    sameer

    09/28/2022, 6:30 AM
    Hello, I am getting this Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Could not find resource 'Exec[systemctl reload apache2]' in parameter 'require' .....I even tried with Exec[apache2ctl_graceful] exec {"enable api.conf": command => "/usr/sbin/a2ensite api.conf", refreshonly => true, require => Exec['systemctl reload apache2'], }
  • z

    zipkid

    09/28/2022, 6:32 AM
    Also, you should look into using a module to manage apache instead of re-inventing everything.
  • z

    zipkid

    09/28/2022, 6:44 AM
    in this case you need another exec…
    Copy code
    exec {"enable api.conf":
          command     => "/usr/sbin/a2ensite api.conf",
          refreshonly => true,
          require     => Exec["reload apache"],
         }
    
    exec {"reload apache":
          command     => "systemctl reload apache2",
          refreshonly => true,
          
         }
  • b

    bastelfreak

    09/28/2022, 6:59 AM
    do yourself a favour and do not try to reimplement the wheel. for every usecase you have, check https://forge.puppet.com/ for an existing module and use it. in thise case puppetlabs/apache
1...175176177...428Latest