![我如何列出所有由 puppet 创建的 cronjobs?](https://linux22.com/image/683403/%E6%88%91%E5%A6%82%E4%BD%95%E5%88%97%E5%87%BA%E6%89%80%E6%9C%89%E7%94%B1%20puppet%20%E5%88%9B%E5%BB%BA%E7%9A%84%20cronjobs%EF%BC%9F.png)
我在 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',
}