blob: b875d23557d19e314ab6a7b5c48e305992310567 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
include onos
Exec{
path => "/usr/bin:/usr/sbin:/bin:/sbin",
timeout => 180,
logoutput => "true",
}
$neutron_settings = hiera_hash('quantum_settings')
$nets = $neutron_settings['predefined_networks']
$gateway_ip = $nets['net04_ext']['L3']['gateway']
$public_eth = $onos::public_eth
file{ "/opt/netconfig.sh":
ensure => file,
content => template('onos/netconfig.sh.erb'),
}->
exec{ 'set gatewaymac':
command => "sh /opt/netconfig.sh;
rm -rf /opt/netconfig.sh;",
}
|