From ba62e670c60bd47b1b134c933b046b93e46db570 Mon Sep 17 00:00:00 2001 From: ohrensessel Date: Thu, 5 Jun 2014 21:37:50 +0200 Subject: [PATCH] Add cronjob for ntpdate --- manifests/sysadmin.pp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/manifests/sysadmin.pp b/manifests/sysadmin.pp index 55f7302..4dab594 100644 --- a/manifests/sysadmin.pp +++ b/manifests/sysadmin.pp @@ -39,7 +39,7 @@ class ff_gw::sysadmin($zabbixserver = '127.0.0.1', $muninserver = '127.0.0.1', $ # then install some basic packages package { ['vim-nox', 'git', 'etckeeper', 'pv', 'curl', 'atop', - 'screen', 'tcpdump', 'rsync', 'file', 'psmisc']: + 'screen', 'tcpdump', 'rsync', 'file', 'psmisc', 'ntpdate']: ensure => installed, } -> @@ -54,6 +54,13 @@ class ff_gw::sysadmin($zabbixserver = '127.0.0.1', $muninserver = '127.0.0.1', $ enable => false, } + cron { + 'ntpdate-debian': + command => '/usr/sbin/ntpdate-debian', + user => root, + minute => '0'; + } + # user accounts create_resources('account', $accounts) # Sudo