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

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.

主站蜘蛛池模板: 玛多县| 鸡西市| 安福县| 曲靖市| 南平市| 玛曲县| 平和县| 墨玉县| 济源市| 罗平县| 富宁县| 秦皇岛市| 岳普湖县| 天台县| 宿州市| 衡阳县| 新龙县| 凤山县| 会理县| 济宁市| 弥勒县| 荔波县| 离岛区| 应城市| 罗源县| 海安县| 泾阳县| 澄迈县| 龙门县| 宜春市| 大城县| 甘南县| 四川省| 嘉荫县| 榆林市| 二连浩特市| 肃北| 金堂县| 嵊州市| 班玛县| 绥芬河市|