summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/puppetmaster/passenger.pp45
1 files changed, 45 insertions, 0 deletions
diff --git a/manifests/puppetmaster/passenger.pp b/manifests/puppetmaster/passenger.pp
new file mode 100644
index 0000000..63b2fab
--- /dev/null
+++ b/manifests/puppetmaster/passenger.pp
@@ -0,0 +1,45 @@
+# class to use passenger for serving puppetmaster
+
+class puppet::puppetmaster::passenger {
+
+ case $operatingsystem {
+ debian: { include puppet::puppetmaster::passenger::debian }
+ defaults: { include puppet::puppetmaster::passenger::base }
+ }
+}
+
+class puppet::puppetmaster::passenger::debian inherits puppet::puppetmaster::passenger::base {
+ # according to http://github.com/reductivelabs/puppet/tree/master/ext/rack rack needs
+ # to be version >= 1.0.0 . lenny-backports provide it
+ package { "librack-ruby": ensure => "1.0.0-2~bpo50+1" }
+ package { "librack-ruby1.8": ensure => "1.0.0-2~bpo50+1" }
+
+ apache::config::global{ 'puppet-apache2-passenger.conf': }
+ apache::debian::module { 'ssl': ensure => present }
+ apache::debian::module { 'passenger': ensure => present }
+ apache::debian::module { 'headers': ensure => present }
+}
+
+class puppet::puppetmaster::passenger::base {
+ notice ( "class puppet::puppetmaster::passenger::base needs to be configured for using passenger with non-debian OS !" )
+
+ include apache
+ include passenger::apache
+
+
+ # http://github.com/reductivelabs/puppet/tree/master/ext/rack
+ file { ["/etc/puppet/rack", "/etc/puppet/rack/public"]:
+ ensure => directory,
+ mode => 0755,
+ owner => root,
+ group => root,
+ }
+ file { "/etc/puppet/rack/config.ru":
+ ensure => present,
+ source => "puppet:///modules/puppet/master/config.ru",
+ mode => 0644,
+ owner => puppet,
+ group => root,
+ }
+}
+