X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;ds=sidebyside;f=modules%2Froles%2Fmanifests%2Finit.pp;h=8500597b4403f1a6437476e298b6430c2a384c47;hb=7080ac15a6d1fb49c16944aad38e2c6567ab5ed1;hp=38572402d4812b2ccb0d51d1214d7f41d513c000;hpb=09a4b91b3afe4bc9a768731b99dc057422117d5f;p=mirror%2Fdsa-puppet.git diff --git a/modules/roles/manifests/init.pp b/modules/roles/manifests/init.pp index 38572402d..8500597b4 100644 --- a/modules/roles/manifests/init.pp +++ b/modules/roles/manifests/init.pp @@ -1,6 +1,8 @@ class roles { - if $::hostname in hiera('roles::puppetmaster') { + $roles = hiera('roles') + + if $::fqdn in $roles['puppetmaster'] { include puppetmaster } @@ -88,6 +90,12 @@ class roles { include roles::pubsub } + if getfromhash($site::nodeinfo, 'dbmaster') { + ssl::service { 'db.debian.org': + notify => Service['apache2'], + } + } + if $::hostname in [ravel] { include roles::weblog_destination }