Issue #14693 has been updated by Stefan Schulte. Status changed from Unreviewed to Duplicate
A provider has to meet different criteria before it is considered suitable. One criteria is that the commands `/sbin/status` etc exist and a second one is that the `operatingsystem` is `ubuntu`. The last one was added because the upstart provider was apparently just tested on ubuntu. But there is currently a feature request (#11989) to let `upstart` work on the whole debian and redhat family (so it'll work on centos too) Marked as duplicate of #11989 ---------------------------------------- Bug #14693: "Provider upstart is not functional on this host" on CentOS (RHEL) 6.2 https://projects.puppetlabs.com/issues/14693#change-63861 Author: Justin Honold Status: Duplicate Priority: Normal Assignee: Category: Target version: Affected Puppet version: Keywords: Branch: Upstart is a part of RHEL 6.x, and I have an Upstart script I've made for Nginx. Without specifying a provider: err: /Stage[main]/Nginx::Service/Service[nginx]/ensure: change from stopped to running failed: Could not start Service[nginx]: Execution of '/sbin/service nginx start' returned 1: at /etc/puppet/modules/nginx/manifests/service.pp:11 Specifying 'upstart' as a provider: err: /Stage[main]/Nginx::Service/Service[nginx]: Provider upstart is not functional on this host I got it to function with the following sub-optimal stanza (hasstatus/pattern because '/sbin/status' appears to always return 0): <pre> service { 'nginx': ensure => 'running', hasstatus => false, pattern => 'nginx: master process', restart => '/sbin/restart nginx', start => '/sbin/start nginx', stop => '/sbin/stop nginx', require => File['/etc/init/nginx.conf'], } </pre> What prevents Upstart from being a usable provider on RHEL systems? Is there a better way I should handle this? -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
