我在 Ubuntu 11.10 上使用 Dropbox命令行实用程序/守护程序,但它不适用于 Puppet。
我可以手动成功控制保管箱:
$ sudo /etc/init.d/dropbox [status/start/stop/status]
但是,当我配置 Puppet 以确保保管箱始终运行时,它会失败并显示以下日志消息:
(/Stage[main]/Dropbox::Service/Service[dropbox]/ensure) change from stopped to running failed: Could not start Service[dropbox]: Execution of '/etc/init.d/dropbox start' returned 1: at /etc/puppet/modules/dropbox/manifests/init.pp:8
这是我的木偶清单文件:
class dropbox {
include dropbox::service
}
class dropbox::service {
service { "dropbox":
ensure => running,
}
}
上述错误消息似乎也暗示 Dropbox“状态”命令不适用于 Puppet,因为即使 Dropbox 已经在运行,我也会收到相同的错误消息(“无法启动”)。
有什么想法吗?