Slackbot
01/05/2023, 5:06 AMSlackbot
01/05/2023, 6:48 AMjjanco
01/05/2023, 6:49 AMjjanco
01/05/2023, 8:22 AMSlackbot
01/05/2023, 9:08 AMDavid Sandilands
01/05/2023, 9:52 AMjjanco
01/05/2023, 10:10 AMSlackbot
01/05/2023, 10:44 AMAnimesh Sahu
01/05/2023, 10:58 AMSlackbot
01/05/2023, 1:54 PMnatemccurdy
01/06/2023, 1:08 AMDagan McGregor
01/06/2023, 1:12 AMnatemccurdy
01/06/2023, 1:32 AMnatemccurdy
01/06/2023, 1:33 AMnatemccurdy
01/06/2023, 1:33 AMnatemccurdy
01/06/2023, 1:54 AMsync method that is just assumed to succeed and is never actually called.natemccurdy
01/06/2023, 1:55 AMsync method:
https://github.com/puppetlabs/puppet/blob/7.21.0/lib/puppet/type/exec.rb#L147
That sync method calls provider.run which ends up calling `checkexec(command)`:
https://github.com/puppetlabs/puppet/blob/7.21.0/lib/puppet/provider/exec.rb#L44
checkexec is where the check for existence happens:
https://github.com/puppetlabs/puppet/blob/7.21.0/lib/puppet/provider/exec/posix.rb#L32-L33Slackbot
01/06/2023, 9:12 AMAnimesh Sahu
01/06/2023, 9:13 AMAnimesh Sahu
01/06/2023, 9:54 AMbundle install was the command.Animesh Sahu
01/06/2023, 10:07 AMbundle install was the command. Thereafter ./bin/puppet works.Animesh Sahu
01/06/2023, 10:14 AMbundle install was the command. Thereafter ./bin/puppet works (alternatively sudo ./install.rb copies them to /usr prefix).George
01/06/2023, 12:47 PMSlackbot
01/06/2023, 12:50 PMrismoney
01/06/2023, 2:38 PMFacter.value(:networking)['fqdn']
Which was previously:
Facter.value(:fqdn)
The new structured fact seems to give me a Caught recursion error. Not sure what the difference here is between using theseSlackbot
01/06/2023, 3:05 PMSlackbot
01/06/2023, 3:06 PMvchepkov
01/06/2023, 3:06 PMBrian Schonecker
01/06/2023, 3:07 PMAdam Harvey
01/06/2023, 3:07 PMnode default {
$pp_role = $trusted['extensions']['pp_role']
include "role::${pp_role}"
}
even if I try on a compiler node to puppet apply /etc/puppetlabs/code/environments/dev/manifests/site.pp where ^ lives - I get
Error: Evaluation Error: Error while evaluating a Function Call, Could not find class ::role:: for
That trusted fact most definitely exists, I validated it via a facts api call and it was in the CSR.
Ideas/thoughts? This approach has been mentioned over the years and appears to work (for those who have mentioned it) but I'm a bit lost.
We use roles/profiles method extensively/exclusively.
extension_requests:
(redacted)
pp_role: puppetcompiler
I should be assigned role::puppetcompiler based on interpolation