forked from Controls/gitea-pages
document how to get IP address from DNS in Hiera for manual network management
This commit is contained in:
@@ -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`).
|
||||
|
||||
Reference in New Issue
Block a user