Hi
Is there a way for puppet to create cron job on each of my node based on my
gateway's IP ?
bala@bala-desktop:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse
Iface
10.0.2.00.0.0.0 255.255.255.0 U 1 0
Here's one way:
1) Install the erwbgy/system module:
# puppet module install erwbgy/system
2) Configure a custom fact using facter_dot_d for the default gateway:
include system::schedules
$config = {
'default_route' = {
'type' = 'script',
'value' = #!/bin/bash\nprintf