File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 178
178
notify => Service[' puppetserver' ],
179
179
}
180
180
181
+ $puppetservers = jqlib::resource_hosts(' class' , ' profile::puppet::server' )
182
+ $puppetservers_notself = $puppetservers .filter |Stdlib::Fqdn $it | { $it != $facts [' networking' ][' fqdn' ] }
183
+
181
184
file { "${profile::puppet::common::config_path}/puppetdb.conf" :
182
185
ensure => file ,
183
186
mode => ' 0444' ,
Original file line number Diff line number Diff line change 1
1
[main]
2
- server_urls = https://<%= @facts['fqdn'] %> :8081
2
+ server_urls = https://<%= @facts['networking']['fqdn'] %> :8081
3
+ <%- unless @puppetservers_notself.empty? -%>
4
+ submit_only_server_urls = <%= @puppetservers_notself.map {|host| "https://#{host}:8081"}.join(',') %>
5
+ command_broadcast = true
6
+ <%- end -%>
You can’t perform that action at this time.
0 commit comments