bastelfreak
08/08/2025, 5:03 PMjms1
08/08/2025, 5:05 PMjms1
08/08/2025, 5:41 PMinstall.bash
file from PE2023.8.5, it looks like this should work, but it doesn't ...
curl -kO <https://puppetserver.example.com:8140/packages/current/install.bash>
bash install.bash extension_requests:pp_environment=prod
jms1
08/08/2025, 5:45 PMcsr_attributes.yaml
file at all, and it didn't request a certificate (even after i fixed the typo)jms1
08/08/2025, 5:49 PMinstall.bash
script, but i'll need to walk through it to be sure ... it's friday and i'm stopping early, so i'll come back to this on monday ... thanks again for pointing me in the right directionvchepkov
08/08/2025, 5:54 PMbash install.bash -s -- extension_requests:pp_environment=prod
csharpsteen
08/08/2025, 6:41 PM-s
flag is required. --
might cause an issue if it prevents bash
from consuming the -s
. Documentation here:
https://help.puppet.com/pe/current/topics/customize-install-script.htmvchepkov
08/08/2025, 6:43 PMvchepkov
08/08/2025, 6:44 PM--puppet-service-ensure stopped
jms1
08/11/2025, 2:01 PM-s
thing in the middle of a paragraph in that page, it's there but it's easy to miss ... however, reading through the install.bash
script itself, i didn't see on friday and i'm not seeing now, where it recognizes -s
as an option that means anythingjms1
08/11/2025, 2:14 PM-s
in there ... the output ended with this:
Installed:
puppet-agent-8.14.0-1.el9.x86_64
Complete!
+ set +x
Unable to interpret argument: '-s'. Expected flag or '<section>:<setting>=<value>' matching regex: '^(main|master|agent|user|custom_attributes|extension_requests):([^=]+)=(.*)$'
Error running install script /tmp/tmp.QoW5f7Foab
jms1
08/11/2025, 2:17 PM-s
flag even though it doesn't appear to workvchepkov
08/11/2025, 2:33 PMcsharpsteen
08/11/2025, 2:33 PM-s
is from man bash
csharpsteen
08/11/2025, 2:36 PMUnable to interpret argument
message, it sounds like you may have used --
as well. That terminates flag processing, so you have to make sure -s
is behind it if used.jms1
08/11/2025, 6:13 PM%{trusted.extensions.pp_environment}
is the correct syntax to use the contents of an extension within a filename? (i still need to build a control repo and a dummy module before i'll be able to "try it" myself)bastelfreak
08/11/2025, 6:19 PMjms1
08/11/2025, 6:19 PMaustb
08/13/2025, 12:00 AMgary
08/13/2025, 8:01 AMNeeloj
08/13/2025, 8:13 AMpuppet agent -t:
Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Failed when searching for node myserver.local: Exception while executing '/etc/puppetlabs/puppet/node.rb': Cannot run program "/etc/puppetlabs/puppet/node.rb" (in directory "."): error=0, Failed to exec spawn helper: pid: 737167, exit value: 1
However, running the ENC script manually works fine, No errors are shown in this case.:
/etc/puppetlabs/puppet/node.rb myserver.local
bastelfreak
08/13/2025, 8:30 AMbastelfreak
08/13/2025, 8:31 AM/etc/puppetlabs/puppet/node.rb myserver.local
Oleksandr Lytvyn
08/14/2025, 1:42 PMbastelfreak
08/14/2025, 1:43 PMOleksandr Lytvyn
08/14/2025, 1:45 PMspp
08/14/2025, 1:48 PMCVQuesty
08/14/2025, 3:09 PMcsharpsteen
08/14/2025, 3:46 PMhiera-eyaml
stores the encrypted data on disk in YAML files. If the data is being stored externally in a service, then that would have to be a different backend as hiera-eyaml
only deals in files on disk.jms1
08/14/2025, 9:08 PMopenssl::export::pem_cert
defined type https://forge.puppet.com/modules/puppet/openssl/reference ... it looks like it has to read a PKCS#12 bag from disk? is there a way to make it read the value from a variable, or do i need to write it to disk first? is there a way to extract they certificate's PEM representation on the PE server and include the contents in the catalog? ... or is the idea to make the agent write a .p12
file on the target machine somewhere, and then declare this type afterward, and which runs the appropriate openssl
commands to read that file and write the pem
file?