From 8e375e4a9b96d99d643f2b39e6b159e718b54312 Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Sun, 23 Aug 2009 13:24:17 +0100 Subject: [PATCH] we're not ready to write the debian.net entries in the ldap hosts tree Signed-off-by: Stephen Gran --- ud-generate | 40 ++++++++++++++++++++-------------------- ud-replicate | 10 +++++----- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/ud-generate b/ud-generate index 0b67ff8..334af5d 100755 --- a/ud-generate +++ b/ud-generate @@ -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 diff --git a/ud-replicate b/ud-replicate index 765cc3a..e59391f 100755 --- a/ud-replicate +++ b/ud-replicate @@ -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. -- 2.20.1