Refactor to use new deploy config in ccp

This commit is contained in:
Aleksandr Didenko 2016-07-06 13:13:45 +02:00
parent 5b4c365b8c
commit a153ac231a
2 changed files with 5 additions and 1 deletions

View file

@ -23,11 +23,13 @@ create_network_conf() {
} }
assign_node_roles() { assign_node_roles() {
all_label='openstack-compute-controller=true'
for i in "${!nodes[@]}" for i in "${!nodes[@]}"
do do
node=$i node=$i
label=${nodes[$i]} label=${nodes[$i]}
kubectl get nodes $node --show-labels | grep -q "$label" || kubectl label nodes $node $label kubectl get nodes $node --show-labels | grep -q "$label" || kubectl label nodes $node $label
kubectl get nodes $node --show-labels | grep -q "$all_label" || kubectl label nodes $node $all_label
done done
} }
@ -38,7 +40,7 @@ delete_namespace() {
} }
deploy_microservices() { deploy_microservices() {
mcp-microservices --config-file=/root/mcp.conf deploy -t /root/cluster-topology.yaml &> /var/log/mcp-deploy.log mcp-microservices --config-file=/root/mcp.conf --deploy-config=mcp-deploy-config.yaml deploy &> /var/log/mcp-deploy.log
} }
create_network_conf create_network_conf

2
mcp-deploy-config.yaml Normal file
View file

@ -0,0 +1,2 @@
configs:
neutron_external_interface: eth1