- 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.
推薦閱讀
- Getting Started with Citrix XenApp? 7.6
- Python編程自學手冊
- JavaScript百煉成仙
- Design Principles for Process:driven Architectures Using Oracle BPM and SOA Suite 12c
- Beginning Java Data Structures and Algorithms
- 零起步玩轉掌控板與Mind+
- 工程軟件開發技術基礎
- 名師講壇:Java微服務架構實戰(SpringBoot+SpringCloud+Docker+RabbitMQ)
- Julia高性能科學計算(第2版)
- 零基礎入門學習Python(第2版)
- HTML5+CSS3 Web前端開發技術(第2版)
- C/C++數據結構與算法速學速用大辭典
- 編程可以很簡單
- Secret Recipes of the Python Ninja
- Python程序設計:基礎與實踐