Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable => true failure #9

Closed
grantunwin opened this issue Jul 21, 2014 · 4 comments
Closed

enable => true failure #9

grantunwin opened this issue Jul 21, 2014 · 4 comments

Comments

@grantunwin
Copy link

When manifest reads enable => true on ubuntu 14.04. Thows the following error:

change from false to true failed: Execution of '/usr/sbin/update-rc.d squid3 defaults' returned 1: update-rc.d: /etc/init.d/squid3: file does not exist

@flyinprogrammer
Copy link

ubuntu uses upstart, so you want this, only not because it breaks rhel support, so i suck. the better fix would be to parameterize 'provider'

service { 'squid3_service':
name => $service_name,
ensure => 'running',
provider => 'upstart',
hasrestart => 'true',
hasstatus => 'true',
require => Package['squid3_package'],
}

@bhechinger
Copy link

I tried that, but it still gives the same error. I've opened a support ticket with Puppetlabs to see if I can't get any clarification as to why this is even an issue in the first place. Puppet should be able to determine that i's upstart and do the right thing. I would hope.

@Vincent--
Copy link

As a workaround, you can try that :

# Create a symlink to /etc/init/*.conf in /etc/init.d, because Puppet looks there incorrectly
file { '/etc/init.d/squid3':
    ensure => link,
    target => '/lib/init/upstart-job',
}
->
class { '::squid3':
....

See http://nodesforbreakfast.com/article/2012/07/25/puppet-27-upstart-services-ubuntu

@thias
Copy link
Owner

thias commented Nov 16, 2015

This sort of sucks, but it's definitely not a problem specific to my module :-(

@thias thias closed this as completed Nov 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants