diff options
author | tv <tv@shackspace.de> | 2015-08-06 20:19:08 +0200 |
---|---|---|
committer | tv <tv@shackspace.de> | 2015-08-06 20:19:08 +0200 |
commit | 2c420a1b62ed2932b0a21999eb04472bb9dfa90b (patch) | |
tree | 616f52bf7dd793720165af673f732c5a95ed80ff /cac | |
parent | f4589158572ab35969b9bccf801ea07e115705e1 (diff) |
cac generatenetworking: don't set hostName
Diffstat (limited to 'cac')
-rwxr-xr-x | cac | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -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 |