Service puppet无法从centos5.3获得正确的服务状态

Service puppet无法从centos5.3获得正确的服务状态,service,puppet,Service,Puppet,当我禁用puppet服务时,centos5.3系统总是有更改:注意:/Stage[main]/puppet/service[puppet]/sure:sure将“running”更改为“stopped” 注意:完成的目录运行时间为1.15秒 只需说出代码: [root@xen-21206-vm02 ~]# puppet resource service puppet -d Debug: Puppet::Type::Service::ProviderDaemontools: file /usr/

当我禁用puppet服务时,centos5.3系统总是有更改:注意:/Stage[main]/puppet/service[puppet]/sure:sure将“running”更改为“stopped” 注意:完成的目录运行时间为1.15秒

只需说出代码:

[root@xen-21206-vm02 ~]# puppet resource service puppet -d

Debug: Puppet::Type::Service::ProviderDaemontools: file /usr/bin/svc does not exist
Debug: Puppet::Type::Service::ProviderOpenrc: file /sbin/rc-service does not exist
Debug: Puppet::Type::Service::ProviderLaunchd: file /bin/launchctl does not exist
Debug: Puppet::Type::Service::ProviderGentoo: file /sbin/rc-update does not exist
Debug: Puppet::Type::Service::ProviderDebian: file /usr/sbin/update-rc.d does not exist
Debug: Puppet::Type::Service::ProviderRunit: file /usr/bin/sv does not exist
Debug: Puppet::Type::Service::ProviderSystemd: file systemctl does not exist
Debug: Puppet::Type::Service::ProviderDaemontools: file /usr/bin/svc does not exist
Debug: Puppet::Type::Service::ProviderOpenrc: file /sbin/rc-service does not exist
Debug: Puppet::Type::Service::ProviderLaunchd: file /bin/launchctl does not exist
Debug: Puppet::Type::Service::ProviderGentoo: file /sbin/rc-update does not exist
Debug: Puppet::Type::Service::ProviderDebian: file /usr/sbin/update-rc.d does not exist
Debug: Puppet::Type::Service::ProviderRunit: file /usr/bin/sv does not exist
Debug: Puppet::Type::Service::ProviderSystemd: file systemctl does not exist
Debug: Executing '/sbin/service puppet status'
Debug: Executing '/sbin/chkconfig puppet'


service { 'puppet':
  ensure => 'running',
  enable => 'false',
}


[root@xen-21206-vm02 ~]# /sbin/service puppet status
puppet is stopped
[root@xen-21206-vm02 ~]# echo $?
3
此代理获取错误的服务状态。应

service { 'puppet':
  ensure => 'stopped',
  enable => 'false',
}
谁能帮我


thks

很好的分析!这不应该发生。CentOS 5.3相当古老,是吗?这是什么版本的木偶?木偶版本:3.2.3真奇怪。您愿意向Puppet代码文件添加额外的调试输出吗?