Skip to content

Commit

Permalink
Adding task to set contrail plugin
Browse files Browse the repository at this point in the history
Adding task to set contrail plugin in /etc/default/neutron-server
Closes-Bug:1376118
Change-Id: I19f9847ac889a493a0ac310dc0ced1b79de6ffac
  • Loading branch information
Chhandak committed Jan 28, 2015
1 parent 6960236 commit 1721204
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions contrail/environment/modules/contrail/manifests/config.pp
Expand Up @@ -204,6 +204,7 @@
$internal_vip = $::contrail::params::internal_vip,
$external_vip = $::contrail::params::external_vip,
$contrail_internal_vip = $::contrail::params::contrail_internal_vip,
$contrail_plugin_location = $::contrail::params::contrail_plugin_location,
$config_ip_list = $::contrail::params::config_ip_list,
$config_name_list = $::contrail::params::config_name_list,
$database_ip_port = $::contrail::params::database_ip_port,
Expand Down Expand Up @@ -497,6 +498,14 @@
logoutput => true
}
->
exec { "config-neutron-server" :
command => "sudo sed -i '/NEUTRON_PLUGIN_CONFIG.*/d' /etc/default/neutron-server && echo \"$contrail_plugin_location\" >> /etc/default/neutron-server && service neutron-server restart && echo config-neutron-server >> /etc/contrail/contrail_config_exec.out",
onlyif => "test -f /etc/default/neutron-server",
unless => "grep -qx config-neutron-server /etc/contrail/contrail_config_exec.out",
provider => shell,
logoutput => 'true'
}
->
# initd script wrapper for contrail-discovery
file { "/etc/init.d/contrail-discovery" :
ensure => present,
Expand Down
3 changes: 2 additions & 1 deletion contrail/environment/modules/contrail/manifests/params.pp
Expand Up @@ -86,7 +86,8 @@
$storage_admin_key,
$storage_virsh_uuid,
$storage_monitor_hosts,
$storage_osd_disks
$storage_osd_disks,
$contrail_plugin_location = "NEUTRON_PLUGIN_CONFIG=\'/etc/neutron/plugins/opencontrail/ContrailPlugin.ini\'"
) {
if ($zookeeper_ip_list == undef) {
$zk_ip_list_to_use = $config_ip_list
Expand Down

0 comments on commit 1721204

Please sign in to comment.