diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2007-10-19 11:25:38 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2007-10-19 11:25:38 -0700 |
commit | 724e9418e3f6acf81fcc29172de6c1f5e3335fa7 (patch) | |
tree | 384b0be3e93a8de0b0d890f5fee18d04590ea01c /templates/system/static-host-mapping | |
parent | 20c7a06a9dd38fb705a245cb755a351241113461 (diff) | |
download | vyatta-cfg-724e9418e3f6acf81fcc29172de6c1f5e3335fa7.tar.gz vyatta-cfg-724e9418e3f6acf81fcc29172de6c1f5e3335fa7.zip |
move "system" configuration templates/scripts to vyatta-cfg-system.
Diffstat (limited to 'templates/system/static-host-mapping')
4 files changed, 0 insertions, 68 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\" " diff --git a/templates/system/static-host-mapping/node.def b/templates/system/static-host-mapping/node.def deleted file mode 100644 index 736413f..0000000 --- a/templates/system/static-host-mapping/node.def +++ /dev/null @@ -1 +0,0 @@ -help: "Map DNS names to system interfaces" |