From ac1fd49177f0f065f9c5ab730c266ceff59c2436 Mon Sep 17 00:00:00 2001 From: Konrad Bucheli Date: Tue, 23 Jan 2024 15:54:09 +0100 Subject: [PATCH] document how to get IP address from DNS in Hiera for manual network management --- admin-guide/configuration/networking.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/admin-guide/configuration/networking.md b/admin-guide/configuration/networking.md index 66cb774a..aef16a4a 100644 --- a/admin-guide/configuration/networking.md +++ b/admin-guide/configuration/networking.md @@ -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`).