From 065ec8a360bd9dee49693431fc7fb7e933824999 Mon Sep 17 00:00:00 2001 From: Dheeraj Gautam Date: Wed, 27 Jan 2016 10:43:01 -0800 Subject: [PATCH] SM-TOR: missed file to check-in Change-Id: I6cb3596d87e8ca5466eba4b43b1205a3fb2a6625 Closes-bug: #1525370 --- .../modules/contrail/manifests/toragent.pp | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/contrail/environment/modules/contrail/manifests/toragent.pp b/contrail/environment/modules/contrail/manifests/toragent.pp index d511d520..6afb22d5 100644 --- a/contrail/environment/modules/contrail/manifests/toragent.pp +++ b/contrail/environment/modules/contrail/manifests/toragent.pp @@ -31,9 +31,6 @@ } contrail::lib::report_status { 'toragent_started': state => 'toragent_started' } include ::contrail - $tor_config = $::contrail::params::top_of_rack - create_resources(contrail::lib::top_of_rack, $tor_config, $tor_defaults) - contrail::lib::report_status { 'toragent_completed': state => 'toragent_completed' } file { ["/etc/contrail/ssl", "/etc/contrail/ssl/certs", @@ -46,10 +43,24 @@ mode => '0755', owner => root, group => root, - source => "puppet:///tor_certs/cacert.pem", + source => "puppet:///ssl_certs/ca-cert.pem", + } + + $global_tor_config = $::contrail::params::tor_ha_config + # get myhost configuration + $tor_config = $global_tor_config["$::hostname"] + create_resources(contrail::lib::top_of_rack, $tor_config, $tor_defaults) + + contrail::lib::report_status { 'toragent_completed': state => 'toragent_completed' } + + service { 'supervisor-vrouter': + enable => true, + ensure => running } Contrail::Lib::Report_status['toragent_started'] + -> File['tor-agent-ssl-cacert'] -> Contrail::Lib::Top_of_rack <| |> + -> Service['supervisor-vrouter'] -> Contrail::Lib::Report_status['toragent_completed'] }