Willem Basson
12/07/2022, 4:14 PMCVQuesty
12/07/2022, 4:40 PMCVQuesty
12/07/2022, 4:40 PMwil.rodriguez
12/07/2022, 5:01 PM/opt/rh/rh-ruby27/root/usr/share/gems/gems/psych-3.1.0/lib/psych.rb:233: warning: already initialized constant Psych::LIBYAML_VERSION
/opt/rh/rh-ruby27/root/usr/share/ruby/psych.rb:233: warning: previous definition of LIBYAML_VERSION was here
/opt/rh/rh-ruby27/root/usr/share/gems/gems/psych-3.1.0/lib/psych.rb:235: warning: already initialized constant Psych::NOT_GIVEN
/opt/rh/rh-ruby27/root/usr/share/ruby/psych.rb:235: warning: previous definition of NOT_GIVEN was here
pdk (INFO): Using Ruby 2.7.4
pdk (INFO): Using Puppet 6.28.0
/opt/rh/rh-ruby27/root/usr/share/rubygems/rubygems.rb:277:in `find_spec_for_exe': can't find gem bundler (>= 0.a) with executable bundle (Gem::GemNotFoundException)
from /opt/rh/rh-ruby27/root/usr/share/rubygems/rubygems.rb:296:in `activate_bin_path'
from /opt/rh/rh-ruby27/root/usr/bin/bundle:23:in `<main>'
For context, this is using the pdk gem in a Ruby 2.7 software collection install inside of a docker image that's installed at runtime by a non-root user on a centos 7 based image (running inside of a gitlabci pipeline). My initial googling found this bit of wisdom, but it claims that Ruby 2.6.3 should effectively solve this issue, but as you can see in the logs, we're past that version.Slackbot
12/07/2022, 5:19 PMhelindbe
12/07/2022, 5:43 PMthe::key: "{ 'password' => Sensitive('fish happy universe')}"
And for lookup of the::key you would get a Hash with one Sensitive value for the key password. If you set up your hiera to do deep_merge for those keys it would be enough to have all the sensitive keys in a separate data file with higher prio in the hierarchy.Slackbot
12/07/2022, 8:00 PMSlackbot
12/07/2022, 8:21 PMSlackbot
12/07/2022, 8:29 PMP. Aiello
12/07/2022, 8:52 PMP. Aiello
12/07/2022, 8:52 PMjosh
12/07/2022, 10:34 PMSlackbot
12/07/2022, 10:41 PMDaehnomel
12/07/2022, 10:42 PMqwerty126
12/07/2022, 10:45 PMpuppet cert list --all , but puppet cert isn’t available any more
I found puppetserver ca list --all but that shows nodes that aren’t currently connectedglee
12/07/2022, 10:50 PMpuppetserver ca list shows certificate requests; --all will show signed certs as well which is similar to the behaviour of the legacy cert list --all (https://puppet.com/docs/puppet/5.5/man/cert.html)
ref: https://puppet.com/docs/puppet/7/subcommands.html#caTy Maslen
12/08/2022, 9:09 AMpuppet/splunk module.
i'm looking to puppetize some Splunk heavy forwarders
how when I run puppet resource splunk_output it comes back with file_path must be set with splunkenterprise_config or splunkforwarder_config type before provider can be used cant find where splunkenterprise_config in the code baseDr Bunsen Honeydew
12/08/2022, 9:09 AMpuppet-splunk module at https://forge.puppet.com/puppet/splunk?src=slack&channel=puppetSlackbot
12/08/2022, 11:12 AMDr Bunsen Honeydew
12/08/2022, 11:12 AMpuppetlabs-puppetdb module at https://forge.puppet.com/puppetlabs/puppetdb?src=slack&channel=puppetDr Bunsen Honeydew
12/08/2022, 12:45 PMStevan Svilokos
12/08/2022, 12:45 PMhiera.yaml
- name: 'internal_lb glob'
data_hash: yaml_data
globs:
- "%{brand}/backend_lb/rules/%{deployment_tier}/%{datacenter}/internal_lb*.yaml"
- "%{brand}/backend_lb/monitors/%{deployment_tier}/%{datacenter}/internal_lb*.yaml"
- "%{brand}/backend_lb/pools/%{deployment_tier}/%{datacenter}/internal_lb*.yaml"
- "%{brand}/backend_lb/vips/%{deployment_tier}/%{datacenter}/internal_lb*.yaml"
- "%{brand}/backend_lb/params/%{deployment_tier}/%{datacenter}/internal_lb*.yaml"
and I have those in place in my data folder.
When performing lookup command like:
puppet lookup profile::component::internal_lb --merge deep --environment production --node some-server-01.local
I get full hash displayed (and if use --debug I get the exact hiera file where it's coming from).
However if I do in code: lookup('profile::component::internal_lb', Hash, { 'strategy' => 'deep' }, {}) and apply it on that same node as in command (and same environemnt) I get empty hash instead 😕
Does anyone have any idea how to find troubleshoot or debug this?
TYLumiere
12/08/2022, 2:26 PMlookup('profile::component::internal_lb', Hash, 'deep', {}) it looks like you're combining lookup's 1st and 2nd definitionsLumiere
12/08/2022, 2:26 PMvalue_typeLumiere
12/08/2022, 2:26 PMStevan Svilokos
12/08/2022, 2:42 PMlookup('profile::component::internal_lb', Hash, 'deep', {}) and $vip_available = lookup('profile::component::internal_lb', [Hash], 'deep' {}) If I omit the default value {} I'm getting:
Function lookup() did not find a value for the name 'profile::component::internal_lb' on node
but puppet lookup command still works as expected.Stevan Svilokos
12/08/2022, 3:08 PMhiera.yaml and skips emedietly to the next one:
Hierarchy entry "internal_lb glob"
Hierarchy entry "Yaml backend"
and then it moves on resolving those paths...Stevan Svilokos
12/08/2022, 3:08 PMinternal_lb glob sections and processes it regulary 🤔helindbe
12/08/2022, 3:08 PMhelindbe
12/08/2022, 3:09 PM