CVQuesty
01/13/2023, 6:41 PMCVQuesty
01/13/2023, 6:41 PMCVQuesty
01/13/2023, 7:13 PMpuppet ca, but it definitely worksCVQuesty
01/13/2023, 7:14 PMUSAGE: puppet ca <action>
This provides local management of the Puppet Certificate Authority.CVQuesty
01/13/2023, 7:15 PM[vagrant@master ~]$ puppetserver ca help
Unknown action: help
Usage: puppetserver ca <action> [options]
Manage the Private Key Infrastructure for
Puppet Server's built-in Certificate AuthorityCVQuesty
01/13/2023, 7:15 PMpuppet ca works there but is already marked as deprecated, and the puppetserver ca command should be working @Alonso MuñozAlonso Muñoz
01/13/2023, 7:17 PMvchepkov
01/13/2023, 7:35 PMJoel Wilson
01/13/2023, 8:04 PM$servername for puppet apply ?vchepkov
01/13/2023, 8:05 PMnatemccurdy
01/13/2023, 8:07 PM$facts['networking']['fqdn'].vchepkov
01/13/2023, 8:08 PM$ puppet apply -e 'notice($servername)'
Warning: Unknown variable: 'servername'. (line: 1, column: 8)
Notice: Scope(Class[main]):natemccurdy
01/13/2023, 8:08 PM$servername isn't set when doing puppet apply.natemccurdy
01/13/2023, 8:08 PM$servername, you would need to check to see if it's defined first, and fall back to the fqdn fact if it's not.natemccurdy
01/13/2023, 8:08 PM$servername, you would need to check to see if it's defined first, and fall back to the fqdn fact if it's not.vchepkov
01/13/2023, 8:10 PMvchepkov
01/13/2023, 8:10 PMif 'servername' in $server_facts {vchepkov
01/13/2023, 8:11 PMif 'servername' in $server_facts {Joel Wilson
01/13/2023, 8:14 PMnatemccurdy
01/13/2023, 8:16 PM$ puppet apply -e 'notice($server_facts)'
Notice: Scope(Class[main]): {environment => production}
$ puppet apply -e 'notice($servername)'
Warning: Unknown variable: 'servername'. (line: 1, column: 8)
TIL... I definitely would have assumed server-supplied variables get injected by puppet apply.Joel Wilson
01/13/2023, 8:16 PMcode/environments/production/modules into code/modules and override it there.natemccurdy
01/13/2023, 8:20 PMvchepkov
01/13/2023, 8:20 PMvchepkov
01/13/2023, 8:20 PMnatemccurdy
01/13/2023, 8:20 PMnatemccurdy
01/13/2023, 8:20 PMnatemccurdy
01/13/2023, 8:20 PMJoel Wilson
01/13/2023, 9:29 PMpuppet config set modulepath <new path>, it puts it into the [main] section of puppet.conf, and then when you run puppet, it complains that you aren't supposed to set it in puppet.confnatemccurdy
01/13/2023, 9:30 PMenvironment.conf, or one-off via the --modulepath CLI optionJoel Wilson
01/13/2023, 9:31 PM