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

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.

主站蜘蛛池模板: 宜宾县| 翁源县| 历史| 沛县| 聂荣县| 玛沁县| 吴旗县| 获嘉县| 长春市| 肥乡县| 健康| 樟树市| 仪陇县| 阜康市| 广德县| 仁布县| 康定县| 营山县| 隆林| 舒城县| 连山| 周至县| 馆陶县| 开远市| 三江| 永年县| 鄂尔多斯市| 大关县| 浦江县| 颍上县| 泰来县| 房产| 达州市| 阳西县| 连云港市| 门源| 丹阳市| 沙坪坝区| 上高县| 合肥市| 乌鲁木齐县|