从我读到的内容来看,cron 似乎是 built into Puppet .
cron { 'apply puppet master config':
command => 'puppet apply /etc/puppetlabs/puppet/master.pp',
hour => [ 12, 0 ],
}
但是,当我尝试运行上述配置时,出现以下错误:
Error: Could not find a suitable provider for cron
为什么 Puppet 不使用内置的 cron 类型?
最佳答案
尽管我的系统的 cron 作业位于 /etc/cron.daily
并且Puppet所依赖的ubuntu上的/etc/cron.weekly
cron包没有安装。 (正如多米尼克和马特在评论中指出的那样)。
在运行 cron 配置之前,我可以通过将其添加到我的配置文件中来解决此问题:
package { 'cron':
ensure => installed,
}
关于puppet - 错误: Could not find a suitable provider for cron,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43896191/