RHEL服务不会开始使用Puppet

时间:2013-06-14 18:49:04

标签: puppet rhel gitlab

我正在尝试使用此模块(https://github.com/sbadia/puppet-gitlab)设置gitlab并进行一些修改以使用RVM和RHEL 6.我得到了一切正常工作,除了gitlab服务无法启动。

该服务定义为:

 service {
    'gitlab':
      ensure     => running,
      pattern    => 'puma',
      hasrestart => true,
      enable     => true,
      hasstatus  => false,
      subscribe  => File['/etc/init.d/gitlab'],
  }

启用了调试的代理的相关输出:

Debug: Service[gitlab](provider=redhat): Executing 'ps -ef'
Debug: Executing '/sbin/chkconfig gitlab'
Debug: Executing '/sbin/service gitlab start'
Debug: Executing '/sbin/chkconfig gitlab'
Notice: /Stage[main]/Gitlab::Server/Service[gitlab]/ensure: ensure changed 'stopped' to 'running'
Debug: /Stage[main]/Gitlab::Server/Service[gitlab]: The container Class[Gitlab::Server] will propagate my refresh even
t
Info: /Stage[main]/Gitlab::Server/Service[gitlab]: Unscheduling refresh on Service[gitlab]
Debug: Class[Gitlab::Server]: The container Stage[main] will propagate my refresh event
Debug: Finishing transaction 70257873749220

似乎/ sbin / service gitlab start已经执行了。但是服务没有启动(日志中也没有条目)。但是,如果我手动运行服务gitlab start,它工作正常。

我注意到有一行说“服务上的非调度刷新[gitlab]”。不知道为什么以及它是否与它有关。有什么建议?感谢。

1 个答案:

答案 0 :(得分:1)

这是我怀疑它归结为:

您已设置ensure => running但尚未为puppet提供状态命令,以检查该服务是否实际正在运行(hasstatus => false)。

请查看此bugzilla评论,以获得更多信息。