diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2016-02-08 04:45:50 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2016-02-08 04:45:50 -0200 |
commit | 6cfe0f74c49685aa7300951c0a514623abb42591 (patch) | |
tree | e91b627b99115069c1ee40ab05acd976f0df41d0 /manifests | |
parent | cc052353fe4eb9cad153440ad956768e5ed65ce7 (diff) | |
download | puppet-puppet-6cfe0f74c49685aa7300951c0a514623abb42591.tar.gz puppet-puppet-6cfe0f74c49685aa7300951c0a514623abb42591.tar.bz2 |
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/daemon.pp | 6 | ||||
-rw-r--r-- | manifests/daemon/disabled.pp | 15 | ||||
-rw-r--r-- | manifests/standalone.pp | 12 |
3 files changed, 21 insertions, 12 deletions
diff --git a/manifests/daemon.pp b/manifests/daemon.pp index 61475a4..6e7251a 100644 --- a/manifests/daemon.pp +++ b/manifests/daemon.pp @@ -1,9 +1,9 @@ # manage puppet service class puppet::daemon( $master = false, - $ensure = hiera('puppet::daemon::ensure', ''), - $port = hiera('puppet::daemon::port', "8140"), - $runinterval = hiera('puppet::daemon::runinterval', "7200"), + $ensure = hiera('puppet::daemon::ensure', ''), + $port = hiera('puppet::daemon::port', "8140"), + $runinterval = hiera('puppet::daemon::runinterval', "7200"), $configtimeout = hiera('puppet::daemon::configtimeout', "120"), $server = hiera('puppet::daemon::server', "puppet.${::domain}") ) { diff --git a/manifests/daemon/disabled.pp b/manifests/daemon/disabled.pp new file mode 100644 index 0000000..49354aa --- /dev/null +++ b/manifests/daemon/disabled.pp @@ -0,0 +1,15 @@ +class puppet::daemon::disabled { + service { "puppet": + enable => false, + ensure => stopped, + require => Package["puppet"]. + } + + file { [ "/etc/cron.d/puppetd", "/usr/local/sbin/check-puppetd.sh" ]: + ensure => absent, + } + + cron { [ "puppetd-check", "puppet-restart" ]: + ensure => absent, + } +} diff --git a/manifests/standalone.pp b/manifests/standalone.pp index b34f551..3550d99 100644 --- a/manifests/standalone.pp +++ b/manifests/standalone.pp @@ -1,16 +1,10 @@ # manage a puppet standalone installation with no agent class puppet::standalone { - - include puppet::base # agent will not start on boot by default + # Agent will not start on boot by default + include puppet::base + include puppet::daemon::disabled class { "puppet::repo": method => "standalone", } - - service { "puppet": - enable => false, - ensure => stopped, - hasrestart => true, - require => [ Package["puppet"], File["/etc/default/puppet"] ], - } } |