we're not ready to write the debian.net entries in the ldap hosts tree
authorStephen Gran <steve@lobefin.net>
Sun, 23 Aug 2009 12:24:17 +0000 (13:24 +0100)
committerStephen Gran <steve@lobefin.net>
Sun, 23 Aug 2009 12:25:13 +0000 (13:25 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
ud-generate
ud-replicate

index 0b67ff8..334af5d 100755 (executable)
@@ -753,26 +753,26 @@ def GenDNS(File):
    try:
       F = open(File + ".tmp", "w")
      
-      global HostAttrs
-
-      for x in HostAttrs:
-         if x[1].has_key("hostname") == 0 or \
-            x[1].has_key("architecture") == 0 or\
-            x[1].has_key("sshRSAHostKey") == 0:
-            continue
-
-         if IsDebianHost.match(GetAttr(x, "hostname")) is not None:
-            continue
-
-         DNSInfo = ExtractDNSInfo(x)
-         start = True
-         for Line in DNSInfo:
-            if start == True:
-               Line = "%s.\t%s" % (GetAttr(x, "hostname"), Line)
-               start = False
-            else:
-               Line = "\t\t\t%s" % (Line)
-            F.write(Line + "\n")
+#      global HostAttrs
+#
+#      for x in HostAttrs:
+#         if x[1].has_key("hostname") == 0 or \
+#            x[1].has_key("architecture") == 0 or\
+#            x[1].has_key("sshRSAHostKey") == 0:
+#            continue
+#
+#         if IsDebianHost.match(GetAttr(x, "hostname")) is not None:
+#            continue
+#
+#         DNSInfo = ExtractDNSInfo(x)
+#         start = True
+#         for Line in DNSInfo:
+#            if start == True:
+#               Line = "%s.\t%s" % (GetAttr(x, "hostname"), Line)
+#               start = False
+#            else:
+#               Line = "\t\t\t%s" % (Line)
+#            F.write(Line + "\n")
 
       # Fetch all the users
       global PasswdAttrs
index 765cc3a..e59391f 100755 (executable)
@@ -169,11 +169,11 @@ if [ -e /var/lib/misc/thishost/dns-sshfp ]; then
   fi
 fi
 
-if [ -e /var/lib/misc/thishost/dns-zone ]; then
-  if cmp /var/lib/misc/thishost/dns-zone $tempfile2; then
-    rndc_reload=1
-  fi
-fi
+#if [ -e /var/lib/misc/thishost/dns-zone ]; then
+#  if cmp /var/lib/misc/thishost/dns-zone $tempfile2; then
+#    rndc_reload=1
+#  fi
+#fi
 
 # FIXME:
 # this needs to rebuild the zone file with a new serial so it can replicate.