Skip to content

Commit

Permalink
Merge "SM-TOR: missed file to check-in"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Jan 28, 2016
2 parents efef9c3 + 065ec8a commit 9319985
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions contrail/environment/modules/contrail/manifests/toragent.pp
Expand Up @@ -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",
Expand All @@ -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']
}

0 comments on commit 9319985

Please sign in to comment.