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

    sameer

    10/18/2022, 1:34 PM
    message has been deleted
  • s

    Slackbot

    10/18/2022, 1:40 PM
    This message was deleted.
    y
    s
    +5
    • 8
    • 15
  • s

    sameer

    10/18/2022, 1:40 PM
    Hi, whats wrong with this script? doesn't give any error when i run puppet parser validate nor it updates the nodesource.list with latest version when i run puppet on client
    Copy code
    exec { 'add_nodejs_16.x_repo':
        command  => 'curl -fsSL <https://deb.nodesource.com/setup_16.x> | sudo -E bash - && sudo apt update && sudo apt-get install -y nodejs',
        provider => 'shell',
        unless   => 'ls -l /etc/apt/sources.list.d/nodesource.list 2>/dev/null',
      }                                                                                                                                                             package { [                                                                                                                                                  'nodejs'                                                                                                                                                   ]:                                                                                                                                                                 ensure  => present,
        require => Exec['apt_update'],
    }
  • y

    Yorokobi

    10/18/2022, 1:42 PM
    Run the agent with the debug flag (
    puppet agent -t -d
    ) and see what it says.
  • y

    Yorokobi

    10/18/2022, 1:53 PM
    -d
    should output all sorts of stuff
  • v

    vchepkov

    10/18/2022, 1:56 PM
    you can use
    creates => /etc/apt/sources.list.d/nodesource.list
    here
  • s

    sameer

    10/18/2022, 1:56 PM
    @spp yes there is already nodejs12 running and has its repo in /etc/apt/sources.list.d/nodesource.list
  • v

    vchepkov

    10/18/2022, 1:56 PM
    Not a Debian expert, but isn there something that can be less hacky?
  • v

    vchepkov

    10/18/2022, 1:57 PM
    yumrepo in Redhat world
  • u

    Ugo Bellavance

    10/18/2022, 1:58 PM
    Hi, we use Puppet for configuration management and now I am looking a task execution tool to automate OS updates. Should I explore Bolt, which looks like going downwards, or Ansible?
  • s

    Slackbot

    10/18/2022, 1:59 PM
    This message was deleted.
    u
    y
    • 3
    • 4
  • v

    vchepkov

    10/18/2022, 2:00 PM
    I would use a proper tool - Satellite / Katello
  • s

    spp

    10/18/2022, 2:02 PM
    message has been deleted
  • j

    Joel Wilson

    10/18/2022, 2:04 PM
    Good morning. I’m getting an error with
    puppet-ca/v1/certificate_statuses/any_key
    . The auth is set to only
    get
    with the CA’s certname. Do I need to add
    put
    or
    post
    for
    puppetserver ca sign --all
    ?
  • s

    Slackbot

    10/18/2022, 2:10 PM
    This message was deleted.
    y
    u
    +2
    • 5
    • 15
  • y

    Yorokobi

    10/18/2022, 2:12 PM
    message has been deleted
  • y

    Yorokobi

    10/18/2022, 2:12 PM
    Packer Ah, snapshot, not base image. misread
  • l

    Lumiere

    10/18/2022, 2:26 PM
    I agree about Katello being the right option. Specifically, getting setup with proper content views and lifecycle management. It will allow you to push update sets to node groups in a way that ensures that you get exactly the same set of packages in dev -> prod. with the most recent versions of katello you can basically run the entire setup via API (ansible has a set of modules, not sure about other choices)
    💯 2
  • v

    vchepkov

    10/18/2022, 2:27 PM
    heh, said exactly the same in thread 🙂
  • l

    Lumiere

    10/18/2022, 2:27 PM
    I've got something like 7000 servers on a single node katello instance (that's ancient and painfully broken) but it does that set of steps insanely well
  • s

    Slackbot

    10/18/2022, 2:28 PM
    This message was deleted.
    y
    l
    • 3
    • 2
  • l

    Lumiere

    10/18/2022, 2:28 PM
    (if you use on-demand as the content update style)
  • v

    vchepkov

    10/18/2022, 2:28 PM
    Amazon Linux 2022 promisses yumrepo snapshots, we shall see how it is implemented
  • u

    Ugo Bellavance

    10/18/2022, 2:28 PM
    We have about 50 servers.
  • l

    Lumiere

    10/18/2022, 2:29 PM
    the other positive of foreman/katello would be that if you get all the nodes into it, you can run reporting on all the nodes thgrough it
  • u

    Ugo Bellavance

    10/18/2022, 2:29 PM
    We don't have the manpower to manage a new service, that's why I was looking for a tool instead of a service.
  • l

    Lumiere

    10/18/2022, 2:30 PM
    if you really bought in, foreman could also manage all the builds and entire vm lifecycle
  • l

    Lumiere

    10/18/2022, 2:30 PM
    that's its actual focus, katello just adds rpm lifecycle to the system lifecycle
  • u

    Ugo Bellavance

    10/18/2022, 2:31 PM
    I understand 100% but it's not reasonable for us to add the lifecycle management of yet another service.
    🤷 1
  • l

    Lumiere

    10/18/2022, 2:36 PM
    then I would highly recommend setting up at least a local mirror of the repos and using a cronjob to mirror so that you know when package sets change
1...203204205...428Latest