- Puppet 5 Essentials(Third Edition)
- Martin Alfke Felix Frank
- 89字
- 2021-07-02 18:22:24
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.
推薦閱讀
- JavaScript從入門到精通(微視頻精編版)
- MySQL 8從入門到精通(視頻教學版)
- Python自動化運維快速入門(第2版)
- AIRAndroid應用開發實戰
- VMware vSphere 6.7虛擬化架構實戰指南
- aelf區塊鏈應用架構指南
- Python 3破冰人工智能:從入門到實戰
- Big Data Analytics
- 運用后端技術處理業務邏輯(藍橋杯軟件大賽培訓教材-Java方向)
- Unity 3D/2D移動開發實戰教程
- Frank Kane's Taming Big Data with Apache Spark and Python
- Sails.js Essentials
- Getting Started with React VR
- Tableau Dashboard Cookbook
- 輕松學Scratch 3.0 少兒編程(全彩)