]> gitweb.fluxo.info Git - puppet-apache.git/commitdiff
Split classes across files and adding new classes for ruby stuff
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 18 Jan 2013 19:45:32 +0000 (17:45 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 18 Jan 2013 19:45:32 +0000 (17:45 -0200)
manifests/init.pp
manifests/passenger.pp [new file with mode: 0644]
manifests/rails.pp [new file with mode: 0644]
manifests/ruby.pp [new file with mode: 0644]

index b445161eb441097aa45382fb8b515170ff6f6c52..5e0aae1cc9716fa8d5b2ac1d4f4de28c2f8e07cd 100644 (file)
@@ -416,27 +416,3 @@ class apache {
     refreshonly => true,
   }
 }
-
-class apache::rails inherits apache {
-  package { "mod_rack":
-    name   => "libapache2-mod-passenger",
-    ensure => installed,                                                                                                     
-  }
-
-  # Needed by https://git.codecoop.org/projects/coquelicot
-  package { [ 'libsinatra-ruby1.8', 'libruby1.8',
-              'libhaml-ruby1.8',    'liblockfile-ruby',
-              'libgettext-ruby1.8', 'libjson-ruby1.8' ]:
-    ensure => installed,
-  }
-
-  # Already provided by libruby1.8 package
-  package { 'libopenssl-ruby1.8':
-    ensure => absent,
-  }
-
-  module { "passenger":
-    ensure  => present,
-    require => Package["mod_rack"],
-  }
-}
diff --git a/manifests/passenger.pp b/manifests/passenger.pp
new file mode 100644 (file)
index 0000000..92230f0
--- /dev/null
@@ -0,0 +1,11 @@
+class apache::passenger inherits apache {
+  package { "mod_rack":
+    name   => "libapache2-mod-passenger",
+    ensure => installed,                                                                                                     
+  }
+
+  module { "passenger":
+    ensure  => present,
+    require => Package["mod_rack"],
+  }
+}
diff --git a/manifests/rails.pp b/manifests/rails.pp
new file mode 100644 (file)
index 0000000..18667c9
--- /dev/null
@@ -0,0 +1,2 @@
+class apache::rails inherits apache::ruby {
+}
diff --git a/manifests/ruby.pp b/manifests/ruby.pp
new file mode 100644 (file)
index 0000000..163eaf6
--- /dev/null
@@ -0,0 +1,13 @@
+class apache::ruby inherits apache::passenger {
+  # Needed by https://git.codecoop.org/projects/coquelicot
+  package { [ 'libsinatra-ruby1.8', 'libruby1.8',
+              'libhaml-ruby1.8',    'liblockfile-ruby',
+              'libgettext-ruby1.8', 'libjson-ruby1.8' ]:
+    ensure => installed,
+  }
+
+  # Already provided by libruby1.8 package
+  package { 'libopenssl-ruby1.8':
+    ensure => absent,
+  }
+}