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:
@@ -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',
|
||||||
@@ -8,4 +9,5 @@ class puppetboot($ensure=present) {
|
|||||||
mode => '0644',
|
mode => '0644',
|
||||||
source => 'puppet:///modules/puppetboot/puppetboot.conf',
|
source => 'puppet:///modules/puppetboot/puppetboot.conf',
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user