update erb
This commit is contained in:
@@ -15,7 +15,7 @@ class puppet_cd::main::files (
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0644',
|
||||
content => template($pt_puppet_conf_erb),
|
||||
content => template($pt_agent_conf_erb),
|
||||
notify => Service[$pt_agent_service],
|
||||
}
|
||||
}
|
||||
|
||||
@@ -138,6 +138,7 @@ class puppet_cd::params (
|
||||
## puppet
|
||||
$pt_puppet_conf_file = "${pt_puppetdir}/puppet.conf"
|
||||
$pt_puppet_conf_erb = 'puppet_cd/puppet.conf.erb'
|
||||
$pt_agent_conf_erb = 'puppet_cd/agent.conf.erb'
|
||||
$pt_hiera_config = "${pt_puppetdir}/hiera.yaml"
|
||||
## puppetdb
|
||||
$pt_bootstrap_conf = "${pt_puppetdb_main}/bootstrap.cfg"
|
||||
|
||||
17
templates/agent.conf.erb
Normal file
17
templates/agent.conf.erb
Normal file
@@ -0,0 +1,17 @@
|
||||
###############################################################################
|
||||
########## puppet.conf generated by puppet ###########
|
||||
###############################################################################
|
||||
|
||||
[agent]
|
||||
server = <%= @pt_pm_fqdn %>
|
||||
classfile = $statedir/classes.txt
|
||||
default_schedules = <%= @pt_default_schedules %>
|
||||
environment = <%= @pt_environment %>
|
||||
masterport = <%= @pt_masterport %>
|
||||
noop = <%= @pt_noop %>
|
||||
pluginsync = <%= @pt_pluginsync %>
|
||||
report = <%= @pt_report %>
|
||||
runinterval = <%= @pt_runinterval %>
|
||||
splay = <%= @pt_splay %>
|
||||
splaylimit = <%= @pt_splaylimit %>
|
||||
usecacheonfailure = <%= @pt_usecacheonfailure %>
|
||||
@@ -53,18 +53,3 @@
|
||||
storeconfigs = true
|
||||
storeconfigs_backend = <%= @pt_storeconfigs_backend %>
|
||||
<% end end -%>
|
||||
<% if @fqdn != @pt_pm_fqdn -%>
|
||||
[agent]
|
||||
server = <%= @pt_pm_fqdn %>
|
||||
classfile = $statedir/classes.txt
|
||||
default_schedules = <%= @pt_default_schedules %>
|
||||
environment = <%= @pt_environment %>
|
||||
masterport = <%= @pt_masterport %>
|
||||
noop = <%= @pt_noop %>
|
||||
pluginsync = <%= @pt_pluginsync %>
|
||||
report = <%= @pt_report %>
|
||||
runinterval = <%= @pt_runinterval %>
|
||||
splay = <%= @pt_splay %>
|
||||
splaylimit = <%= @pt_splaylimit %>
|
||||
usecacheonfailure = <%= @pt_usecacheonfailure %>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user