summaryrefslogtreecommitdiff
path: root/manifests/puppetmaster/cluster.pp
blob: 081a290de1dc3052e73b78e13208531b2a0d503e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# manifests/puppetmaster/cluster.pp

class puppet::puppetmaster::cluster inherits puppet::puppetmaster {
    include puppet::puppetmaster::cluster::base

    case $operatingsystem {
        gentoo, centos: {
            file{"/etc/init.d/puppetmaster":
                source => "puppet://$server/puppet/cluster/init.d/puppetmaster.${operatingsystem}",
                owner => root, group => 0, mode => 0755;
            }
        }
    }
}

class puppet::puppetmaster::cluster::base inherits puppet::puppetmaster::base {
    include mongrel, nginx

    File[puppet_config] {
        require +> [ Package[mongrel], Package[nginx], File[nginx_config] ],
    }
}