- 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.
推薦閱讀
- Python程序設計教程(第2版)
- Modular Programming with Python
- Mastering RabbitMQ
- C#程序設計實訓指導書
- 自己動手實現Lua:虛擬機、編譯器和標準庫
- Python Tools for Visual Studio
- 你不知道的JavaScript(中卷)
- C# 8.0核心技術指南(原書第8版)
- Getting Started with React Native
- 30天學通C#項目案例開發
- 會當凌絕頂:Java開發修行實錄
- PostgreSQL Developer's Guide
- Mastering OpenStack
- Spring Boot從入門到實戰
- Mastering Node.js