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

    Sam

    02/28/2023, 7:18 AM
    I have deployed puppet agent on 500 windows servers and installed puppet agent successfully. Now, I want to check whether these 500 servers are reporting to puppet master or not. Any quicker way to do that ? FYI: I do have a puppet web Console and puppet master server to check the list of agent.
  • s

    Sam

    02/28/2023, 7:18 AM
    I have deployed puppet agent on 500 windows servers and installed puppet agent on them successfully. Now, I want to check whether these 500 servers are reporting to puppet master or not. Any quicker way to do that ? FYI: I do have a puppet web Console and puppet master server to check the list of agent.
  • s

    Slackbot

    02/28/2023, 8:56 AM
    This message was deleted.
    c
    t
    m
    • 4
    • 3
  • s

    Slackbot

    02/28/2023, 9:00 AM
    This message was deleted.
    n
    • 2
    • 1
  • n

    Neeloj

    02/28/2023, 9:01 AM
    Hi all, what should I set when I want to talk to Puppet API in auth.conf ? when I call below curl it doesnt work:
    Copy code
    curl -X GET  <http://puppetdb.example.com/puppet/v3/node/mycertname?environment=production&transaction_uuid=aff261a2-1a34-4647-8c20-ff662ec11c4c&configured_environment=production>
    I want only get the nodes thanks all
  • n

    Neeloj

    02/28/2023, 9:09 AM
    Hi all, what should I set when I want to talk to Puppet API in auth.conf ? If there a better secure way let us know... when I call below curl it doesnt work:
    Copy code
    curl -X GET  <http://puppetdb.example.com/puppet/v3/node/mycertname?environment=production&transaction_uuid=aff261a2-1a34-4647-8c20-ff662ec11c4c&configured_environment=production>
    I want only get the nodes thanks all
  • n

    Neeloj

    02/28/2023, 9:38 AM
    In auth.conf I change
    allow  $1 to *
    what is not okay but for testing on test server it works.
    Copy code
    {
                # Allow nodes to retrieve only their own node definition
                match-request: {
                    path: "^/puppet/v3/node/([^/]+)$"
                    type: regex
                    method: get
                }
                allow: "*"
                sort-order: 500
                name: "puppetlabs node"
            },
    its possible to say only from a specific ip address or if there a better way please let me know... thanks
  • b

    Brian Schonecker

    02/28/2023, 12:51 PM
    Puppetboard? https://github.com/voxpupuli/puppetboard
  • r

    rismoney

    02/28/2023, 2:47 PM
    I am having some syntactic early morning probs 😞
    Copy code
    testing:
      route_1:
        route: "224.0.1.0/24"
        adapter: 
          - "Network0"
          - "Network1" : 
            gatewayAddr: "10.19.161.1"
    
    create_resources('network::setstaticroute', lookup("testing",undef,undef,{}))
    
    I then have a define network:setstatic route:
    w/ params $route,$adapter
    In this define I have 2 questions:
    If I do a $adapter_string = join ($adapter,",") will I get "Network0,Network1"?
    How do I access gatewayAddr via the $adapter variable.  Its an array of hash.
  • l

    Lumiere

    02/28/2023, 2:48 PM
    it's not an array of hashes right now, it's an array of a string and a hash
  • l

    Lumiere

    02/28/2023, 2:50 PM
    you could put an ensure: present|absent on each adapter which would make sure they're all hashes, but you'll need to do some work beyond that
  • r

    rismoney

    02/28/2023, 2:50 PM
    ugh. yes - "Network0" : would have a gatewayAddr too
  • r

    rismoney

    02/28/2023, 2:51 PM
    I default an $ensure='present' in the define. left that off.
  • l

    Lumiere

    02/28/2023, 2:51 PM
    then it's $testing['adapter']['Network1']['gatewayAddr']
  • r

    rismoney

    02/28/2023, 2:57 PM
    Hm. I see why I've been circling the drain, because I didn't know what I want. Always a problem adopting someones code. I think I want to pass the adapter hash into a script. Need to try that out. The code won't know 'Network1' so I think I need to use .keys or something
  • b

    binford2k

    02/28/2023, 3:55 PM
    So who's thought about PMC participation? You've still got a bit of time left to submit a nomination. https://dev.to/puppet/vox-pupuli-pmc-elections-2023-3e99
    👍🏻 1
    👍 2
  • s

    Slackbot

    02/28/2023, 4:22 PM
    This message was deleted.
    v
    m
    +2
    • 5
    • 23
  • d

    Dr Bunsen Honeydew

    02/28/2023, 4:22 PM
    See the
    puppetlabs-accounts
    module at https://forge.puppet.com/puppetlabs/accounts?src=slack&amp;channel=puppet
  • m

    ma_garvo

    02/28/2023, 4:24 PM
    Hello, has anyone ever managed the root account password in puppet? I'm thinking of using the
    puppetlabs-accounts
    module like this:
    Copy code
    accounts::user { 'root':
      password => $secret,
    }
    I think i have to hash the password myself though?
  • s

    Slackbot

    02/28/2023, 4:35 PM
    This message was deleted.
    r
    y
    +3
    • 6
    • 14
  • d

    Dr Bunsen Honeydew

    02/28/2023, 5:45 PM
    goodnews 🧑‍🏫Puppet Core Team is about to start up in #CFD8Z9A4T
  • c

    canihavethisone

    02/28/2023, 8:24 PM
    I have a medium sized fleet of EL hosts and puppetserver running Puppet 5 that i want to upgrade to 7. There is no ssh access and don't want to use bolt due to tight network controls. Has anyone undertaken such an uplift and has a method? I think cert location changed on the server-side, and as I don't want to purge certs across the deployment, can these just be moved? Thanks for any guidance!
  • r

    rnelson0

    02/28/2023, 8:27 PM
    I'd recommend looking at https://forge.puppet.com/modules/puppetlabs/puppet_agent
    👍 1
  • r

    rnelson0

    02/28/2023, 8:28 PM
    puppetserver needs updated first and you'll have to pay attention to how to do that. However, the client agents are pretty easy with that module when you're at that step.
  • b

    bastelfreak

    02/28/2023, 8:36 PM
    As an alternative I recommend https://forge.puppet.com/modules/theforeman/puppet. That's our best practice for Open Source setup. the module supports Agents and Puppetserver
  • s

    Slackbot

    02/28/2023, 8:37 PM
    This message was deleted.
    b
    j
    • 3
    • 52
  • j

    John Bishop

    02/28/2023, 8:38 PM
    Anyone know why that might be?
  • j

    John Bishop

    02/28/2023, 8:38 PM
    I added run_as: root to the inventory file, didn't fix the issue
  • j

    John Bishop

    02/28/2023, 9:03 PM
    I'm using a hiera lookup from a Bolt apply block which works perfectly when I run the code on a node (using commandline targets), but when i upload the job to the puppet server for use inside the (PE) console, it fails.
    Copy code
    Internal Server Error: org.jruby.exceptions.RuntimeError: (LookupError) Function lookup() did not find a value
  • j

    John Bishop

    02/28/2023, 9:04 PM
    I'm using a hiera lookup from a Bolt apply block which works perfectly when I run the code on a node (using commandline targets), but when i upload the plan to the puppet server for use inside the (PE) console, the job fails.
    Copy code
    Internal Server Error: org.jruby.exceptions.RuntimeError: (LookupError) Function lookup() did not find a value
1...315316317...428Latest