18 lines
610 B
Puppet
18 lines
610 B
Puppet
notice('MODULAR: ovs-install.pp')
|
|
# get options
|
|
$master_ip = hiera('master_ip')
|
|
$ovs_settings = hiera('fuel-plugin-ovs')
|
|
|
|
$install_nsh = $ovs_settings['install_nsh']
|
|
$install_dpdk = $ovs_settings['install_dpdk']
|
|
|
|
if $operatingsystem == 'Ubuntu' {
|
|
if (!roles_include(['primary-controller', 'controller'])) or $install_on_controller {
|
|
exec { 'install ovs_nsh_dpdk':
|
|
command => "/etc/fuel/plugins/fuel-plugin-ovs-1.0/install.sh ${master_ip} ${install_nsh} ${install_dpdk}",
|
|
path => '/usr/bin:/usr/sbin:/bin:/sbin',
|
|
}
|
|
}
|
|
} elsif $operatingsystem == 'CentOS' {
|
|
}
|