update erb
This commit is contained in:
@@ -15,7 +15,7 @@ class puppet_cd::main::files (
|
|||||||
owner => 'root',
|
owner => 'root',
|
||||||
group => 'root',
|
group => 'root',
|
||||||
mode => '0644',
|
mode => '0644',
|
||||||
content => template($pt_puppet_conf_erb),
|
content => template($pt_agent_conf_erb),
|
||||||
notify => Service[$pt_agent_service],
|
notify => Service[$pt_agent_service],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -138,6 +138,7 @@ class puppet_cd::params (
|
|||||||
## puppet
|
## puppet
|
||||||
$pt_puppet_conf_file = "${pt_puppetdir}/puppet.conf"
|
$pt_puppet_conf_file = "${pt_puppetdir}/puppet.conf"
|
||||||
$pt_puppet_conf_erb = 'puppet_cd/puppet.conf.erb'
|
$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"
|
$pt_hiera_config = "${pt_puppetdir}/hiera.yaml"
|
||||||
## puppetdb
|
## puppetdb
|
||||||
$pt_bootstrap_conf = "${pt_puppetdb_main}/bootstrap.cfg"
|
$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 %>
|
||||||
@@ -52,19 +52,4 @@
|
|||||||
<% if @pt_use_puppetdb == true %>
|
<% if @pt_use_puppetdb == true %>
|
||||||
storeconfigs = true
|
storeconfigs = true
|
||||||
storeconfigs_backend = <%= @pt_storeconfigs_backend %>
|
storeconfigs_backend = <%= @pt_storeconfigs_backend %>
|
||||||
<% end end -%>
|
<% 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