diff --git a/manifests/monit.pp b/manifests/monit.pp index 87a4727..f1a0077 100644 --- a/manifests/monit.pp +++ b/manifests/monit.pp @@ -18,6 +18,15 @@ require => File['/etc/monit'], } + file { '/etc/default/monit': + mode => 644, + owner => root, + group => root, + content => template("/etc/puppet/modules/monit/templates/default.erb"), + notify => Service['monit'], + require => Package['monit'], + } + file { '/etc/monit/': mode => 755, owner => root, diff --git a/templates/default.erb b/templates/default.erb new file mode 100644 index 0000000..d9c7150 --- /dev/null +++ b/templates/default.erb @@ -0,0 +1,8 @@ +# Defaults for monit initscript +# sourced by /etc/init.d/monit +# +# Generated by puppet for <%= fqdn %>, DO NOT MODIFY! +# + +# start monit +startup=1