document how to get IP address from DNS in Hiera for manual network management

This commit is contained in:
2024-01-23 15:54:09 +01:00
parent 761cef4f8c
commit ac1fd49177
+13
View File
@@ -64,6 +64,19 @@ So there is the list `networking::connections` which selects the network connect
Then for each connection name listed there needs to be a hash in Hiera named `networking::connection::$CONNECTION_NAME`.
If you have a fixed IP address which is in the DNS, you might also interpolate the `ipv4_by_dns` or the `ipv6_by_dns` variable:
```
networking::connection::psi_network:
mac_address: '00:50:56:9d:bb:ad'
ipv4_method: 'manual'
ipv4_address: '%{ipv4_by_dns}/24'
ipv4_gateway: '129.129.187.1'
ipv6_method: 'manual'
ipv6_address: '%{ipv6_by_dns}'
ipv6_gateway: 'abcd:1234::1'
```
### Ethernet Connection Definition
The default connection type is `ethernet` (alias for `802-3-ethernet`).