23 lines
1.2 KiB
Puppet
23 lines
1.2 KiB
Puppet
$fuel_settings = parseyaml(file('/etc/primary-controller.yaml'))
|
|
if $operatingsystem == 'Ubuntu' {
|
|
if $fuel_settings['fuel-plugin-ovs']['use_dpdk'] {
|
|
$NICS = $fuel_settings['fuel-plugin-ovs']['dpdk-bind-nic']
|
|
exec { "install dpdk":
|
|
command => "wget http://10.20.0.2:8080/plugins/fuel-plugin-ovs-0.5/repositories/ubuntu/dpdk/dpdk-install.sh; bash ./dpdk-install.sh $NICS",
|
|
path => "/usr/bin:/usr/sbin:/bin:/sbin",
|
|
}
|
|
} else {
|
|
exec { "install ovs":
|
|
command => "wget http://10.20.0.2:8080/plugins/fuel-plugin-ovs-0.5/repositories/ubuntu/ovs/ovs-install.sh; bash ./ovs-install.sh",
|
|
path => "/usr/bin:/usr/sbin:/bin:/sbin",
|
|
}
|
|
}
|
|
if $fuel_settings['fuel-plugin-ovs']['use_dppd'] {
|
|
exec { "install dppd":
|
|
command => "wget http://10.20.0.2:8080/plugins/fuel-plugin-ovs-0.5/repositories/ubuntu/dppd/dppd-install.sh; bash ./dppd-install.sh",
|
|
path => "/usr/bin:/usr/sbin:/bin:/sbin",
|
|
}
|
|
}
|
|
} elsif $operatingsystem == 'CentOS' {
|
|
}
|