summaryrefslogtreecommitdiff
path: root/puppet
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-01-18 16:37:39 +0100
committervarac <varacanero@zeromail.org>2013-01-18 16:43:19 +0100
commitb81891c036f4573a8bc314e11d3be61fbbbd9aff (patch)
treea35e7f722a43b283ad15d10c8aa431454e66102e /puppet
parentf9eb0d17ac2fabd8688201d9816a9a575d3b8d6a (diff)
create cronjob for leap_ca
Diffstat (limited to 'puppet')
-rw-r--r--puppet/modules/site_ca_daemon/manifests/init.pp12
1 files changed, 11 insertions, 1 deletions
diff --git a/puppet/modules/site_ca_daemon/manifests/init.pp b/puppet/modules/site_ca_daemon/manifests/init.pp
index 29a70df8..4ec5b00b 100644
--- a/puppet/modules/site_ca_daemon/manifests/init.pp
+++ b/puppet/modules/site_ca_daemon/manifests/init.pp
@@ -87,6 +87,16 @@ class site_ca_daemon {
file { '/usr/local/bin/leap_ca_daemon':
ensure => link,
- target => '/srv/leap_ca_daemon/bin/leap_ca',
+ target => '/srv/leap_ca_daemon/bin/leap_ca_daemon',
}
+
+ file { '/etc/cron.hourly/leap_ca':
+ ensure => present,
+ content => "#/bin/sh\n/srv/leap_ca_daemon/bin/leap_ca_daemon --run-once > /dev/null",
+ owner => 'root',
+ group => 0,
+ mode => '0755',
+ }
+
+
}