summaryrefslogtreecommitdiff
path: root/manifests/puppetmaster/passenger.pp
blob: c4bc062f8361579f104de638ffffd932852a205c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# class to use passenger for serving puppetmaster

class puppet::puppetmaster::passenger inherits puppet::puppetmaster::base {

  include ::passenger

  # A reference configuration is available at :
  # http://github.com/reductivelabs/puppet/tree/master/ext/rack

  file {
    ['/etc/puppet/rack', '/etc/puppet/rack/public', '/etc/puppet/rack/tmp']:
      ensure => directory,
      owner => root, group => 0, mode => 0755;

    '/etc/puppet/rack/config.ru':
      source => [ "puppet:///modules/site-puppet/master/config.ru",
                  "puppet:///modules/puppet/master/config.ru" ],
      owner => puppet, group => 0, mode => 0644;
  }
}