Olmo
03/03/2023, 4:35 PMbastelfreak
03/03/2023, 4:36 PMOlmo
03/03/2023, 4:45 PMSlackbot
03/03/2023, 9:16 PMSlackbot
03/04/2023, 12:29 AMStephen
03/04/2023, 12:29 AMStephen
03/04/2023, 12:29 AMSlackbot
03/04/2023, 12:29 AMUniplexed
03/04/2023, 1:36 AMUniplexed
03/04/2023, 1:59 AM$pkey_base64 = getvar("pvars::${pkey_pvars}")
$pkey_content = base64('decode', $pkey_base64)
I’m trying to create a file with content => $pkey_content, but Puppet (6.28) just creates an empty file (and doesn’t complain of a single thing, both on agent and server). Any pointers?Uniplexed
03/04/2023, 2:33 AMgary
03/05/2023, 9:31 PMnotify => Exec['apt_update'] to every package resource vs setting apt::update::frequency: always?rnelson0
03/05/2023, 10:02 PMbastelfreak
03/05/2023, 10:49 PMvchepkov
03/06/2023, 12:53 AMvchepkov
03/06/2023, 12:53 AM# puppet facts os
{
"os": {
"architecture": "x86_64",
"distro": {
"codename": "Amazon Linux",
"description": "Amazon Linux release 2023 (Amazon Linux)",
"id": "Amazon",
"release": {
"full": "2023",
"major": "2023"
}
},
"family": "RedHat",
"hardware": "x86_64",
"name": "Amazon",
"release": {
"full": "2023",
"major": "2023"
},
"selinux": {
"config_mode": "permissive",
"config_policy": "targeted",
"current_mode": "permissive",
"enabled": true,
"enforced": false,
"policy_version": "33"
}
}
}Olmo
03/06/2023, 9:59 AMOlmo
03/06/2023, 10:28 AMSlackbot
03/06/2023, 2:43 PMMassimiliano (Max)
03/06/2023, 3:00 PMdefine to create a config, for 3 nomad agents, for the network 192.168.1.0/24
Puppet will detects the free hosts, remove 3 (the number of the agents) and split by 3 and it will create 3 json files with 3 different IPAM configurationsMassimiliano (Max)
03/06/2023, 3:02 PMetcd to share these information, but I could easily split the ranges with puppetMassimiliano (Max)
03/06/2023, 3:11 PMetcd , and makes it available to all the PODsMassimiliano (Max)
03/06/2023, 3:15 PMMassimiliano (Max)
03/06/2023, 3:20 PMSlackbot
03/06/2023, 3:28 PMLuke Tidd
03/06/2023, 3:30 PMError: Could not retrieve local facts: cannot load such file -- facter/util/wmi
Error: Failed to apply catalog: Could not retrieve local facts: cannot load such file -- facter/util/wmi
As I'm just testing I ran this as puppet agent -t as system from cmd.exe.
Some version info:
puppet -V
7.23.0
facter -v
4.3.0Luke Tidd
03/06/2023, 3:40 PMError: Could not retrieve local facts: cannot load such file -- facter/util/wmi
Error: Failed to apply catalog: Could not retrieve local facts: cannot load such file -- facter/util/wmi
As I'm just testing I ran this as puppet agent -t as system from cmd.exe.
Some version info:
puppet -V
7.23.0
facter -v
4.3.0
Here is the output from `puppet agent -t --trace`: https://termbin.com/2ipoiSlackbot
03/06/2023, 4:24 PMRobert Waffen
03/06/2023, 4:24 PM$facts['something'] than fact('something')? or whats is the difference, preferred way?ripienaar
03/06/2023, 4:25 PM$facts["something"]["something"] vs facts("something.something")