Sha256: 76c96464b733ca7f8b0144d43ec92dadffaac39af1941626c519b67391b8ba2a

Contents?: true

Size: 1.71 KB

Versions: 93

Compression:

Stored size: 1.71 KB

Contents

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/rack/config.ru",
  mode => 0644,
  owner => puppet,
  group => root,
}
file { "/etc/apache2/conf.d/puppetmasterd":
  ensure => present,
  source => "puppet:///modules/rack/apache2.conf",
  mode => 0644,
  owner => root,
  group => root,
  require => [File["/etc/puppet/rack/config.ru"], File["/etc/puppet/rack/public"], Package["apache2"], Package["passenger"]],
  notify => Service["apache2"],
}

package { ["rack", "passenger"]:
  ensure => installed,
  provider => "gem",
}

service { "apache2":
}

case $lsbdistid {
  "Debian": {
    package { ["apache2-mpm-worker", "apache2-threaded-dev", "apache2"]:
      ensure => installed,
    }
    file { "/etc/apache2/mods-enabled/ssl.load":
      ensure => "../mods-available/ssl.load",
      notify => Service["apache2"],
      require => Package["apache2"],
    }
    Service["apache2"] {
      require => Package["apache2"],
    }
    exec { "/var/lib/gems/1.8/bin/passenger-install-apache2-module --auto":
      subscribe => Package["passenger"],
      before => Service["apache2"],
      require => Package[["passenger", "apache2-threaded-dev"]],
    }
  }
}

notice("You need to manually enable mod_passenger.so for Apache.")
notice("Usually, you put these config stanzas into httpd.conf:")
notice("   LoadModule passenger_module /var/lib/gems/1.8/gems/passenger-2.2.2/ext/apache2/mod_passenger.so")
notice("   PassengerRoot /var/lib/gems/1.8/gems/passenger-2.2.2")
notice("   PassengerRuby /usr/bin/ruby1.8")
notice("--------------------------------------------------------")

Version data entries

93 entries across 93 versions & 3 rubygems

Version Path
puppet-2.7.12 ext/rack/manifest.pp
puppet-2.7.11 ext/rack/manifest.pp
puppet-2.6.14 ext/rack/manifest.pp
supply_drop-0.7.0 examples/vendored-puppet/vendor/puppet-2.7.8/ext/rack/manifest.pp
supply_drop-0.6.1 examples/vendored-puppet/vendor/puppet-2.7.8/ext/rack/manifest.pp
supply_drop-0.6.0 examples/vendored-puppet/vendor/puppet-2.7.8/ext/rack/manifest.pp
puppet-2.6.13 ext/rack/manifest.pp
puppet-2.7.9 ext/rack/manifest.pp
puppet-2.7.8 ext/rack/manifest.pp
puppet-2.7.6 ext/rack/manifest.pp
puppet-2.6.12 ext/rack/manifest.pp
puppet-2.7.5 ext/rack/manifest.pp
puppet-2.6.11 ext/rack/manifest.pp
puppet-2.7.4 ext/rack/manifest.pp
puppet-2.6.10 ext/rack/manifest.pp
puppet-2.7.3 ext/rack/manifest.pp
puppet-2.7.1 ext/rack/manifest.pp
puppet-2.6.9 ext/rack/manifest.pp
puppet-2.6.8 ext/rack/manifest.pp
puppet-2.6.7 ext/rack/manifest.pp