diff options
author | varac <varacanero@zeromail.org> | 2013-01-31 12:20:49 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2013-01-31 12:20:49 +0100 |
commit | 5d54af627590acd9606e570fbb1ccb87e1237a76 (patch) | |
tree | b5ee191841fb53911dfe0b8729a2f582dc16332f /puppet/manifests/site.pp | |
parent | 09649211f3c4b9ffd08af15deabe5916cf78df72 (diff) | |
parent | dda36946d405301d9123bb455753650920d0756a (diff) |
Merge branch 'feature/tags' into develop
Diffstat (limited to 'puppet/manifests/site.pp')
-rw-r--r-- | puppet/manifests/site.pp | 66 |
1 files changed, 29 insertions, 37 deletions
diff --git a/puppet/manifests/site.pp b/puppet/manifests/site.pp index 33566f0c..d422bef7 100644 --- a/puppet/manifests/site.pp +++ b/puppet/manifests/site.pp @@ -5,41 +5,33 @@ stage { 'initial': before => Stage['main'], } -node 'default' { - # prerequisites - import 'common' - include concat::setup - - $development = hiera('development') - if $development['site_config'] == true { - # include some basic classes - include site_config - } else { - notice ('NOT applying site_config') - } - - # 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::server - } +# prerequisites +import 'common' +include concat::setup +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 } |