From f82f2fd6ac5171a3af8391b2360513a047a99b54 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Sat, 22 Jun 2013 01:40:32 +0000 Subject: [PATCH] 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 Reviewed-by: Clark Boylan Reviewed-by: James E. Blair Approved: James E. Blair Tested-by: Jenkins --- modules/puppetboot/manifests/init.pp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/modules/puppetboot/manifests/init.pp b/modules/puppetboot/manifests/init.pp index 634aae5740..82ac260ee8 100644 --- a/modules/puppetboot/manifests/init.pp +++ b/modules/puppetboot/manifests/init.pp @@ -1,11 +1,13 @@ # == Class: puppetboot # class puppetboot($ensure=present) { - file {'/etc/init/puppetboot.conf': - ensure => $ensure, - owner => 'root', - group => 'root', - mode => '0644', - source => 'puppet:///modules/puppetboot/puppetboot.conf', + if ($::operatingsystem in ['CentOS', 'RedHat', 'Ubuntu']) { + file {'/etc/init/puppetboot.conf': + ensure => $ensure, + owner => 'root', + group => 'root', + mode => '0644', + source => 'puppet:///modules/puppetboot/puppetboot.conf', + } } }