Merge "Make adding compute to hpgs aggregate idempotent" into fuel9-kilo
This commit is contained in:
@@ -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',
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user