Commit 45cb429d authored by Leigh Stoller's avatar Leigh Stoller

A bit more hackery for elabinelab. I think this named stuff is going

to have to be done in perl; trying to do it with simple substitution
is not really viable.
parent baa70c5a
......@@ -16,6 +16,8 @@ OURDOMAIN = @OURDOMAIN@
# This is silly. Needs to be done properly.
TESTBED_NETWORK = @TESTBED_NETWORK@
REVERSE_MAPNAME = $(subst .0,,$(TESTBED_NETWORK))
BOSSTOKEN = $(shell echo @BOSSNODE@ | sed -e 's/\..*//')
USERTOKEN = $(shell echo @USERNODE@ | sed -e 's/\..*//')
NAMED_FILES = named.conf.template named_makeconf \
reverse.head resolv.conf localhost.rev forward.head \
......@@ -37,7 +39,7 @@ $(REVERSE_MAPNAME).db.head: reverse.head
cat reverse.head | sed -e 's/$(REVERSE_MAPNAME)\.//' > $(REVERSE_MAPNAME).db.head
$(OURDOMAIN).db.head: forward.head
cp forward.head $(OURDOMAIN).db.head
cat forward.head | sed -e 's/BOSSTOKEN/$(BOSSTOKEN)/' -e 's/USERTOKEN/$(USERTOKEN)/' > $(OURDOMAIN).db.head
named.conf: named.conf.template named_makeconf
perl named_makeconf named.conf.template > named.conf
......
......@@ -23,6 +23,7 @@ $TTL 30
; and boss are both A records
ns IN A @BOSSNODE_IP@
boss IN A @BOSSNODE_IP@
BOSSTOKEN IN A @BOSSNODE_IP@
IN MX 10 ops
; CNAMEs for boss
......@@ -32,6 +33,7 @@ cvsup IN CNAME boss
; Plastic and names it is otherwise known as...
ops IN A @USERNODE_IP@
USERTOKEN IN A @USERNODE_IP@
IN MX 10 ops
users IN CNAME ops
fs IN CNAME ops
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment