Added minor fixes for service and release
This commit is contained in:
parent
eec1ff7900
commit
83fa1851c1
|
@ -33,6 +33,7 @@ class puppet (
|
||||||
$store_backend = 'puppetdb',
|
$store_backend = 'puppetdb',
|
||||||
$reports = 'store,puppetdb',
|
$reports = 'store,puppetdb',
|
||||||
$agent_runinterval = 600,
|
$agent_runinterval = 600,
|
||||||
|
$puppet_release = $::lsbdistcodename,
|
||||||
) {
|
) {
|
||||||
|
|
||||||
# pin facter and puppetdb according to puppet version
|
# pin facter and puppetdb according to puppet version
|
||||||
|
@ -144,12 +145,14 @@ class puppet (
|
||||||
# start puppet depending on settings
|
# start puppet depending on settings
|
||||||
if $enable_puppet != false {
|
if $enable_puppet != false {
|
||||||
service { 'puppet':
|
service { 'puppet':
|
||||||
ensure => started,
|
ensure => running,
|
||||||
|
enable => true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
service { 'puppet':
|
service { 'puppet':
|
||||||
ensure => stopped,
|
ensure => stopped,
|
||||||
|
enable => false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue