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

    Gerard Ryan

    08/08/2022, 4:13 PM
    Ok, So when I use the ca_extend::check_ca_expiry plan against the CA it repots that the CA is set to expire on August 5th 2037. I updated the server from version 5.0.0 to 6.20.0 before I ran the ca_extend plan on Thursday evening. Prior to that, I put the Puppet file resource that manages the CA into the catalog three weeks before hand.
  • g

    Gerard Ryan

    08/08/2022, 4:15 PM
    Ok, So when I use the ca_extend::check_ca_expiry plan against the CA it reports that the CA is set to expire on August 5th 2037. I updated the server from version 5.0.0 to 6.20.0 before I ran the ca_extend plan on Thursday evening. Prior to that, I put the Puppet file resource that manages the CA into the catalog three weeks before hand.
  • g

    Gerard Ryan

    08/08/2022, 4:17 PM
    message has been deleted
  • g

    Gerard Ryan

    08/08/2022, 4:37 PM
    What the heck is Bolt reporting on and what did it take action on??
  • g

    Gerard Ryan

    08/08/2022, 4:40 PM
    These are completely conflicting realities. Bolt reports that the certificate is valid and good until 2037, whereas openssl says nothing has changed, except the expiration date has PASSED.
  • v

    vchepkov

    08/08/2022, 4:54 PM
    https://github.com/m0dular/ca_extend/blob/master/plans/extend_ca_cert.pp#L33
  • v

    vchepkov

    08/08/2022, 4:59 PM
    https://github.com/puppetlabs/ca_extend/blob/main/plans/extend_ca_cert.pp#L54-L58
  • s

    Slackbot

    08/08/2022, 6:38 PM
    This message was deleted.
    b
    g
    b
    • 4
    • 15
  • g

    Gerard Ryan

    08/08/2022, 6:38 PM
    Hi puppet! I have a Foreman deployment whose CA was set to expire on Saturday and I fortunately was able extend the CA certificate to 2037 using the ca_extend Bolt plan; however, while I did read the documentation and chose to distribute the CA via Puppet manifest, none of my agents can connect and they are reporting the CA has expired. • The primary puppetserver, the CA, was at puppetserver version 5.0.0 and was updated to version 6.20.0, prior to running the Bolt plan • An openssl s_client command run against the primary server on 8140 shows the cert as expired • An openssl on the concatenated file (cat /etc/puppetlabs/puppet/ssl/ca/ca_crt.pem | opnessl x509 -noout -enddate) shows the certificate is valid until until 2037 • The puppetserver service has been restarted • There is no loadbalancer terminating any SSL traffic • The primary puppetserver's webserver.conf does not contain the certificate information it should 😞 Looking for help on getting this resolved, thanks!
  • g

    Gerard Ryan

    08/08/2022, 6:39 PM
    Hi puppet! I have a Foreman deployment whose CA was set to expire on Saturday and I fortunately was able extend the CA certificate to 2037 using the ca_extend Bolt plan; however, while I did read the documentation and chose to distribute the CA via Puppet manifest, none of my agents can connect and they are reporting the CA has expired. • The primary puppetserver, the CA, was at puppetserver version 5.0.0 and was updated to version 6.20.0, prior to running the Bolt plan • An openssl s_client command run against the primary server on 8140 shows the cert as expired • Parsing the concatenated file with openssl (cat /etc/puppetlabs/puppet/ssl/ca/ca_crt.pem | opnessl x509 -noout -enddate) shows the certificate is valid until until 2037 • The puppetserver service has been restarted • There is no loadbalancer terminating any SSL traffic • The primary puppetserver's webserver.conf does not contain the certificate information it should 😞 Looking for help on getting this resolved, thanks!
  • s

    Slackbot

    08/08/2022, 6:55 PM
    This message was deleted.
    s
    • 2
    • 1
  • j

    Joost

    08/08/2022, 6:56 PM
    Does the Puppet File resource support resuming of partial downloads when source is https ?
  • s

    Slackbot

    08/08/2022, 7:54 PM
    This message was deleted.
    c
    • 2
    • 2
  • g

    Gerard Ryan

    08/08/2022, 10:14 PM
    I believe that when I updated puppetserver from 5.0.0 to 6.20.0, it did not receive an updated config, therefore webserver.conf, which holds the CA data, would be updated with the CA and it is not I think this can be saved if I revert back to the certificate before I added regen_primary_cert=true. Is it possible to restore that config? I didn;'t back up the certificate directory 😞
  • g

    Gerard Ryan

    08/08/2022, 11:05 PM
    I believe that when I updated puppetserver from 5.0.0 to 6.20.0, it did not receive an updated config, therefore webserver.conf, which holds the CA data, would be updated with the CA and it is not I think this can be saved if I revert back to the certificate before I added regen_primary_cert=true.
  • s

    Slackbot

    08/09/2022, 9:28 AM
    This message was deleted.
    t
    b
    c
    • 4
    • 3
  • s

    Slackbot

    08/09/2022, 10:19 AM
    This message was deleted.
    n
    b
    +3
    • 6
    • 11
  • g

    goeldi

    08/09/2022, 12:57 PM
    I had a working PE Server (latest version) and installed PAM following this guide. Now nothing works anymore. PE Console and PAM are not accessible even after reboot. The services are running though. The pam install script told me at the end, that I can now connect to http://127.0.0.1:8088 but this is not true (no firewall since tunnel etc.). Now how can I return to the previous state before this install script? Is there a way to uninstall? If not, I'll just reinstall the whole server since it is not yet productive.
  • r

    RyChannel

    08/09/2022, 1:11 PM
    Did you put PAM on the same server as PE?
  • s

    Slackbot

    08/09/2022, 2:45 PM
    This message was deleted.
    y
    y
    h
    • 4
    • 14
  • y

    Yorokobi

    08/09/2022, 2:48 PM
    Or build an array of strings (
    ['noexec','nosuid','nodev']
    ) to append to
    $somevar = $facts['mountpoints']['/tmp']['options']
    where each element of the array to append is itself added in separate steps.
  • m

    ma_garvo

    08/09/2022, 3:44 PM
    Hey, has anyone ever used a powershell script to restart a windows service? I've tried quite a few ways, it works on command line but not from the manifest. e.g.
    Copy code
    $restart_command = "C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe -executionpolicy remotesigned -file  ${facts['nsclient_installdrive']}${install_path}/scripts/nagios-agent-restart.ps1"
    
          service { $service_name:
            ensure     => running,
            enable     => true,
            hasrestart => true,
            restart    => $restart_command,
          }
  • u

    user

    08/09/2022, 9:23 PM
    Do you use any of these containers? (from https://hub.docker.com/r/puppet)
  • y

    Yorokobi

    08/09/2022, 10:30 PM
    I clearly haven't been able to wrap my head around map()/reduce(). The closest I've come ends up creating an array of arrays.
    Copy code
    $d = ['defaults']
    $with_map = $d.map |$p| { $d << 'nodev' }
    ## [['defaults','nodev']]
  • s

    sh6624gsj8

    08/10/2022, 6:23 AM
    message has been deleted
  • h

    helindbe

    08/10/2022, 7:34 AM
    If you want a comma separated string, then it is easy to produce it using the join() function. This function also does flattening. For example:
    Copy code
    $options = ['a', 'b']
    $extras = ['x', 'y']
    $result = join([$options, $extras], ',')
    will set
    $result
    to
    "a,b,x,y"
  • h

    helindbe

    08/10/2022, 7:35 AM
    If you want a comma separated string, then it is easy to produce it using the
    join()
    function. This function also does flattening. For example:
    Copy code
    $options = ['a', 'b']
    $extras = ['x', 'y']
    $result = join([$options, $extras], ',')
    will set
    $result
    to
    "a,b,x,y"
  • h

    helindbe

    08/10/2022, 7:39 AM
    If you want an array result simply do:
    Copy code
    $result = $options + $extras
    As I showed earlier, the
    +
    operator will append the elements of the right operand so you get
    ['a','b','x','y']
    instead of
    ['a','b',['x', 'y']]
    which you would get if using the
    <<
    operator.
  • s

    Slackbot

    08/10/2022, 12:17 PM
    This message was deleted.
    d
    j
    • 3
    • 2
  • j

    Jason Grammenos

    08/10/2022, 12:17 PM
    hello, does anyone know what this log in the puppetserver.log file is referring to
    Copy code
    2022-08-10T08:11:41.989-04:00 INFO  [async-dispatch-2] [p.s.a.analytics-service] Puppet Server Update Service has successfully started and will run in the background
    2022-08-10T08:11:41.989-04:00 INFO  [async-dispatch-2] [p.s.a.analytics-service] Not submitting module metrics via Dropsonde -- submission is disabled. Enable this feature by setting `dropsonde.enabled` to true in Puppet Server's config.
    what exactly is the puppetserver update service? and what is being updated?
1...126127128...428Latest