No routing table entries when adding network route via Puppet
Posted: 2018/01/19 21:10:10
Okay. I've been attempting to add static routes via Puppet to a number of host machines. I've been writing to /etc/sysconfig/network-scripts/route-xxxxx and the entries that have been appearing look something like this...
...what I am not seeing however is anything in the routing table; all I see is the default values.
I've been tinkering around with the 'options' parameter below, i.e. trying the various table IDs and names that are populated in /etc/iproute2/rt_tables, but haven't had any joy (probably because I'm barking up the wrong tree).
Now, I expect if I were to use the Network/Netmask Directives Format to populate the routes that might bring me some luck, but I having spent a lot of time configuring my module thus far I'm reluctant to do that until I've exhausted all options.
Does anyone have any idea of what I can do here?
Code: Select all
# HEADER: This file is being managed by puppet. Changes to
# HEADER: routes that are not being managed by puppet will persist;
# HEADER: however changes to routes that are being managed by puppet will
# HEADER: be overwritten. In addition, file order is NOT guaranteed.
# HEADER: Last generated at:
172.xx.xx.xxx/255.255.255.255 via 10.x.x.x dev xxx
I've been tinkering around with the 'options' parameter below, i.e. trying the various table IDs and names that are populated in /etc/iproute2/rt_tables, but haven't had any joy (probably because I'm barking up the wrong tree).
Code: Select all
network_route { '172.xx.xx.xxx/32':
ensure => 'present',
gateway => '10.x.x.x',
interface => $interface,
netmask => '255.255.255.255',
network => '172.xx.xx.xxx',
options => 'table local',
}
Does anyone have any idea of what I can do here?