aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoachim Tingvold <joachim@tingvold.com>2015-03-29 15:11:33 +0200
committerJoachim Tingvold <joachim@tingvold.com>2015-03-29 15:11:33 +0200
commit3ec824b20fc65c2352d881b80c02e6c59565f39d (patch)
tree0a6f4a0cdc8dfcfb1df37b09d01c013d409c910e
parentfc045611ed25109d04fd74765e49a7e58b1dd693 (diff)
Make v4-rev on secondary DHCP.
-rwxr-xr-xbootstrap/make-base-requires.sh4
-rwxr-xr-xbootstrap/make-reverse4-files.pl1
2 files changed, 4 insertions, 1 deletions
diff --git a/bootstrap/make-base-requires.sh b/bootstrap/make-base-requires.sh
index 92848df..8013cf6 100755
--- a/bootstrap/make-base-requires.sh
+++ b/bootstrap/make-base-requires.sh
@@ -44,6 +44,7 @@ ssh -l root ${PRIMARY} "mkdir -p ${BASE}/dhcp/conf-v4/"
ssh -l root ${PRIMARY} "mkdir -p ${BASE}/dhcp/conf-v6/"
ssh -l root ${PRIMARY} "~/tgmanage/bootstrap/make-dhcp6-init.sh"
+ssh -l root ${PRIMARY} "systemctl enable isc-dhcp-server"
ssh -l root ${PRIMARY} "systemctl enable isc-dhcp6-server"
ssh -l root ${PRIMARY} "~/tgmanage/bootstrap/make-named.pl master ${BASE}"
ssh -l root ${PRIMARY} "~/tgmanage/bootstrap/make-dhcpd.pl ${BASE}"
@@ -57,7 +58,8 @@ ssh -l root ${SECONDARY} "mkdir -p ${BASE}/dhcp/conf-v4/"
ssh -l root ${SECONDARY} "mkdir -p ${BASE}/dhcp/conf-v6/"
ssh -l root ${SECONDARY} "~/tgmanage/bootstrap/make-dhcp6-init.sh"
-ssh -l root ${SECONDARY} "insserv -r isc-dhcp-server"
+ssh -l root ${SECONDARY} "systemctl disable isc-dhcp-server"
+ssh -l root ${SECONDARY} "systemctl disable isc-dhcp6-server"
ssh -l root ${SECONDARY} "~/tgmanage/bootstrap/make-dhcpd.pl ${BASE}"
ssh -l root ${SECONDARY} "~/tgmanage/bootstrap/make-dhcpd6.pl ${BASE}"
ssh -l root ${SECONDARY} "~/tgmanage/bootstrap/make-named.pl slave ${BASE}"
diff --git a/bootstrap/make-reverse4-files.pl b/bootstrap/make-reverse4-files.pl
index 86489ba..88f7a37 100755
--- a/bootstrap/make-reverse4-files.pl
+++ b/bootstrap/make-reverse4-files.pl
@@ -44,6 +44,7 @@ if ( $role eq "master" )
}
elsif ( $role eq "slave" )
{
+ open DFILE, ">" . $dhcp_revzones_file or die $!;
open SFILE, ">" . $bind_sec_revzones_file or die $!;
}
else