summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/init.pp22
1 files changed, 12 insertions, 10 deletions
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"],
+ }
+}