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

    natemccurdy

    06/17/2022, 9:40 PM
    I’m not totally sure that PR would actually fix your problem.
  • j

    jhoblitt

    06/17/2022, 9:41 PM
    I'm not either actually. I think mklink might always be called even if the resource is synced
  • n

    natemccurdy

    06/17/2022, 9:42 PM
    Yeah, that’s what I think I found too after tracing the code.
  • t

    tvaughan

    06/17/2022, 9:43 PM
    Well, that's definitely a bug 😞
  • j

    jhoblitt

    06/17/2022, 9:45 PM
    the mtime on the symlink isn't changing after every run
  • j

    jhoblitt

    06/17/2022, 9:45 PM
    I'm not at all clear on how this is working
  • j

    jhoblitt

    06/17/2022, 9:48 PM
    half of the problem is that I lecture folks not to use exec
  • t

    tvaughan

    06/17/2022, 9:49 PM
    Well, you could always patch
    file
    like I did
    group
    if you really don't want to use an exec 😄
  • j

    jhoblitt

    06/17/2022, 9:50 PM
    you've got a monkeypatch in a mod?
  • t

    tvaughan

    06/17/2022, 9:50 PM
    yup
  • t

    tvaughan

    06/17/2022, 9:51 PM
    https://github.com/simp/puppet-gpasswd
  • t

    tvaughan

    06/17/2022, 9:51 PM
    https://github.com/simp/puppet-gpasswd
  • j

    jhoblitt

    06/17/2022, 9:51 PM
    Is that why the news keeps reporting on monkeypox?
    facepalm 1
    🥈 1
  • t

    tvaughan

    06/17/2022, 9:51 PM
    Unfortunately, types can't be inherited so I'm not 100% sure if it would work
  • j

    jhoblitt

    06/17/2022, 9:53 PM
    yes, I've tried to inherit types and then forgotten it blows up at least twice
  • j

    jhoblitt

    06/17/2022, 9:55 PM
    this was the beast I could come up with: https://github.com/voxpupuli/puppet-jenkins/blob/master/lib/puppet/x/jenkins/type/cli.rb
  • j

    jhoblitt

    06/17/2022, 9:55 PM
    this was the beast I could come up with: https://github.com/voxpupuli/puppet-jenkins/blob/master/lib/puppet/x/jenkins/type/cli.rb
  • j

    jhoblitt

    06/17/2022, 9:56 PM
    but that's not really helpful for an existing type
  • j

    jhoblitt

    06/17/2022, 10:08 PM
    on gezbuz
  • j

    jhoblitt

    06/17/2022, 10:08 PM
    so exec creates follows symlinks
  • j

    jhoblitt

    06/17/2022, 10:08 PM
    so if the symlink is dangling, the exec triggers
  • j

    jhoblitt

    06/17/2022, 10:08 PM
    so if the symlink is dangling, the exec triggers
  • j

    jhoblitt

    06/17/2022, 10:14 PM
    finally
  • j

    jhoblitt

    06/17/2022, 10:14 PM
    Copy code
    # XXX the file type's replace param does not work for symlinks
      # <https://github.com/puppetlabs/puppet/pull/8643>
      # <https://tickets.puppetlabs.com/browse/PUP-10214>
      exec { "create but not update ${daq_home} symlink":
        path    => ['/bin', '/usr/bin'],
        command => "ln -snf ${basename($daq::daqsdk::install_path)} ${daq_home}",
        # creates => $daq_home, XXX creates will trigger on dangling symlinks
        unless  => "test -L ${daq_home}",
      }
      -> file { $daq_home:
        owner => $owner,
        group => $group,
      }
  • s

    Slackbot

    06/20/2022, 11:15 AM
    This message was deleted.
    b
    a
    l
    • 4
    • 14
  • s

    Slackbot

    06/20/2022, 12:18 PM
    This message was deleted.
    t
    • 2
    • 1
  • t

    thiebaut

    06/20/2022, 12:20 PM
    hello community I have an issue with settings adding the puppet release (
    puppet6-bullseye
    ): once I installed the package and run
    apt update
    I’m getting
    Copy code
    Err:5 <http://apt.puppetlabs.com> bullseye InRelease
      The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4528B6CD9E61EF26
    Reading package lists... Done
    W: GPG error: <http://apt.puppetlabs.com> bullseye InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4528B6CD9E61EF26
    E: The repository '<http://apt.puppetlabs.com> bullseye InRelease' is not signed.
    i tried
    apt-key add DEB-GPG-KEY-puppet-20250406
    but it does not work …. I’m getting
    Copy code
    Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
    gpg: [don't know]: invalid packet (ctb=67)
    gpg: keydb_get_keyblock failed: Value not found
    gpg: [don't know]: invalid packet (ctb=67)
    gpg: /tmp/apt-key-gpghome.qVAxwz4iEk/pubring.gpg: copy to '/tmp/apt-key-gpghome.qVAxwz4iEk/pubring.gpg.tmp' failed: Invalid packet
    gpg: error writing keyring '/tmp/apt-key-gpghome.qVAxwz4iEk/pubring.gpg': Invalid packet
    gpg: error reading 'DEB-GPG-KEY-puppet-20250406': Invalid packet
    gpg: import from 'DEB-GPG-KEY-puppet-20250406' failed: Invalid packet
  • t

    thiebaut

    06/20/2022, 12:20 PM
    hello community I have an issue with settings adding the puppet release (
    puppet6-bullseye
    ): once I installed the package and run
    apt update
    I’m getting
    Copy code
    Err:5 <http://apt.puppetlabs.com> bullseye InRelease
      The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4528B6CD9E61EF26
    Reading package lists... Done
    W: GPG error: <http://apt.puppetlabs.com> bullseye InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4528B6CD9E61EF26
    E: The repository '<http://apt.puppetlabs.com> bullseye InRelease' is not signed.
    i tried
    apt-key add DEB-GPG-KEY-puppet-20250406
    but it does not work …. I’m getting
    Copy code
    Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
    gpg: [don't know]: invalid packet (ctb=67)
    gpg: keydb_get_keyblock failed: Value not found
    gpg: [don't know]: invalid packet (ctb=67)
    gpg: /tmp/apt-key-gpghome.qVAxwz4iEk/pubring.gpg: copy to '/tmp/apt-key-gpghome.qVAxwz4iEk/pubring.gpg.tmp' failed: Invalid packet
    gpg: error writing keyring '/tmp/apt-key-gpghome.qVAxwz4iEk/pubring.gpg': Invalid packet
    gpg: error reading 'DEB-GPG-KEY-puppet-20250406': Invalid packet
    gpg: import from 'DEB-GPG-KEY-puppet-20250406' failed: Invalid packet
  • t

    thiebaut

    06/20/2022, 12:21 PM
    hello community I have an issue with settings adding the puppet release (
    puppet6-bullseye
    ): once I installed the package and run
    apt update
    I’m getting
    Copy code
    Err:5 <http://apt.puppetlabs.com> bullseye InRelease
      The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4528B6CD9E61EF26
    Reading package lists... Done
    W: GPG error: <http://apt.puppetlabs.com> bullseye InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4528B6CD9E61EF26
    E: The repository '<http://apt.puppetlabs.com> bullseye InRelease' is not signed.
    i tried
    apt-key add DEB-GPG-KEY-puppet-20250406
    but it does not work …. I’m getting
    Copy code
    Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
    gpg: [don't know]: invalid packet (ctb=67)
    gpg: keydb_get_keyblock failed: Value not found
    gpg: [don't know]: invalid packet (ctb=67)
    gpg: /tmp/apt-key-gpghome.qVAxwz4iEk/pubring.gpg: copy to '/tmp/apt-key-gpghome.qVAxwz4iEk/pubring.gpg.tmp' failed: Invalid packet
    gpg: error writing keyring '/tmp/apt-key-gpghome.qVAxwz4iEk/pubring.gpg': Invalid packet
    gpg: error reading 'DEB-GPG-KEY-puppet-20250406': Invalid packet
    gpg: import from 'DEB-GPG-KEY-puppet-20250406' failed: Invalid packet
  • t

    thiebaut

    06/20/2022, 12:21 PM
    hello community I have an issue with settings adding the puppet release (
    puppet6-bullseye
    ): once I installed the package and run
    apt update
    I’m getting
    Copy code
    Err:5 <http://apt.puppetlabs.com> bullseye InRelease
      The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4528B6CD9E61EF26
    Reading package lists... Done
    W: GPG error: <http://apt.puppetlabs.com> bullseye InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4528B6CD9E61EF26
    E: The repository '<http://apt.puppetlabs.com> bullseye InRelease' is not signed.
    i tried
    apt-key add DEB-GPG-KEY-puppet-20250406
    but it does not work …. I’m getting
    Copy code
    Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
    gpg: [don't know]: invalid packet (ctb=67)
    gpg: keydb_get_keyblock failed: Value not found
    gpg: [don't know]: invalid packet (ctb=67)
    gpg: /tmp/apt-key-gpghome.qVAxwz4iEk/pubring.gpg: copy to '/tmp/apt-key-gpghome.qVAxwz4iEk/pubring.gpg.tmp' failed: Invalid packet
    gpg: error writing keyring '/tmp/apt-key-gpghome.qVAxwz4iEk/pubring.gpg': Invalid packet
    gpg: error reading 'DEB-GPG-KEY-puppet-20250406': Invalid packet
    gpg: import from 'DEB-GPG-KEY-puppet-20250406' failed: Invalid packet
1...757677...428Latest