summaryrefslogtreecommitdiffstats
path: root/cac
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-08-06 20:19:08 +0200
committertv <tv@shackspace.de>2015-08-06 20:19:08 +0200
commit2c420a1b62ed2932b0a21999eb04472bb9dfa90b (patch)
tree616f52bf7dd793720165af673f732c5a95ed80ff /cac
parentf4589158572ab35969b9bccf801ea07e115705e1 (diff)
cac generatenetworking: don't set hostName
Diffstat (limited to 'cac')
-rwxr-xr-xcac6
1 files changed, 0 insertions, 6 deletions
diff --git a/cac b/cac
index c6ab4e4..fa52f92 100755
--- a/cac
+++ b/cac
@@ -204,21 +204,15 @@ __cac_cli__getserver() {(
__cac_cli__generatenetworking() {(
server=$(__cac_cli__getserver "$1")
- hostname=$(echo $server | jq -r .label)
-
address=$(echo $server | jq -r .ip)
gateway=$(echo $server | jq -r .gateway)
nameserver=8.8.8.8
netmask=$(echo $server | jq -r .netmask)
prefix=$(netmask_to_prefix $netmask)
- #printf '# Generated file: %s generatenetworking %s %s\n' "$0" "$1" "$2"
- #printf '# on %s\n' "$(date -Is)"
- #printf '\n'
printf '_:\n'
printf '\n'
printf '{\n'
- printf ' networking.hostName = "%s";\n' $hostname
printf ' networking.interfaces.enp2s1.ip4 = [\n'
printf ' {\n'
printf ' address = "%s";\n' $address