]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
Run geodns sync at boot so we have the latest zonefiles
authorPeter Palfrader <peter@palfrader.org>
Sat, 26 Jun 2010 19:12:25 +0000 (21:12 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sat, 26 Jun 2010 19:12:25 +0000 (21:12 +0200)
modules/named/files/common/cron-geo [new file with mode: 0644]
modules/named/manifests/geodns.pp

diff --git a/modules/named/files/common/cron-geo b/modules/named/files/common/cron-geo
new file mode 100644 (file)
index 0000000..5e263a1
--- /dev/null
@@ -0,0 +1,6 @@
+#
+# THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
+# USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
+#
+
+@reboot geodnssync sleep 1m && /etc/bind/geodns/trigger > /dev/null
index 3a41b94da87fb5c7b2153f10eddf54fe88d6ef53..d8155cdf3d5c8791f1f3410825eb61a28cc7f4f0 100644 (file)
@@ -61,6 +61,12 @@ class named::geodns inherits named {
             group   => geodnssync,
             mode    => 440,
             ;
+        "/etc/cron.d/dsa-boot-geodnssync":
+            source  => [ "puppet:///named/per-host/$fqdn/cron-geo",
+                         "puppet:///named/common/cron-geo" ],
+            owner   => root,
+            group   => root,
+            ;
     }
 }