我在 pp 文件中定义了几个 crontab,例如:
cron { 'puppet-cron1':
ensure => present,
command => "cat /etc/issue",
user => root,
minute => '*/30',
}
cron { 'puppet-cron2':
ensure => present,
command => "cat /etc/issue",
user => www-data,
minute => '*/30',
}
如何列出系统上由 puppet 创建的所有 cronjobs?
我尝试过puppet ressource cron
,它只列出了根 cronjob:
cron { 'puppet-cron1':
ensure => 'present',
command => 'cat /etc/issue',
minute => ['*/30'],
target => 'root',
user => 'root',
}