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

    vchepkov

    01/26/2023, 6:40 PM
    sprintf ?
  • v

    vchepkov

    01/26/2023, 6:40 PM
    sprintf ?
  • c

    Chris Lee

    01/26/2023, 6:54 PM
    hey all, anyone had any experience with PE where after the install and first couple puppet agent runs, the classes for the infrastructure node groups are 'missing' or grayed out?
  • v

    vchepkov

    01/26/2023, 7:27 PM
    yep. most likely you put your nodes in environment without PE classes
  • s

    Slackbot

    01/26/2023, 7:27 PM
    This message was deleted.
    ☝️ 2
    ➕ 3
    c
    • 2
    • 1
  • n

    natemccurdy

    01/26/2023, 8:15 PM
    So, the
    sprintf()
    method has a problem in that in only adds padding if the value is longer than the specified pad length. Use Henrik's string slicing solution instead to always add the padding. For example:
    Copy code
    $ puppet apply slack.pp
    Notice: Scope(Class[main]): hello world
    Notice: Scope(Class[main]): hello world
    Notice: Scope(Class[main]): length of lots_of_spaces: 100
    Notice: Scope(Class[main]):     hello world
  • c

    chadh

    01/26/2023, 8:54 PM
    does anyone have a blurb about the encryption standards for hiera-eyaml?
  • n

    natemccurdy

    01/26/2023, 8:56 PM
    https://github.com/voxpupuli/hiera-eyaml/blob/v3.3.0/lib/hiera/backend/eyaml/encryptors/pkcs7.rb#L57-L58 Standard PKCS7, AES 256 bit, CBC encryption
  • n

    natemccurdy

    01/26/2023, 8:56 PM
    https://github.com/voxpupuli/hiera-eyaml/blob/v3.3.0/lib/hiera/backend/eyaml/encryptors/pkcs7.rb#L57-L58 Standard PKCS7, AES 256 bit, CBC encryption
  • b

    bastelfreak

    01/26/2023, 9:04 PM
    I take patches if you want to change it :) or create a hiera-eyaml plugin
  • c

    csharpsteen

    01/26/2023, 9:08 PM
    Last time I looked,
    OpenSSL::PKCS7
    didn't understand anything stronger than CBC (e.g. GCM). If that's still the case, patches need to go to Ruby its self 😉
  • c

    csharpsteen

    01/26/2023, 9:09 PM
    But also, if someone is running an Oracle attack on your hiera-eyaml data you've got much bigger problems.
  • c

    csharpsteen

    01/26/2023, 9:09 PM
    But also, if someone is running an Oracle attack on your hiera-eyaml data you've got much bigger problems.
  • c

    csharpsteen

    01/26/2023, 9:10 PM
    Because if they can modify eyaml data, they've got some degree of access to control repo content and could likely just add a
    notice()
    to a manifest that logs out the decrypted value. Or worse.
  • c

    csharpsteen

    01/26/2023, 9:11 PM
    Because if they can modify eyaml data, they've got some degree of access to control repo content and could likely just add a
    notice()
    to a manifest that logs out the decrypted value. Or worse.
  • k

    Ken

    01/26/2023, 9:39 PM
    wat Unknown Puppet subcommand 'cert' ?? [root@puppetserver ~]# puppet cert sign pupcli.local Error: Unknown Puppet subcommand 'cert'
  • k

    Ken

    01/26/2023, 9:40 PM
    there's no 'cert' or even a 'ca' to sign my client cert? Available subcommands: Common: agent The puppet agent daemon apply Apply Puppet manifests locally config Interact with Puppet's settings. help Display Puppet help. lookup Interactive Hiera lookup module Creates, installs and searches for modules on the Puppet Forge. resource The resource abstraction layer shell
  • k

    Ken

    01/26/2023, 9:41 PM
    Fresh install of puppetserver and client, initial cert handshake and can't sign the cert. I'm such a n00b
  • v

    vchepkov

    01/26/2023, 9:41 PM
    puppetserver ca
  • v

    vchepkov

    01/26/2023, 9:42 PM
    and I would use puppet to install puppetserver
  • s

    Slackbot

    01/26/2023, 9:42 PM
    This message was deleted.
    c
    v
    • 3
    • 3
  • d

    Dr Bunsen Honeydew

    01/26/2023, 9:42 PM
    See the
    theforeman-puppet
    module at https://forge.puppet.com/theforeman/puppet?src=slack&channel=puppet
  • k

    Ken

    01/26/2023, 9:44 PM
    [root@puppetserver ~]# puppetserver ca sign --certname pupcli.local Successfully signed certificate request for pupcli.local many thanks man!
  • d

    Dr Bunsen Honeydew

    01/26/2023, 9:45 PM
    waiting 🧑‍🏫PE Console is about to start up in #CFD8Z9A4T
  • k

    Ken

    01/26/2023, 9:45 PM
    I don't think I can use the module, I barely got it installed on freebsd LOL
  • c

    CVQuesty

    01/26/2023, 9:52 PM
    For those times when “make world” doesn’t help you….
  • c

    CVQuesty

    01/26/2023, 9:53 PM
    For those times when “make world” doesn’t help you….
  • l

    Les Shiner

    01/26/2023, 10:17 PM
    Copy code
    -- Logs begin at Thu 2023-01-26 21:25:38 UTC, end at Thu 2023-01-26 22:14:57 UTC. --
    Jan 26 22:10:05 Compiler-1 puppetserver[231512]: Execution error (IllegalArgumentException) at puppetlabs.trapperkeeper.services.webserver.jetty9-config/fn$get-x509s-from-ssl-cert-pem$fn (jetty9_config.clj:246).
    Jan 26 22:10:05 Compiler-1 puppetserver[231512]: Unable to open 'ssl-cert' file: /etc/puppetlabs/puppet/ssl/certs/master.ksmxe13yf34ergehjclg4kj1vh.bx.internal.cloudapp.net.pem
    Jan 26 22:10:05 Compiler-1 puppetserver[231512]: Full report at:
    Jan 26 22:10:05 Compiler-1 puppetserver[231512]: /tmp/clojure-2800691518232323941.edn
    Jan 26 22:10:06 Compiler-1 puppetserver[231484]: Background process 231512 exited before start had completed
    Jan 26 22:10:06 Compiler-1 systemd[1]: puppetserver.service: Control process exited, code=exited, status=1/FAILURE
    Jan 26 22:10:06 Compiler-1 systemd[1]: puppetserver.service: Failed with result 'exit-code'.
    Jan 26 22:10:06 Compiler-1 systemd[1]: Failed to start puppetserver Service.
    Jan 26 22:10:06 Compiler-1 systemd[1]: puppetserver.service: Scheduled restart job, restart counter is at 533.
    On my compiler I'm getting this error when it's trying to start puppetdb. This cert doesn't exist on the system. I have
    Copy code
    puppetdb::database_host: '<http://master.ksmxe13yf34ergehjclg4kj1vh.bx.internal.cloudapp.net|master.ksmxe13yf34ergehjclg4kj1vh.bx.internal.cloudapp.net>'
    set for the compiler. Any suggestions?
  • d

    Dr Bunsen Honeydew

    01/26/2023, 10:17 PM
    ``` took a dive. (Karma: -1)
  • l

    Les Shiner

    01/26/2023, 10:19 PM
    Copy code
    -- Logs begin at Thu 2023-01-26 21:25:38 UTC, end at Thu 2023-01-26 22:14:57 UTC. --
    Jan 26 22:10:05 Compiler-1 puppetserver[231512]: Execution error (IllegalArgumentException) at puppetlabs.trapperkeeper.services.webserver.jetty9-config/fn$get-x509s-from-ssl-cert-pem$fn (jetty9_config.clj:246).
    Jan 26 22:10:05 Compiler-1 puppetserver[231512]: Unable to open 'ssl-cert' file: /etc/puppetlabs/puppet/ssl/certs/master.ksmxe13yf34ergehjclg4kj1vh.bx.internal.cloudapp.net.pem
    Jan 26 22:10:05 Compiler-1 puppetserver[231512]: Full report at:
    Jan 26 22:10:05 Compiler-1 puppetserver[231512]: /tmp/clojure-2800691518232323941.edn
    Jan 26 22:10:06 Compiler-1 puppetserver[231484]: Background process 231512 exited before start had completed
    Jan 26 22:10:06 Compiler-1 systemd[1]: puppetserver.service: Control process exited, code=exited, status=1/FAILURE
    Jan 26 22:10:06 Compiler-1 systemd[1]: puppetserver.service: Failed with result 'exit-code'.
    Jan 26 22:10:06 Compiler-1 systemd[1]: Failed to start puppetserver Service.
    Jan 26 22:10:06 Compiler-1 systemd[1]: puppetserver.service: Scheduled restart job, restart counter is at 533.
    On my compiler I'm getting this error when it's trying to start puppetdb. This cert doesn't exist on the system. I have
    Copy code
    puppetdb::database_host: '<http://master.ksmxe13yf34ergehjclg4kj1vh.bx.internal.cloudapp.net|master.ksmxe13yf34ergehjclg4kj1vh.bx.internal.cloudapp.net>'
    set for the compiler. Any suggestions?
1...287288289...428Latest