/puppet-route

Route module for Puppet

Primary LanguagePuppet

Route module for Puppet

This module manages route on Linux (RedHat/Debian) distros.

Pluginsync needs to be enabled for this module to function properly. Read more about pluginsync in our docs

Description

This module depends on the puppetlabs-stdlib.

Usage

Add route for host and/or network.

$target_net = ['20.20.20.0/24', '10.20.0.0/16', '10.10.20.21']
route { $target_net: 
    gateway     => '10.10.10.1',
}

Delete route for host and/or network.

$target_net_absent = ['10.10.20.51', '10.20.30.0/16']
route { $target_net_absent:
    ensure      => absent,
    gateway     => '10.10.10.1',
}