Puppet无法在chroot环境中运行服务

时间:2014-04-03 04:21:13

标签: mysql service puppet openstack

我正在构建一个Ubuntu Live ISO,其中所有Openstack服务都已安装并配置为单节点设置(安装在同一节点上的所有服务)。 为了构建这个ISO我正在创建一个chroot env。通过展开Live Ubuntu ISO。 使用puppet进行Openstack安装时,puppet无法在chroot环境中启动服务。

Eg:
/etc/init.d/mysql status #gives this O/P
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service mysql status

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the status(8) utility, e.g. status mysql

service mysql status
shows no output.

任何指针都将受到赞赏:)

1 个答案:

答案 0 :(得分:0)

我发现傀儡在chroot监狱中确实很尴尬,因为收集facter事实并不适当(或者说那种情况)。

对于手头的问题,你想要让你的service资源使用合适的provider是Puppet没有选择正确的资源,例如

service { "mysql": provider => upstart }

甚至

Service { provider => upstart } # resource default at global scope

请参阅list of service providers。请注意Puppet应该如何选择合适的Puppet,所以这可能确实是chroot的一个问题,以及它如何扭曲facter的审议。

相关问题