Fix for installing ovs on controller, update urls

$install_on_controller was being compared to a quoted true, and since
true != 'true', the expression always evaluated to false, regardless of
whether the feature was enabled.
Also update the urls from where the scripts are pulled to point to 1.0
version of the plugin.

Change-Id: Ifa961240d1ccd53e56b93d5afae7da0df26c1e34
Signed-off-by: Romanos Skiadas <rski@intracom-telecom.com>
This commit is contained in:
Romanos Skiadas 2016-11-09 11:10:58 +02:00
parent 0591813082
commit a8f78d202d
2 changed files with 5 additions and 5 deletions

View File

@ -11,10 +11,10 @@ $ovs_socket_mem = join(pick($dpdk['ovs_socket_mem'], []), ',')
if $operatingsystem == 'Ubuntu' {
if (!roles_include(['primary-controller', 'controller'])) or ($install_on_controller == 'true') {
if (!roles_include(['primary-controller', 'controller'])) or $install_on_controller {
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",
command => "curl http://${master_ip}:8080/plugins/fuel-plugin-ovs-1.0/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' {

View File

@ -3,8 +3,8 @@ $master_ip = hiera('master_ip')
if $operatingsystem == 'Ubuntu' {
exec { 'update flavors':
command => "curl http://${master_ip}:8080/plugins/fuel-plugin-ovs-0.9/deployment_scripts/update_flavors.sh | bash -s",
path => "/usr/bin:/usr/sbin:/bin:/sbin",
command => "curl http://${master_ip}:8080/plugins/fuel-plugin-ovs-1.0/deployment_scripts/update_flavors.sh | bash -s",
path => '/usr/bin:/usr/sbin:/bin:/sbin',
}
} elsif $operatingsystem == 'CentOS' {
}