summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-12-13 15:20:42 -0200
committerSilvio Rhatto <rhatto@riseup.net>2010-12-13 15:20:42 -0200
commitd05a3d54c1ee242fce0fc4c8c041c5e52614329f (patch)
tree4b7b0fa7612393a545e7480b86d2d763217d0f36
parentc2fc6292d340456ac6388f5d95a1567fe5ae77af (diff)
downloadpuppet-apache-d05a3d54c1ee242fce0fc4c8c041c5e52614329f.tar.gz
puppet-apache-d05a3d54c1ee242fce0fc4c8c041c5e52614329f.tar.bz2
Rails config in custom class apache::rails
-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"],
+ }
+}