Slackbot
04/28/2022, 9:56 AMSamy
04/28/2022, 9:56 AM/_etc/ssh/sshd_config_
file, with below lines:
• AllowTcpForwarding yes
• MaxStartups 100
And, it requires for only 2 serversSamy
04/28/2022, 9:57 AM/_etc/ssh/sshd_config_
file, with below lines:
• AllowTcpForwarding yes
• MaxStartups 100
And, it requires for only 3 puppet agent systemsSlackbot
04/28/2022, 12:11 PMDr Bunsen Honeydew
04/28/2022, 12:11 PMherculesteam-augeasproviders_ssh
module at https://forge.puppet.com/herculesteam/augeasproviders_ssh?src=slack&channel=puppetSlackbot
04/28/2022, 3:40 PMnwops
04/28/2022, 3:55 PMnatemccurdy
04/28/2022, 4:00 PMeyaml
backend and mix both yaml and eyaml in a single layer.
That’s what I prefer to do, because it simplifies things (IMO).natemccurdy
04/28/2022, 4:00 PMnatemccurdy
04/28/2022, 4:00 PMhelindbe
04/28/2022, 4:36 PMRobert Emanuele
04/28/2022, 4:59 PM# Silly, poor use
class { "puppet": * => lookup('puppet') }
class { "foreman": * => lookup('foreman') }
# proper...
include puppet
include foreman
natemccurdy
04/28/2022, 5:00 PMvchepkov
04/28/2022, 5:01 PMvchepkov
04/28/2022, 5:01 PMvchepkov
04/28/2022, 5:01 PMRobert Emanuele
04/28/2022, 5:01 PMRobert Emanuele
04/28/2022, 5:02 PMnatemccurdy
04/28/2022, 5:03 PMpuppet::param_1: "foo"
puppet::param_2: "bar"
forman::param_1: "hi"
forman::param_2: "earth"
Not like this:
puppet:
param_1: "foo"
param_2: "bar"
Robert Emanuele
04/28/2022, 5:04 PMRobert Emanuele
04/28/2022, 5:05 PMRobert Emanuele
04/28/2022, 5:05 PMJonathon Anderson
04/28/2022, 5:29 PMpuppet agent -t --debug
I can see that the powershell command being called is powershell -ExecutionPolicy ByPass -File C:\Installs\SelfSignedCertScript\Create-SelfSignedCert.ps1 -OutputPath "C:\Program Files\SonarQube\Certificates" -Domain "sonarqube.company.local"
When I run that command in a cmd
shell, I get the certificates that I expect. When it runs in Puppet, the certificates are not created. Attached is the output I'm getting from the cmd
window. I don't see any obvious reason why the script would fail to create the certificate when run by puppetJonathon Anderson
04/28/2022, 5:31 PMDr Bunsen Honeydew
04/28/2022, 5:45 PMJonathon Anderson
04/28/2022, 5:45 PMnatemccurdy
04/28/2022, 5:46 PMnatemccurdy
04/28/2022, 5:48 PMexec
is usually very different in context than you running the script by hand. It’ll running as an administrator, for one thing, not your user.)Slackbot
04/28/2022, 5:49 PMJonathon Anderson
04/28/2022, 5:49 PM