diff options
author | Micah Anderson <micah@riseup.net> | 2013-02-19 15:18:30 -0500 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2013-02-19 15:18:30 -0500 |
commit | 4dcc5f884cd22d0673f6493799ace2f03a9e66fe (patch) | |
tree | 3f3f5c217c40f3037c1b2a9cd8da3fe91fdd8389 /puppet/manifests | |
parent | 253b765620961bbc9d96e8f3653b0b9693d29811 (diff) | |
parent | 2e5eec3856b58aaff0a2049599a6455e6ff91122 (diff) |
Merge remote-tracking branch 'origin/release/v0.2.0'0.2.0
Diffstat (limited to 'puppet/manifests')
-rw-r--r-- | puppet/manifests/site.pp | 40 |
1 files changed, 38 insertions, 2 deletions
diff --git a/puppet/manifests/site.pp b/puppet/manifests/site.pp index 3a136015..1ec806d9 100644 --- a/puppet/manifests/site.pp +++ b/puppet/manifests/site.pp @@ -1,3 +1,39 @@ -node "default" { - notify {'Hello World':} +# set a default exec path +Exec { path => '/usr/bin:/usr/sbin/:/bin:/sbin:/usr/local/bin:/usr/local/sbin' } + +stage { 'initial': + before => Stage['main'], +} + +import 'common' +include site_config::default +include site_config::slow + +# parse services for host +$services=hiera_array('services') +notice("Services for ${fqdn}: ${services}") + +# configure eip +if 'openvpn' in $services { + include site_openvpn +} + +if 'couchdb' in $services { + include site_couchdb +} + +if 'webapp' in $services { + include site_webapp +} + +if 'ca' in $services { + include site_ca_daemon +} + +if 'monitor' in $services { + include site_nagios +} + +if 'tor' in $services { + include site_tor } |