Fedora and Debian don't use Upstart files.
* modules/puppetboot/manifests/init.pp: The Upstart conf file will fail to apply on systems which lack an /etc/init directory, such as Fedora or Debian. Change-Id: Ibefe69fd30c9c7e0320705276e151472e581d878 Reviewed-on: https://review.openstack.org/34082 Reviewed-by: Dan Prince <dprince@redhat.com> Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Reviewed-by: James E. Blair <corvus@inaugust.com> Approved: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
This commit is contained in:
parent
eac3f5ba8b
commit
f82f2fd6ac
@ -1,6 +1,7 @@
|
|||||||
# == Class: puppetboot
|
# == Class: puppetboot
|
||||||
#
|
#
|
||||||
class puppetboot($ensure=present) {
|
class puppetboot($ensure=present) {
|
||||||
|
if ($::operatingsystem in ['CentOS', 'RedHat', 'Ubuntu']) {
|
||||||
file {'/etc/init/puppetboot.conf':
|
file {'/etc/init/puppetboot.conf':
|
||||||
ensure => $ensure,
|
ensure => $ensure,
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
@ -9,3 +10,4 @@ class puppetboot($ensure=present) {
|
|||||||
source => 'puppet:///modules/puppetboot/puppetboot.conf',
|
source => 'puppet:///modules/puppetboot/puppetboot.conf',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user