Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Lightning- committed Dec 4, 2023
1 parent 8d1f804 commit 8c8f33b
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* [Configure nameservers](#configure-nameservers)
+ [Additional nameservers](#additional-nameservers)
+ [Custom nameservers](#custom-nameservers)
* [Configure resolv options](#configure-resolv-options)
* [Overwrite network routes](#overwrite-network-routes)
+ [Add static route and overwrite the default gateway on interface eth0](#add-static-route-and-overwrite-the-default-gateway-on-interface-eth0)
- [Reference](#reference)
Expand Down Expand Up @@ -58,6 +59,7 @@ class { 'foreman_network':
manage_network_interface_restart => true,
manage_if_from_facts_only => true,
resolv_conf_path => '/etc/resolv.conf',
resolver_options => [],
debug => false,
searchpath_merge => true,
searchpath => [],
Expand All @@ -75,6 +77,7 @@ foreman_network:
manage_network_interface_restart: true
manage_if_from_facts_only: true
resolv_conf_path: /etc/resolv.conf
resolver_options: []
debug: false
searchpath_merge: true
searchpath: []
Expand Down Expand Up @@ -152,6 +155,30 @@ nameserver 4.4.4.4
[...]
```

### Configure resolv options

Add some resolver options to /etc/resolv.conf

```
class { 'foreman_network':
resolver_options => [
'timeout:1',
'rotate'
],
}
```

Using Hiera:

```
foreman_network:
resolver_options:
- timeout:1
- rotate
```

If a top scope variable `$resolver_options` exists (e.g. from Foreman ENC) it will be merged into your defined options here. This way you can tune your settings according to your infrastructure.

### Overwrite network routes

**IMPORTANT: When the boot mode of the primary interface from foreman is a DHCP, all routes for this interface will be ignored**
Expand Down

0 comments on commit 8c8f33b

Please sign in to comment.