CVQuesty
04/24/2024, 3:03 PMDr Bunsen Honeydew
04/24/2024, 3:03 PMbinford2k
04/24/2024, 3:42 PMPuppetfile
to the Forge. Check out https://forge.puppet.com/settings/profile and turn it on if you'd like.Ed Rude
04/24/2024, 4:05 PMGreg
04/24/2024, 5:36 PMError: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Exception while executing '/bin/cat': Cannot run program "/bin/cat" (in directory "."): error=2, No such file or directory on node puppetserver-compiler[12]
Turned out 2 of the 3 compilers (8.5.0, Rocky9) had upgraded java-17-openjdk-headless
17.0.10.0.7-2.el9 -> 17.0.11.0.9-2.el9 during routine autopatching. Manually upgraded the 3rd puppetserver’s java, it immediately joined the list of “causing issues”. Simple puppetserver restarts fixed it, but noting for “huh, never saw that before” reasons.Ty Worthen
04/24/2024, 6:26 PMRana
04/24/2024, 6:33 PM'azure_key_vault'
module.
Error: Evaluation Error: Unknown function: 'azure_key_vault::secret'.
https://forge.puppet.com/modules/tragiccode/azure_key_vault/readme
Could someone help to fix?Yorokobi
04/24/2024, 8:57 PMmanifests/
directory?
Let's say init.pp
has include mymodule::someclass
and class someclass has include mymodule::someclass:subdirclass
in manifests/someclass/subdirclass.pp.
If I use puppet apply -e 'include mymodule'
it works locally, but puppet agent -t
fails with "could not find class :mymodulesomeclasssubdirclass"IlovPuppet
04/24/2024, 9:05 PMDavid Sandilands
04/25/2024, 3:04 PMIlovPuppet
04/25/2024, 4:31 PMGeorge
04/25/2024, 5:33 PMecho "deb [signed-by=/usr/share/keyrings/datadog-archive-keyring.gpg] <https://apt.vector.dev/> stable vector-0" | sudo tee "/etc/apt/sources.list.d/vector.list"
sudo touch /usr/share/keyrings/datadog-archive-keyring.gpg
sudo chmod a+r /usr/share/keyrings/datadog-archive-keyring.gpg
curl <https://keys.datadoghq.com/DATADOG_APT_KEY_CURRENT.public> | sudo gpg --no-default-keyring --keyring /usr/share/keyrings/datadog-archive-keyring.gpg --import --batch
curl <https://keys.datadoghq.com/DATADOG_APT_KEY_F14F620E.public> | sudo gpg --no-default-keyring --keyring /usr/share/keyrings/datadog-archive-keyring.gpg --import --batch
curl <https://keys.datadoghq.com/DATADOG_APT_KEY_C0962C7D.public> | sudo gpg --no-default-keyring --keyring /usr/share/keyrings/datadog-archive-keyring.gpg --import --batch
I am trying to use this but no luck:
apt::source { 'vector.dev':
location => '<https://apt.vector.dev>',
include => { 'deb' => true, 'src' => false, },
repos => 'vector-0',
release => 'stable',
key => {
'name' => 'datadog-archive-keyring.gpg',
'source' => '<https://keys.datadoghq.com/DATADOG_APT_KEY_CURRENT.public>',
}
}
Dr Bunsen Honeydew
04/25/2024, 5:45 PMJoris
04/25/2024, 5:49 PMpuppet lookup
errors with
Error: Could not run: undefined method `escape' for URI:Module
Neeloj
04/26/2024, 8:12 AMprofile::docker
I want to access the list_users
from profile::users
.
PROFILE:
myuser:/etc/puppetlabs/code/environments/production/modules/profile# cat manifests/users.pp
# include profile::users
class profile::users {
$list_users= ['user1', 'user2']
}
myuser:/etc/puppetlabs/code/environments/production/modules/profile# cat manifests/docker.pp
# include profile::docker
class profile::docker {
#class { 'docker':
# docker_users => ['user1', 'user2'],
#}
include profile::users
$users = profile::users:list_users
notify{"Hello Ho ":}
}
ROLE:
myuser:/etc/puppetlabs/code/environments/production/modules/role# cat manifests/docker.pp # cat manifests/docker.pp
# @example
# include role::docker
class role::docker {
include profile::docker
}
MANIFESTS:
# cat ../../manifests/site.pp
node 'mynode'{
include role::docker
}
Neeloj
04/26/2024, 1:10 PMclass profile::docker ( Hash $users)
:
PROFILE:
myuser:/etc/puppetlabs/code/environments/production/modules/profile# cat manifests/docker.pp
# include profile::docker
class profile::docker ( Hash $users){
notify{"Hello Ho $users":}
}
ROLE:
myuser:/etc/puppetlabs/code/environments/production/modules/role# cat manifests/docker.pp # cat manifests/docker.pp
# @example
# include role::docker
class role::docker {
include profile::docker
}
MANIFESTS: I test like below
# cat ../../manifests/site.pp
node 'mynode'{
$users = {
'user1' => {
...
},
'user2' => {
...
}
}
include role::docker($users=$users){}
}
Ed Rude
04/26/2024, 5:44 PM#!/usr/bin/ruby
in both cases. Do I need to install the gem somewhere special for puppet to see it?vchepkov
04/26/2024, 5:50 PMvchepkov
04/26/2024, 5:51 PMvchepkov
04/26/2024, 5:53 PM# head -1 /etc/puppetlabs/puppet/autosign.rb
#!/opt/puppetlabs/puppet/bin/ruby
vchepkov
04/26/2024, 5:59 PMcsharpsteen
04/26/2024, 6:30 PMpuppetserver
service is likely running in a context where it has fewer, and different, environment variables set compared to a login shell.Ed Rude
04/26/2024, 7:39 PMEd Rude
04/26/2024, 7:39 PMEd Rude
04/26/2024, 7:39 PMEd Rude
04/26/2024, 7:40 PMVivek
04/26/2024, 7:44 PMpuppetserver
version 7 on amazon linux 2023
, but it is giving me error: Error: Unable to find a match: puppetserver
Steps taken:
rpm -ivh https://yum.puppet.com/puppet7-release-amazon-2023.noarch.rpm
dnf install puppetserverShawn D'Souza
04/29/2024, 11:01 AMHow do you guys handle puppetserver failures or downtimes?
We currently run a single vm as the puppet server responsible for orchestrating things puppetserver handles and has multiple agents connected to it.
Do ideal setup include setting puppetserver in HA or is there a better way to rollout the failed puppetserver vm and get it registered with the existing puppet agents and continue functioning?bastelfreak
04/29/2024, 11:03 AM