Merge "Make adding compute to hpgs aggregate idempotent" into fuel9-kilo

This commit is contained in:
Jenkins
2016-08-02 16:11:12 +00:00
committed by Gerrit Code Review

View File

@@ -49,6 +49,7 @@ class contrail::compute::aggregate {
exec { 'aggr_add_host':
command => "bash -c \"nova aggregate-add-host hpgs-aggr ${::fqdn}\" && touch /opt/contrail/aggr_add_host-DONE",
unless => "bash -c \"nova aggregate-details hpgs-aggr | grep -q ${::fqdn}\"",
creates => '/opt/contrail/aggr_add_host-DONE',
}
}