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

    vchepkov

    06/27/2022, 4:00 PM
    You need to add these to your
    PE Master
    group class lists
  • c

    CVQuesty

    06/27/2022, 4:02 PM
    this
  • c

    CVQuesty

    06/27/2022, 4:02 PM
    That’s on the page I directed you to.
  • s

    Steve Hunger

    06/27/2022, 4:16 PM
    Hello all. I'm working on a rspec test for a module and I'm getting an error I've not seen before.
  • s

    Slackbot

    06/27/2022, 4:17 PM
    This message was deleted.
    l
    n
    s
    • 4
    • 20
  • s

    Steve Hunger

    06/27/2022, 4:18 PM
    # frozen_string_literal: true require 'spec_helper' describe 'pce_base' do on_supported_os.each do |os, os_facts| context "on #{os}" do let(:facts) do os_facts.merge( { pce_environment: 'prod', branch_name: 'prod' }, ) end let(:params) do { $nagios_master => '22.33.5.23', $basic_auth_username => 'pce-puppet', $basic_auth_password => 'ENC[PKCS12,M...]', $rp_env => 'prod', } end it { is_expected.to compile } end end end
  • c

    csharpsteen

    06/27/2022, 4:41 PM
    At the scale of thousands of agents, a scheduler using
    fqdn_rand
    to distribute run start times is the best way to ensure thundering herds don’t happen. The
    reidmv/puppet_run_scheduler
    module can configure that nicely, along with optional rules for defining maintenance windows that runs are confined to: https://forge.puppet.com/modules/reidmv/puppet_run_scheduler
  • v

    vchepkov

    06/27/2022, 5:36 PM
    not if set in proper (agent) section 🙂
  • s

    Slackbot

    06/27/2022, 6:04 PM
    This message was deleted.
    c
    f
    • 3
    • 5
  • f

    Freddy Spierenburg

    06/27/2022, 6:51 PM
    Upgrading from Puppet 5 to 6 I noticed that the jolokia metrics API endpoint for the puppet server no longer responds starting from version
    6.17.0
    . Installing version
    6.16.1
    produces a working endpoint. Performing on the puppet server a
    curl <http://localhost:8180/jolokia/read/java.util.logging:type=Logging/LoggerNames>
    delivers a 200 and the accompanied data. With the failing
    6.17.0
    and onwards up to
    6.19.0
    I get a stalled connection. Debugging the puppet server with strace I notice no accept() to accept the connection on the socket. https://puppet.com/docs/puppet/6/server/release_notes.html#puppet-server-6170 release notes show, to the best of my knowledge, no reason why this should no longer work. Could this be a bug, a changed feature forgotten to mention in the release notes or am I doing something wrong?
  • j

    joedog

    06/28/2022, 12:58 AM
    I have two vmware templates, one for RHEL7 and one for RHEL8. Both templates, download, install and configure the puppet client. On RHEL7, it checks in with the puppetmaster and continues to do so. On RHEL8, it checks in with the puppetmaster, configures itself. Then it breaks. To get it working again, I have to rm the cert, clean the puppetserver, then run puppet. After that, it works every time. But I can't have this manual intervention and I don't know how to troubleshoot it. Any guess as to what's happening here?
  • s

    Slackbot

    06/28/2022, 1:43 AM
    This message was deleted.
    j
    g
    • 3
    • 3
  • s

    Slackbot

    06/28/2022, 1:43 AM
    This message was deleted.
    j
    • 2
    • 1
  • n

    Nagarajan M S

    06/28/2022, 10:44 AM
    👋 Hello, team!
  • n

    n3snah

    06/28/2022, 11:29 AM
    👋
  • s

    Slackbot

    06/28/2022, 1:20 PM
    This message was deleted.
    h
    b
    • 3
    • 36
  • b

    Brian Schonecker

    06/28/2022, 1:20 PM
    I've got a puppet server somewhat connected to a secondary PuppetDB server. I'm using the Puppetdb module here. When I run the puppet agent on my puppet server, I get "Notice: Unable to connect to puppetdb server (https://puppetdb.example.com:8081): certificate verify failed [certificate revoked for CN=puppetdb.example.com]". Obviously somewhere there's a certificate problem. The strange thing is, the PuppetDB does update and I can see the failure on the Puppeboard/PuppetDB server so my puppet server is communicating with the puppet DB. I've scoured the Puppetdb docs at Puppet and have tried everything I can think of. Again, I'm confident it's a certificate issue. The strange thing is: I've got a lab puppet server/puppet DB that works great; the puppet manifest runs fine and there's no warning about a revoked certificate. With the exception of the puppet server and puppet db names the puppet manifests are identical (or so I think). Anybody got some hints as to how I can debug this problem?
  • b

    Brian Schonecker

    06/28/2022, 1:24 PM
    I've got a puppet server somewhat connected to a secondary PuppetDB server. I'm using the Puppetdb module here. When I run the puppet agent on my puppet server, I get "Notice: Unable to connect to puppetdb server (https://puppetdb.example.com:8081): certificate verify failed [certificate revoked for CN=puppetdb.example.com]". Obviously somewhere there's a certificate problem. The strange thing is, the PuppetDB does update and I can see the failure on the Puppeboard/PuppetDB server so my puppet server is communicating with the puppet DB. I've scoured the Puppetdb docs at Puppet and have tried everything I can think of. Again, I'm confident it's a certificate issue. The strange thing is: I've got a lab puppet server/puppet DB that works great; the puppet manifest runs fine and there's no warning about a revoked certificate. With the exception of the puppet server and puppet db names the puppet manifests are identical (or so I think). Anybody got some hints as to how I can debug this problem? If I do a curl from my puppet server to the puppetdb server and use the certificate at /etc/puppetlabs/puppetserver/ca/ca_crt.pem, then I have no problems (at least with curl) so I know that I've got good CA information. I just don't know what certificates/CA certificates that the puppet server is using to connect with the puppet DB. I've checked jetty.ini on the DB server and all looks well. curl https://puppetdb.example.com:8081 --cacer /etc/puppetlabs/puppetserver/ca/ca_crt.pem { "version" : "7.10.1" } [root@puppetserver ca]#
  • b

    Brian Schonecker

    06/28/2022, 2:54 PM
    I've got a puppet server somewhat connected to a secondary PuppetDB server. I'm using the Puppetdb module here. When I run the puppet agent on my puppet server, I get "Notice: Unable to connect to puppetdb server (https://puppetdb.example.com:8081): certificate verify failed [certificate revoked for CN=puppetdb.example.com]". Obviously somewhere there's a certificate problem. The strange thing is, the PuppetDB does update and I can see the failure on the Puppeboard/PuppetDB server so my puppet server is communicating with the puppet DB. I've scoured the Puppetdb docs at Puppet and have tried everything I can think of. Again, I'm confident it's a certificate issue. The strange thing is: I've got a lab puppet server/puppet DB that works great; the puppet manifest runs fine and there's no warning about a revoked certificate. With the exception of the puppet server and puppet db names the puppet manifests are identical (or so I think). Anybody got some hints as to how I can debug this problem? If I do a curl from my puppet server to the puppetdb server and use the certificate at /etc/puppetlabs/puppetserver/ca/ca_crt.pem, then I have no problems (at least with curl) so I know that I've got good CA information. I just don't know what certificates/CA certificates that the puppet server is using to connect with the puppet DB. I've checked jetty.ini on the DB server and all looks well. curl https://puppetdb.example.com:8081 --cacer /etc/puppetlabs/puppetserver/ca/ca_crt.pem { "version" : "7.10.1" } [root@puppetserver ca]# I'm not sure if this helps but my working server is using TLSv1.2 to talk to the PuppetDB server while my non-working server tries to use TLSv1.3 and fails with "TLSv1.3 73 Alert (Level: Fatal, Description: Certificate Revoked)"
  • b

    Brian Schonecker

    06/28/2022, 2:57 PM
    I've got a puppet server somewhat connected to a secondary PuppetDB server. I'm using the Puppetdb module here. When I run the puppet agent on my puppet server, I get "Notice: Unable to connect to puppetdb server (https://puppetdb.example.com:8081): certificate verify failed [certificate revoked for CN=puppetdb.example.com]". Obviously somewhere there's a certificate problem. The strange thing is, the PuppetDB does update and I can see the failure on the Puppeboard/PuppetDB server so my puppet server is communicating with the puppet DB. I've scoured the Puppetdb docs at Puppet and have tried everything I can think of. Again, I'm confident it's a certificate issue. The strange thing is: I've got a lab puppet server/puppet DB that works great; the puppet manifest runs fine and there's no warning about a revoked certificate. With the exception of the puppet server and puppet db names the puppet manifests are identical (or so I think). Anybody got some hints as to how I can debug this problem? If I do a curl from my puppet server to the puppetdb server and use the certificate at /etc/puppetlabs/puppetserver/ca/ca_crt.pem, then I have no problems (at least with curl) so I know that I've got good CA information. I just don't know what certificates/CA certificates that the puppet server is using to connect with the puppet DB. I've checked jetty.ini on the DB server and all looks well. curl https://puppetdb.example.com:8081 --cacer /etc/puppetlabs/puppetserver/ca/ca_crt.pem { "version" : "7.10.1" } [root@puppetserver ca]# I'm not sure if this helps but my working server is using RHEL7 with TLSv1.2 to talk to the PuppetDB server while my non-working server is RHEL8 and tries to use TLSv1.3 and fails with "TLSv1.3 73 Alert (Level: Fatal, Description: Certificate Revoked)"
  • b

    Brian Schonecker

    06/28/2022, 3:09 PM
    It is not revoked as far as I can tell. The PuppetDB server is checking in with the Puppet server itself via the puppet agent.
  • b

    Brian Schonecker

    06/28/2022, 3:16 PM
    Strangely, the report DOES generate and gets pushed to the postgresql back end. All my clients are showing up in Puppetboard. It's just the puppet server itself when it's doing this check
  • b

    Brian Schonecker

    06/28/2022, 3:17 PM
    I'm sure the openssl check will fail. Curl fails unless I specify the ca_crt.pem file from the command line: curl https://nfiv-puppdb-02p.nfii.com:8081/pdb/meta/v1/version --cacer /etc/puppetlabs/puppetserver/ca/ca_crt.pem { "version" : "7.10.1" }
  • b

    Brian Schonecker

    06/28/2022, 3:21 PM
    message has been deleted
  • b

    Brian Schonecker

    06/28/2022, 3:22 PM
    My RHEL7 server which is running the same puppet code (of course pointing to a different puppetdb) has no issues.
  • a

    Allahshukur Ahmadzada

    06/28/2022, 3:37 PM
    how we can copy all files under files directory to a directory on agent? the point getting them all at once
  • l

    Lumiere

    06/28/2022, 3:38 PM
    I highly recommend converting the directory to a tarball and using the archive module
  • l

    Lumiere

    06/28/2022, 3:38 PM
    puppet/archive specifically
  • d

    Dr Bunsen Honeydew

    06/28/2022, 3:38 PM
    See the
    puppet-archive
    module at https://forge.puppet.com/puppet/archive?src=slack&amp;channel=puppet
  • l

    Lumiere

    06/28/2022, 3:39 PM
    or putting the files into a repo of some sort and using puppetlabs/vcs_repo
1...818283...428Latest