fuel-plugin-ovs/deployment_scripts/puppet/manifests/ovs-install-compute.pp

18 lines
636 B
Puppet

# get options
$master_ip = hiera('master_ip')
$ovs_settings = hiera('fuel-plugin-ovs')
$dpdk = hiera('dpdk')
$install_nsh = $ovs_settings['install_nsh']
$install_dpdk = $ovs_settings['install_dpdk']
$ovs_socket_mem = join(pick($dpdk['ovs_socket_mem'], []), ',')
if $operatingsystem == 'Ubuntu' {
exec { 'install ovs_nsh_dpdk':
command => "curl http://${master_ip}:8080/plugins/fuel-plugin-ovs-0.9/deployment_scripts/install.sh | bash -s ${master_ip} ${install_nsh} ${install_dpdk} ${ovs_socket_mem}",
path => "/usr/bin:/usr/sbin:/bin:/sbin";
}
} elsif $operatingsystem == 'CentOS' {
}