summaryrefslogtreecommitdiff
path: root/templates/system/static-host-mapping/host-name
diff options
context:
space:
mode:
Diffstat (limited to 'templates/system/static-host-mapping/host-name')
-rw-r--r--templates/system/static-host-mapping/host-name/node.def4
-rw-r--r--templates/system/static-host-mapping/host-name/node.tag/alias/node.def33
-rw-r--r--templates/system/static-host-mapping/host-name/node.tag/inet/node.def30
3 files changed, 0 insertions, 67 deletions
diff --git a/templates/system/static-host-mapping/host-name/node.def b/templates/system/static-host-mapping/host-name/node.def
deleted file mode 100644
index ea0000a..0000000
--- a/templates/system/static-host-mapping/host-name/node.def
+++ /dev/null
@@ -1,4 +0,0 @@
-tag:
-type: txt
-help: "Map DNS names to system interfaces"
-syntax: pattern $(@) "^[-a-zA-Z0-9.]+$" ; "invalid host name $(@)"
diff --git a/templates/system/static-host-mapping/host-name/node.tag/alias/node.def b/templates/system/static-host-mapping/host-name/node.tag/alias/node.def
deleted file mode 100644
index b6f897f..0000000
--- a/templates/system/static-host-mapping/host-name/node.tag/alias/node.def
+++ /dev/null
@@ -1,33 +0,0 @@
-multi:
-type: txt
-help: "Alias for this address"
-create: "sh -c \"touch /etc/hosts && \
-sed -i '/$(../@).*#vyatta entry/d;/127\\.0\\.0\\.1.*#vyatta entry/d' \
-/etc/hosts && \
-echo \\\"$(../inet/@)\t $(../@) $(@) \t #vyatta entry\\\" \
->> /etc/hosts && \
-if [ x$(../../../domain-name/@) == x ]; \
-then \
-echo \\\"127.0.0.1\t localhost $(../../../host-name/@)\t #vyatta entry\\\" \
->> /etc/hosts; \
-else \
-echo \\\"127.0.0.1\t localhost \
-$(../../../host-name/@).$(../../../domain-name/@)\t #vyatta entry\\\" \
->> /etc/hosts; \
-fi\" "
-update: "sh -c \"touch /etc/hosts && \
-sed -i '/$(../@).*#vyatta entry/d;/127\\.0\\.0\\.1.*#vyatta entry/d' \
-/etc/hosts && \
-echo \\\"$(../inet/@)\t $(../@) $(@) \t #vyatta entry\\\" \
->> /etc/hosts && \
-if [ x$(../../../domain-name/@) == x ]; \
-then \
-echo \\\"127.0.0.1\t localhost $(../../../host-name/@)\t #vyatta entry\\\" \
->> /etc/hosts; \
-else \
-echo \\\"127.0.0.1\t localhost \
-$(../../../host-name/@).$(../../../domain-name/@)\t #vyatta entry\\\" \
->> /etc/hosts; \
-fi\" "
-delete: "sh -c \"touch /etc/hosts && \
-sed -i '/ $(../@) .*#vyatta entry/{/localhost/!d}' /etc/hosts\" "
diff --git a/templates/system/static-host-mapping/host-name/node.tag/inet/node.def b/templates/system/static-host-mapping/host-name/node.tag/inet/node.def
deleted file mode 100644
index 192273c..0000000
--- a/templates/system/static-host-mapping/host-name/node.tag/inet/node.def
+++ /dev/null
@@ -1,30 +0,0 @@
-type: ipv4
-help: "Internet address"
-create: "sh -c \"touch /etc/hosts && \
-sed -i '/$(../@).*#vyatta entry/d;/127\\.0\\.0\\.1.*#vyatta entry/d' \
-/etc/hosts && \
-echo \\\"$(@)\t $(../@) \t #vyatta entry\\\" >> /etc/hosts && \
-if [ x$(../../../domain-name/@) == x ]; \
-then \
-echo \\\"127.0.0.1\t localhost $(../../../host-name/@)\t #vyatta entry\\\" \
->> /etc/hosts; \
-else \
-echo \\\"127.0.0.1\t localhost \
-$(../../../host-name/@).$(../../../domain-name/@)\t #vyatta entry\\\" \
->> /etc/hosts; \
-fi\" "
-update: "sh -c \"touch /etc/hosts && \
-sed -i '/$(../@).*#vyatta entry/d;/127\\.0\\.0\\.1.*#vyatta entry/d' \
-/etc/hosts && \
-echo \\\"$(@)\t $(../@) \t #vyatta entry\\\" >> /etc/hosts && \
-if [ x$(../../../domain-name/@) == x ]; \
-then \
-echo \\\"127.0.0.1\t localhost $(../../../host-name/@)\t #vyatta entry\\\" \
->> /etc/hosts; \
-else \
-echo \\\"127.0.0.1\t localhost \
-$(../../../host-name/@).$(../../../domain-name/@)\t #vyatta entry\\\" \
->> /etc/hosts; \
-fi\" "
-delete: "sh -c \"touch /etc/hosts && \
-sed -i '/ $(../@) .*#vyatta entry/{/localhost/!d}' /etc/hosts\" "