From 0055a0bbc507aac4648bb105b8254d52295e812a Mon Sep 17 00:00:00 2001 From: K Jonathan Harker Date: Wed, 4 Jun 2014 17:27:48 -0700 Subject: [PATCH] Use the correct name for apache The name of the apache package and service are different on different operating systems. Fortunately, the apache module populates a variable with the correct name for us. This is also true of the apache ssl package. Change-Id: I7d93e56281f828cba9262c135b0beb43dce9748a --- manifests/init.pp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 05bd654..f681bc8 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -87,7 +87,7 @@ class graphite( ensure => directory, owner => 'www-data', group => 'www-data', - require => [Package['apache2'], + require => [Package[$::apache::params::apache_name], File['/var/lib/graphite']] } @@ -95,7 +95,7 @@ class graphite( ensure => directory, owner => 'www-data', group => 'www-data', - require => Package['apache2'], + require => Package[$::apache::params::apache_name], } file { '/etc/graphite': @@ -110,7 +110,7 @@ class graphite( onlyif => 'test ! -f /var/lib/graphite/storage/graphite.db', require => [ Exec['install_graphite_web'], File['/var/lib/graphite'], - Package['apache2'], + Package[$::apache::params::apache_name], File['/usr/local/lib/python2.7/dist-packages/graphite/local_settings.py'], File['/usr/local/bin/graphite-init-db.py'], File['/etc/graphite/admin.ini']], @@ -182,7 +182,7 @@ class graphite( group => 'www-data', content => template('graphite/admin.ini'), require => [ File['/etc/graphite'], - Package['apache2']], + Package[$::apache::params::apache_name]], } file { '/etc/init.d/carbon-cache':