Slackbot
03/08/2023, 4:19 PMOlmo
03/08/2023, 4:45 PMCorporate Gadfly
03/08/2023, 6:42 PMfile { '/opt/victoriametrics/tls':
ensure => present, # lint:ignore:file_ensure-check
owner => victoriametrics,
group => victoriametrics,
require => Accounts::User['victoriametrics'],
}
pdk validate complains with:
pdk (WARNING): puppet-lint: ensure set to present on file resource (manifests/monitor/vm_common.pp:24:16)Corporate Gadfly
03/08/2023, 6:43 PMfile { '/opt/victoriametrics/tls':
ensure => present, # lint:ignore:file_ensure-check
owner => victoriametrics,
group => victoriametrics,
require => Accounts::User['victoriametrics'],
}
pdk validate complains with:
pdk (WARNING): puppet-lint: ensure set to present on file resource (manifests/monitor/vm_common.pp:24:16)Slackbot
03/08/2023, 6:44 PMvchepkov
03/08/2023, 6:45 PM# lint:ignore:file_ensureSlackbot
03/08/2023, 7:22 PMSlackbot
03/08/2023, 7:32 PMbinford2k
03/08/2023, 7:33 PMpackage { 'apache2':
ensure => present,binford2k
03/08/2023, 7:33 PMpackage { 'apache2':
ensure => present,
}natemccurdy
03/08/2023, 7:42 PMpackage { 'openssh':
ensure => present,
provider => 'chocolately',
}
service { 'ssh-agent':
ensure => running,
enable => true,
require => Package['openssh'],
}
service { 'sshd':
ensure => running,
enable => true,
require => Package['openssh'],
}Yury Bushmelev
03/08/2023, 7:44 PMbinford2k
03/08/2023, 8:07 PMSlackbot
03/09/2023, 1:31 AMgary
03/09/2023, 8:40 AMgary
03/09/2023, 8:40 AMYury Bushmelev
03/09/2023, 11:11 AMDr Bunsen Honeydew
03/09/2023, 12:45 PMmrosedale
03/09/2023, 2:04 PMError: /Stage[main]/Vx_nginx::Config/Resources[etcd_key]: Failed to generate additional resources using 'generate': Provider vx_service_discovery has not defined the 'instances' class method
Anyone know what the instances class method is?Pinky
03/09/2023, 3:12 PMSlackbot
03/09/2023, 3:20 PMSlackbot
03/09/2023, 3:34 PMPinky
03/09/2023, 3:40 PMprofile_xyz::host1_pw: 'password111'
profile_xyz::host2_pw: 'password222'
host1 should use a lookup on host2s pw and vice versa. Is that also possible with that common yaml file?Slackbot
03/09/2023, 3:48 PMSlackbot
03/09/2023, 4:59 PMwil.rodriguez
03/09/2023, 5:57 PMwil.rodriguez
03/09/2023, 5:57 PM/etc/puppetlabs/puppetdb/ssl and symlink to my puppet agent certs. Now I just have the problem that puppetdb won't start up and it gives me this error:
java.lang.IllegalArgumentException: Missing some SSL configuration; must provide either :ssl-cert, :ssl-key, and :ssl-ca-
cert, OR :truststore, :trust-password, :keystore, and :key-password.
If only I knew where it wanted that specified.vchepkov
03/09/2023, 6:03 PMDr Bunsen Honeydew
03/09/2023, 6:45 PMSkylar Thompson
03/09/2023, 6:46 PMcomponents is set from module_path, which is the combination of the path to the modules directory in fixture_path and the contents of the MODULEPATH environment variable. I'm not totally sure what MODULEPATH is used for in the context of `pdk`/`rspec` but it's also used by environment-modules, which provides a way of making scalable changes to user shell environments via Tcl scripts.
The problem is that the environment-modules shell profile adds this to `MODULEPATH`: /usr/share/modules/$MODULE_VERSION/modulefiles
For environment-modules, MODULEPATH is used within Tcl and not shell, and $MODULE_VERSION is interpolated by Tcl based on the value of that Tcl variable.
Within module_spec_helper.rb, though, the block that produces the components array interprets it literally and discards it, but collect will set a value to nil if nothing else is returned by that iteration. I think the quickest fix will be to have a reject filter that produces an array that has no nil values in it.