Greg Bristol
06/30/2022, 11:09 PMSlackbot
07/01/2022, 12:03 PMSlackbot
07/01/2022, 12:19 PMwhatsaranjit
07/01/2022, 12:21 PMvchepkov
07/01/2022, 1:01 PMJoel Wilson
07/01/2022, 2:13 PMpuppet.conf
questions:
1. Are the [master]
and [server]
sections synonymous? I just discovered that mine have [master]
sections, but the documentation calls it [server]
, but mine still work. I’m wondering when it just breaks. I don’t recall getting deprecation notices on this.
2. If there are duplicate sections with different parameters in them, will they get merged? I’ve discovered some concat::fragment overlap in my company’s management of this file and plan to switch to using inifile, but I want to understand how to organize my repair plan.Slackbot
07/01/2022, 2:53 PMvchepkov
07/01/2022, 2:55 PMdrobinson
07/01/2022, 3:36 PMvchepkov
07/01/2022, 3:39 PMvchepkov
07/01/2022, 3:39 PMSlackbot
07/01/2022, 3:44 PMziggy
07/01/2022, 3:47 PMtopics:
topic1:
modules:
- module1
- module2
- module3
topic2:
in the puppet profile, I am looping through topics:
topics = lookup('topics')
$topics.each |$topic, $values| {
and then passing values to a file resource using an epp template. In the template I am doing:
<% if 'modules' in $values { -%>
foo.modules:<% $values.get('modules').then |$module| { -%>
<% $module.each |$mod| { %>
- module: <%= $mod -%>
This lists each module like so:
foo.modules:
- module: module1
- module: module2
- module: module3
Everything works fine.
I am wanting to now do something like this in hiera:
topics:
topic1:
modules:
module1:
foo.enabled: true
bar.enabled: false
module2:
module3:
topic2:
modules:
- module1
- module2
- module3
Notice there are still arrays for modules, but some have.. sub keys.
I want to loop through the modules such that, if there are sub keys, they will be added via the epp.
- module: module1
foo.enabled: true
bar.enabled: false
- module: module2
- module: module3
Is this possible?ziggy
07/01/2022, 3:48 PMtopics:
topic1:
modules:
- module1
- module2
- module3
topic2:
in the puppet profile, I am looping through topics:
topics = lookup('topics')
$topics.each |$topic, $values| {
and then passing values to a file resource using an epp template. In the template I am doing:
<% if 'modules' in $values { -%>
foo.modules:<% $values.get('modules').then |$module| { -%>
<% $module.each |$mod| { %>
- module: <%= $mod -%>
This lists each module like so:
foo.modules:
- module: module1
- module: module2
- module: module3
Everything works fine.
I am wanting to now do something like this in hiera:
topics:
topic1:
modules:
module1:
foo.enabled: true
bar.enabled: false
module2:
module3:
topic2:
modules:
- module1
- module2
- module3
Notice there are still arrays for modules, but some have.. sub keys.
I want to loop through the modules such that, if there are sub keys, they will be added via the epp.
foo.modules:
- module: module1
foo.enabled: true
bar.enabled: false
- module: module2
- module: module3
Is this possible?Slackbot
07/01/2022, 4:13 PMSlackbot
07/01/2022, 4:54 PMJoel Wilson
07/01/2022, 5:51 PM[server]
, tooJoel Wilson
07/01/2022, 5:52 PM[server]
, tooSlackbot
07/01/2022, 7:08 PMHugh Esco
07/02/2022, 8:07 PMpuppet cert sign ${client_certname}
on my pm5 puppetserver. Even after resetting the ca_port to 8140 and restarting the puppetserver, it still seeks to connect on my ${masterport}, 8240. Details:
# puppetserver ca sign --certname efc9c26-01275.dev.${project_code}.${client_domain}.org
Fatal error when running action 'sign'
Error: Failed connecting to <https://pm5>.${my_domain}.com:8240/puppet-ca/v1/certificate_status/
Root cause: Failed to open TCP connection to pm5.${my_domain}.com:8240 (Connection refused - connect(2) for "pm5.${my_domain}.com" port 8240)
Any thoughts on what is required to resolve this would be much appreciated. Thank you for your time.natemccurdy
07/02/2022, 8:35 PM/etc/puppetlabs/puppet/puppet.conf
on that machine.
Are you sure the CA port is fixed?natemccurdy
07/02/2022, 8:35 PMHugh Esco
07/04/2022, 2:19 AM# puppet config --section server print | grep ca_port
ca_port = 8140
natemccurdy
07/04/2022, 3:53 AMca_port
settings in other sections? Like [main]?Slackbot
07/04/2022, 9:50 AMCorporate Gadfly
07/04/2022, 12:02 PM/etc/systemd/system/puppet.service.d/wants.conf
on my puppet server:
[Unit]
Wants=basic.target puppetserver.service
After=basic.target network.target puppetserver.service
Perhaps that will solve your issue.Corporate Gadfly
07/04/2022, 12:02 PM/etc/systemd/system/puppet.service.d/wants.conf
on my puppet server:
[Unit]
Wants=basic.target puppetserver.service
After=basic.target network.target puppetserver.service
Perhaps that will solve your issue.Slackbot
07/04/2022, 1:06 PMTheMeier
07/04/2022, 1:09 PMAllahshukur Ahmadzada
07/05/2022, 11:14 AM