Puppet Class: puppet::server::thin

Defined in:
manifests/server/thin.pp

Overview



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'manifests/server/thin.pp', line 1

class puppet::server::thin {

  include puppet::params
  include puppet::server::rack

  class { 'puppet::server::standalone': enabled => false }

  $servers = $::processorcount
  nginx::vhost { "puppetmaster":
    port     => 8140,
    template => "puppet/vhost/nginx/thin.conf.erb",
  }

  concat::fragment { "proctitle":
    order  => '05',
    target => "${::puppet::params::puppet_confdir}/config.ru",
    source => 'puppet:///modules/puppet/config.ru/05-proctitle.rb',
  }

  thin::app { 'puppetmaster':
    user      => 'puppet',
    group     => 'puppet',
    rackup    => "${::puppet::params::puppet_confdir}/config.ru",
    chdir     => $puppet::params::puppet_confdir,
    subscribe => Concat["${::puppet::params::puppet_confdir}/config.ru"],
  }
}