Defined Type: psick::network::routing_table
- Defined in:
- manifests/network/routing_table.pp
Overview
Definition: psick::network::routing_table
Configures /etc/iproute2/rt_tables
Parameters:
$table_id - required
Actions:
Adds routing table id and name to /etc/iproute2/rt_tables
Sample Usage:
psick::network::routing_table { 'vlan22':
table_id => '200',
}
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'manifests/network/routing_table.pp', line 20
define psick::network::routing_table (
String $table_id,
String $table = $name,
) {
if ! defined(Concat['/etc/iproute2/rt_tables']) {
concat { '/etc/iproute2/rt_tables':
owner => 'root',
group => 'root',
mode => '0644',
}
concat::fragment { 'rt_tables-base':
target => '/etc/iproute2/rt_tables',
source => 'puppet:///modules/psick/network/rt_tables',
}
}
concat::fragment { "rt_tables-${table}":
target => '/etc/iproute2/rt_tables',
content => "${table_id}\t${table}\n",
}
}
|