diff options
author | varac <varacanero@zeromail.org> | 2013-01-31 11:09:20 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2013-01-31 11:13:40 +0100 |
commit | ab9a292f41139c5c5e36de87e03236e29dd27e23 (patch) | |
tree | 14d59fd095a2e1c3a258371936d80e0109955378 /puppet/manifests/site.pp | |
parent | 09649211f3c4b9ffd08af15deabe5916cf78df72 (diff) |
puppet tags: site_config::default and site_config::slow
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..146b373e 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::server } |