Skip to content

Instantly share code, notes, and snippets.

@nicksloan
Created August 12, 2013 17:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicksloan/2417cb3d7696ea720468 to your computer and use it in GitHub Desktop.
Save nicksloan/2417cb3d7696ea720468 to your computer and use it in GitHub Desktop.
service { "supervisor-init":
require => [Package['supervisor'], File['/etc/init/supervisor.conf']],
provider => 'debian',
name => 'supervisor',
ensure => 'stopped',
enable => false
}
service { "supervisor-upstart":
require => [Service['supervisor-init'], File['/etc/init/supervisor.conf']],
provider => 'upstart',
name => 'supervisor',
ensure => 'running'
}
@nicksloan
Copy link
Author

Puppet::Parser::AST::Resource failed with error ArgumentError: Cannot alias Service[supervisor-upstart] to ["supervisor"] at /tmp/vagrant-puppet/modules-0/supervisor/manifests/init.pp:25; resource ["Service", "supervisor"] already declared at /tmp/vagrant-puppet/modules-0/supervisor/manifests/init.pp:18 at /tmp/vagrant-puppet/modules-0/supervisor/manifests/init.pp:25 on node precise64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment