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

    Oleksandr Lytvyn

    06/09/2022, 2:16 PM
    Problem resolved. Before we used custom module puppetagent, and we switched to puppetlabs puppetgant module. There is right now a difference --> previously (in our custom module) - when we execute "puppet agent -t" it would also ensure puppet service is running. And not after switch to puppetlabs puppetagent module -> service is not ensured. We will check if it's possible to do it via module's config.
  • t

    tuxmea

    06/09/2022, 2:26 PM
    message has been deleted
  • s

    Samy

    06/09/2022, 2:55 PM
    Hi Everyone, Do we have puppet task available on forge to upgrade the debian 9 to debian 11 ?
  • l

    Lumiere

    06/09/2022, 2:57 PM
    I doubt there's ever going to be a task to upgrade multiple versions of debian at once (which I am 99% sure debian itself doesn't support)
  • b

    bastelfreak

    06/09/2022, 3:00 PM
    he
  • l

    Lumiere

    06/09/2022, 3:00 PM
    but the puppetlabs/apt puppet module can manage the sources list, and it has a task that can run apt-get dist-upgrade for you
  • b

    bastelfreak

    06/09/2022, 3:00 PM
    sed on the mirrorlist, apt-get update; apt-get upgrade -y; apt-get dist-upgrade -y; reboot; puppet agent -t
  • d

    Dr Bunsen Honeydew

    06/09/2022, 3:00 PM
    See the
    puppetlabs-apt
    module at https://forge.puppet.com/puppetlabs/apt?src=slack&channel=puppet
  • b

    bastelfreak

    06/09/2022, 3:01 PM
    that's a plan with 3 tasks and a 80% chance it boots afterwards
  • l

    Lumiere

    06/09/2022, 3:01 PM
    lol
  • l

    Lumiere

    06/09/2022, 3:01 PM
    and a 100% chance that you'll break production if you don't test carefully
  • b

    bastelfreak

    06/09/2022, 3:01 PM
    in that case don't test it at all
  • b

    bastelfreak

    06/09/2022, 3:02 PM
    there are enough prod servers for the plan to evolve over time
  • l

    Lumiere

    06/09/2022, 3:02 PM
    and my plan would be to build a new set of environments and migrate to them
  • l

    Lumiere

    06/09/2022, 3:03 PM
    but I tend to be wildly risk averse to distro major version upgrades on servers
  • b

    bastelfreak

    06/09/2022, 3:04 PM
    yeah. so I had great success in the past upgrading debian/ubuntu boxes. but it doesn't hurt to reprovision boxes from time to time. that's also a good posibility to test and update/adjust the puppet code
  • l

    Lumiere

    06/09/2022, 3:06 PM
    I have too, but I see distro upgrade time as an opportunity to do hardware refresh, puppet upgrades/fixes, and clean up app dependencies
  • b

    bastelfreak

    06/09/2022, 3:11 PM
    totally agree. if you've the hardware resources to spin up additional boxes, do it
  • b

    bastelfreak

    06/09/2022, 3:36 PM
    I'm currently hacking on a face: https://github.com/voxpupuli/puppet-catalog-diff/pull/72/files#diff-ce90ff50b7227fb27b6fe6905bd9889bf93c1f32e7494be55446eb40dfe17786R94 . is there an easy way to get the paths to the tls ca/crt/key from the puppet agent?
    😱 1
  • b

    bastelfreak

    06/09/2022, 3:39 PM
    ubuntu 20.04 ships systemd by default
  • s

    Slackbot

    06/09/2022, 3:45 PM
    This message was deleted.
    h
    • 2
    • 2
  • l

    Lumiere

    06/09/2022, 3:56 PM
    the Puppet 6 and 7 documentation has release notes that should cover both server and DSL changes
  • l

    Lumiere

    06/09/2022, 3:57 PM
    but the short answer is other then a few minor deprecations the DSL didn't change, I've taken p4 code to p6 without issue
  • s

    Slackbot

    06/09/2022, 3:58 PM
    This message was deleted.
    j
    n
    • 3
    • 6
  • n

    nwops

    06/09/2022, 3:58 PM
    When switching environments that changes stdlib from 5.x to 6.x I now get this error. Any ideas how this could happen? Deleting the file line file fixes it
    Copy code
    Error: Could not autoload puppet/type/file_line: Attempt to redefine entity '<http://puppet.com/2016.1/runtime/type/file_line>'. Originally set at file:///opt/puppetlabs/puppet/cache/lib/puppet/type/file_line.rb?line=1.
    Error: Failed to apply catalog: Could not autoload puppet/type/file_line: Attempt to redefine entity '<http://puppet.com/2016.1/runtime/type/file_line>'. Originally set at file:///opt/puppetlabs/puppet/cache/lib/puppet/type/file_line.rb?line=1.
  • s

    Slackbot

    06/09/2022, 3:58 PM
    This message was deleted.
    b
    l
    • 3
    • 4
  • s

    Slackbot

    06/09/2022, 7:07 PM
    This message was deleted.
    b
    j
    +2
    • 5
    • 12
  • j

    josh

    06/09/2022, 7:52 PM
    @Zeke Marffy I'm assuming you're seeing the error on the server during compilation? If so, did you set an
    environment_timeout
    ? If so, you'll need to reload puppetserver after editing the type
  • j

    josh

    06/09/2022, 7:52 PM
    @Zeke Marffy I'm assuming you're seeing the error on the server during compilation? If so, did you set an
    environment_timeou
    to something other than the default
    0
    ? If so, you'll need to reload puppetserver after editing the type.
  • k

    Ken Meservy

    06/09/2022, 8:04 PM
    Anyone know if there's any documentation on setting up the puppet agent service on linux so it can do everything it needs but not requiring root access?
1...616263...428Latest