X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=manifests%2Fsite.pp;h=8a5c9711ed52d6b27548c77c023d419d248db8c3;hb=f2afd94612e62ed7984004578c3f66144e2571a3;hp=4d0ef65aaf58cbb704b7950114530836365fd3c4;hpb=5c6109f1d1fe490d5c725f2706644e88574f0b41;p=mirror%2Fdsa-puppet.git diff --git a/manifests/site.pp b/manifests/site.pp index 4d0ef65aa..8a5c9711e 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -16,9 +16,8 @@ Exec { node default { $localinfo = yamlinfo('*', "/etc/puppet/modules/debian-org/misc/local.yaml") $nodeinfo = nodeinfo($fqdn, "/etc/puppet/modules/debian-org/misc/local.yaml") - $hosterinfo = whohosts($nodeinfo, "/etc/puppet/modules/debian-org/misc/hoster.yaml") $allnodeinfo = allnodeinfo("sshRSAHostKey ipHostNumber", "purpose mXRecord") - notice("hoster for ${fqdn} is ${hosterinfo}") + notice( sprintf("hoster for %s is %s", $fqdn, getfromhash($nodeinfo, 'hoster', 'name') ) ) include munin-node include syslog-ng @@ -99,16 +98,13 @@ node default { case $hostname { klecker,ravel,senfl,orff,draghi: { include named::authoritative } geo1,geo2,geo3: { include named::geodns } - franck,liszt,master,samosa,spohr,widor: { include named::recursor } + liszt: { include named::recursor } } case $hostname { - ries: { - include unbound - $runs_local_resolver = true - } - default: { - $runs_local_resolver = false - } + franck,master,lobos,samosa,spohr,widor: { include unbound } + } + case getfromhash($nodeinfo, 'squeeze') { + true: { include unbound } } include resolv @@ -155,7 +151,12 @@ node default { chopin,geo3,soler,wieck: { include debian-radvd } - } + } + + case $kernel { + Linux: { include entropykey } + } + } # vim:set et: