[ha] fix barbican server install error 35/65635/2
authorGuillermo Herrero <guillermo.herrero@enea.com>
Fri, 7 Dec 2018 08:09:38 +0000 (09:09 +0100)
committerGuillermo Herrero <guillermo.herrero@enea.com>
Fri, 7 Dec 2018 08:37:38 +0000 (08:37 +0000)
Ensure installation happens first on node 1 first,
run as batch on the rest after.

Change-Id: I1ac3f516c35c4941b343e88d47c78b19d13d7b90
Signed-off-by: Guillermo Herrero <guillermo.herrero@enea.com>
mcp/config/states/openstack_ha

index 499c1d3..732c571 100755 (executable)
@@ -61,7 +61,8 @@ if salt -I 'nova:compute' match.grain 'cpuarch:aarch64' \
   salt -C 'G@cpuarch:aarch64 and I@nova:compute' state.sls armband
 fi
 
-salt -I 'barbican:server' state.sls barbican -b 1
+salt -C 'I@barbican:server and *01*' state.sls barbican
+salt -C 'I@barbican:server and not *01*' state.sls barbican -b 1
 salt -I 'barbican:client' state.sls barbican
 
 salt -I 'redis:cluster:role:master' state.sls redis