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

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.

主站蜘蛛池模板: 无为县| 丰镇市| 柳州市| 琼海市| 上虞市| 纳雍县| 乐至县| 南陵县| 渝中区| 宁阳县| 平果县| 南安市| 辛集市| 上高县| 泸定县| 鹤庆县| 庄浪县| 石楼县| 信丰县| 砀山县| 灌阳县| 武夷山市| 江口县| 西华县| 弋阳县| 固阳县| 专栏| 高邑县| 游戏| 称多县| 迭部县| 双峰县| 亳州市| 黔西| 布拖县| 军事| 河源市| 婺源县| 连山| 兴宁市| 炎陵县|