官术网_书友最值得收藏!

The cron resource type

A cron job mainly consists of a command and the recurring time and date at which to run the command. Puppet models the command and each date particle as a property of a resource with the cron type:

cron { 'clean-files':
ensure => present,
user => 'root',
command => '/usr/local/bin/clean-files',
minute => '1',
hour => '3',
weekday => [ '2', '6' ],
environment => 'MAILTO=felix@example.net',
}

The environment property allows you to specify one or more variable bindings for cron to add to the job.

主站蜘蛛池模板: 无锡市| 嘉黎县| 益阳市| 浏阳市| 上饶县| 沙雅县| 青田县| 凤翔县| 乌拉特前旗| 大田县| 东阳市| 荆门市| 龙州县| 斗六市| 红桥区| 赤峰市| 屯留县| 兴和县| 安庆市| 太原市| 三江| 蒙自县| 阿克陶县| 高雄市| 天峻县| 长丰县| 新闻| 秀山| 古丈县| 商河县| 涿州市| 合水县| 桃江县| 翁牛特旗| 尉犁县| 常德市| 乌拉特中旗| 礼泉县| 安远县| 东丽区| 东港市|