]> gitweb.fluxo.info Git - puppet-apache.git/commitdiff
Rails config in custom class apache::rails
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 13 Dec 2010 17:20:42 +0000 (15:20 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 13 Dec 2010 17:20:42 +0000 (15:20 -0200)
manifests/init.pp

index 088a02a2dbddc93fb22817a4fd09a3a3ee890c80..8a1fe1c03673c167aa987fa1fac8a62ed7060d5b 100644 (file)
@@ -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"],
+  }
+}