Skip to content

Instantly share code, notes, and snippets.

@norrs

norrs/gist:1904295

Created Feb 24, 2012
Embed
What would you like to do?
Bind zone files:
Always fetch latest zonefile from files/ in dns::server module and put it in /tmp/
Always run named-checkzone on zonefile in /tmp/ , report with loglevel > info IF errors. Silent if not.
Copy zonefile from /tmp/ to bind directory where it should be if no complaints from named-checkzone
and refresh zonefile with rndc reload.
Problem with loglevel => info :
info: Caching catalog for derp.online.ntnu.no
info: Applying configuration version '1330123844'
info: /Stage[main]/Dns::Server/Dns::Server::Zonefile[online.ntnu.no]/Exec[zonecheck.online.ntnu.no]/returns: executed successfully
info: /Stage[main]/Dns::Server/Dns::Server::Zonefile[lan]/Exec[zonecheck.lan]/returns: /tmp/lan:21: unknown RR type 'work'
info: /Stage[main]/Dns::Server/Dns::Server::Zonefile[lan]/Exec[zonecheck.lan]/returns: zone lan/IN: loading from master file /tmp/lan failed: unknown class/type
info: /Stage[main]/Dns::Server/Dns::Server::Zonefile[lan]/Exec[zonecheck.lan]/returns: zone lan/IN: not loaded due to errors.
err: /Stage[main]/Dns::Server/Dns::Server::Zonefile[lan]/Exec[zonecheck.lan]/returns: change from notrun to 0 failed: named-checkzone lan /tmp/lan returned 1 instea
d of one of [0] at /etc/puppet/modules/dns/manifests/server.pp:70
notice: /Stage[main]/Dns::Server/Dns::Server::Zonefile[lan]/Exec[mv-zone-lan]: Dependency Exec[zonecheck.lan] has failures: true
warning: /Stage[main]/Dns::Server/Dns::Server::Zonefile[lan]/Exec[mv-zone-lan]: Skipping because of failed dependencies
notice: /Stage[main]/Dns::Server/Dns::Server::Zonefile[lan]/Exec[zone-reload-lan]: Dependency Exec[zonecheck.lan] has failures: true
warning: /Stage[main]/Dns::Server/Dns::Server::Zonefile[lan]/Exec[zone-reload-lan]: Skipping because of failed dependencies
notice: /Stage[main]//Node[derp]/Dns::Resolv[resolv.conf]/File[resolv.conf]: Dependency Exec[zonecheck.lan] has failures: true
warning: /Stage[main]//Node[derp]/Dns::Resolv[resolv.conf]/File[resolv.conf]: Skipping because of failed dependencies
notice: /Whit[last]: Dependency Exec[zonecheck.lan] has failures: true
warning: /Whit[last]: Skipping because of failed dependencies
notice: Finished catalog run in 4.58 seconds
Even failures gets logged as info.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.