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.26 ext/rack/manifest.pp
puppet-2.7.25 ext/rack/manifest.pp
puppet-2.7.24 ext/rack/manifest.pp
puppet-3.3.2 ext/rack/manifest.pp
puppet-3.3.1 ext/rack/manifest.pp
puppet-3.3.1.rc3 ext/rack/manifest.pp
puppet-3.3.1.rc2 ext/rack/manifest.pp
puppet-3.3.1.rc1 ext/rack/manifest.pp
puppet-3.3.0 ext/rack/manifest.pp
puppet-3.3.0.rc3 ext/rack/manifest.pp
puppet-3.3.0.rc2 ext/rack/manifest.pp
puppet-3.2.4 ext/rack/manifest.pp
puppet-2.7.23 ext/rack/manifest.pp
puppet-3.2.3 ext/rack/manifest.pp
puppet-3.2.3.rc1 ext/rack/manifest.pp
puppet-3.2.2 ext/rack/manifest.pp
puppet-2.7.22 ext/rack/manifest.pp
puppet-3.2.1 ext/rack/manifest.pp
puppet-3.2.1.rc1 ext/rack/manifest.pp
puppet-3.2.0.rc2 ext/rack/manifest.pp