From: Silvio Rhatto Date: Mon, 13 Dec 2010 17:20:42 +0000 (-0200) Subject: Rails config in custom class apache::rails X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=d05a3d54c1ee242fce0fc4c8c041c5e52614329f;p=puppet-apache.git Rails config in custom class apache::rails --- diff --git a/manifests/init.pp b/manifests/init.pp index 088a02a..8a1fe1c 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -60,11 +60,6 @@ class apache { ensure => installed, } - package { "mod_rack": - name => "libapache2-mod-passenger", - ensure => installed, - } - service { "apache": name => "apache2", ensure => running, @@ -78,11 +73,6 @@ class apache { require => Package["mod_macro"], } - module { "passenger": - ensure => present, - require => Package["mod_rack"], - } - # apache mod_macro configuration file { "${apache2_macros}": ensure => present, @@ -280,3 +270,15 @@ class apache { refreshonly => true, } } + +class apache::rails inherits apache { + package { "mod_rack": + name => "libapache2-mod-passenger", + ensure => installed, + } + + module { "passenger": + ensure => present, + require => Package["mod_rack"], + } +}