From 2c420a1b62ed2932b0a21999eb04472bb9dfa90b Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 6 Aug 2015 20:19:08 +0200 Subject: cac generatenetworking: don't set hostName --- cac | 6 ------ 1 file changed, 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 -- cgit v1.2.3