Mike Fröhner (crazymind1337)
11/30/2022, 1:04 PMsearch . is back because this file (the symlinked one) is written by the service systemd-resolved.Slackbot
11/30/2022, 2:25 PMn3snah
11/30/2022, 2:32 PMSlackbot
11/30/2022, 3:31 PMChris Hoffman
11/30/2022, 3:33 PMChris Hoffman
11/30/2022, 3:34 PM2022-11-30 15:34:02.455 UTC [114518] puppetdb@puppetdb ERROR: trailing junk after parameter at or near "$3A" at character 90
2022-11-30 15:34:02.455 UTC [114518] puppetdb@puppetdb STATEMENT: UPDATE certnames SET latest_report_id = $1,latest_report_timestamp = $2 WHERE certname = $3AND ( latest_report_timestamp < $4 OR latest_report_timestamp is NULL )helindbe
11/30/2022, 3:38 PMnatemccurdy
11/30/2022, 5:12 PM-c flag.natemccurdy
11/30/2022, 5:13 PM-c flag.Slackbot
11/30/2022, 7:57 PMJason Grammenos
11/30/2022, 9:16 PM($trusted['extensions']['pp_environment']) and ($trusted['extensions']['pp_environment'] == 'drs')
will that properly check the variables existance before evaluating the second half of the and?Jason Grammenos
11/30/2022, 9:16 PM($trusted['extensions']['pp_environment']) and ($trusted['extensions']['pp_environment'] == 'drs')
will that properly check the variables existance before evaluating the second half of the and?Jason Grammenos
11/30/2022, 9:17 PMif ($trusted['extensions']['pp_environment']) {
if ($trusted['extensions']['pp_environment'] == 'drs') {
}
}natemccurdy
11/30/2022, 9:22 PM$trusted['extensions']['pp_environment'] is undef, the and ... won't be evaluated.Jason Grammenos
11/30/2022, 9:22 PMbastelfreak
11/30/2022, 9:37 PMgetvar('trusted.extensions.pp_environment') == 'drs'natemccurdy
11/30/2022, 9:46 PMgetvar(). Or, my preference, `get()`:
if $trusted.get('extensions.pp_environment') == 'dirs' {
}natemccurdy
11/30/2022, 9:47 PMgetvar() would handle missing variables more cleanly in this case by returning undef if $trusted doesn't exist.natemccurdy
12/01/2022, 1:28 AM$ puppet apply -e 'notice($foo.get("bar"))'
Warning: Unknown variable: 'foo'. (line: 1, column: 8)
Notice: Scope(Class[main]):
Notice: Compiled catalog for workstation in environment production in 0.02 seconds
Notice: Applied catalog in 0.01 seconds
$ puppet apply -e 'notice(getvar("foo.bar"))'
Notice: Scope(Class[main]):
Notice: Compiled catalog for workstation in environment production in 0.02 seconds
Notice: Applied catalog in 0.00 secondsSlackbot
12/01/2022, 7:46 AMJan Hejda
12/01/2022, 2:49 PMSlackbot
12/01/2022, 2:53 PMJoel Wilson
12/01/2022, 4:13 PMSlackbot
12/01/2022, 4:23 PMramindk
12/01/2022, 4:31 PMSlackbot
12/01/2022, 5:57 PMnatemccurdy
12/01/2022, 6:17 PMSlackbot
12/01/2022, 6:43 PMkenyon
12/01/2022, 6:56 PMkenyon
12/01/2022, 6:59 PMlookup('classes', Array[String[1]], 'unique', []).include