From 6b1461d0ec2d6470003a69e33517e6d231253d81 Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Sun, 2 Feb 2014 09:45:44 +0000 Subject: [PATCH] add cron job for squeeze hosts Signed-off-by: Stephen Gran --- manifests/site.pp | 10 ++++++++-- modules/roles/manifests/udldap/client.pp | 19 +++++++++++++++++++ 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 modules/roles/manifests/udldap/client.pp diff --git a/manifests/site.pp b/manifests/site.pp index 3d46f4ee..9b6d45ba 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -39,13 +39,19 @@ node default { include autofs include lvm include multipath - include roles::pubsub::client + if $::lsbdistcodename == squeeze { + include roles::udlap::client + } else { + include roles::pubsub::client + class { 'roles::udlap::client': + ensure => absent + } + } if $::hostname in [pasquini,tristano,bertali,boito,rossini,salieri,dijkstra,luchesi,byrd,clementi,czerny,bm-bl1,bm-bl2,bm-bl3,bm-bl4,bm-bl5,bm-bl6,bm-bl7,bm-bl8,bm-bl9,bm-bl10,bm-bl11,bm-bl12,bm-bl13,bm-bl14] { include ganeti2 } - if $::hostname == 'dinis' { include bacula::director } else { diff --git a/modules/roles/manifests/udldap/client.pp b/modules/roles/manifests/udldap/client.pp new file mode 100644 index 00000000..da722be4 --- /dev/null +++ b/modules/roles/manifests/udldap/client.pp @@ -0,0 +1,19 @@ +# = Class: roles::udldap::client +# +# Client config for udldap client +# +# == Sample Usage: +# +# include roles::udldap::client +# +class roles::udldap::client ($ensure=present) { + + cron { 'udreplicate': + ensure => $ensure, + environment => 'TERM=dumb', + command => '/usr/sbin/ud-replicate', + user => root, + hour => '*', + minute => [10,25,40,55], + } +} -- 2.39.2