Update node labels according to new CCP nodeSelector

This commit is contained in:
Aleksandr Didenko 2016-06-28 14:06:53 +02:00
parent d7f9d4a590
commit 96add56527
2 changed files with 12 additions and 6 deletions

View file

@ -7,12 +7,12 @@ create_network_conf() {
} }
assign_node_roles() { assign_node_roles() {
kubectl label nodes node2 openstack-role=controller kubectl label nodes node2 openstack-controller=true
kubectl label nodes node3 openstack-role=controller kubectl label nodes node3 openstack-controller=true
kubectl label nodes node4 openstack-role=compute kubectl label nodes node4 openstack-controller=true
kubectl label nodes node5 openstack-role=compute kubectl label nodes node5 openstack-compute=true
kubectl label nodes node6 openstack-role=compute kubectl label nodes node6 openstack-compute=true
kubectl label nodes node7 openstack-role=compute kubectl label nodes node7 openstack-compute=true
} }
create_network_conf create_network_conf

View file

@ -2,6 +2,12 @@
pre_tasks: pre_tasks:
- name: Rsync nodes list - name: Rsync nodes list
synchronize: src=/root/nodes dest=/root/nodes synchronize: src=/root/nodes dest=/root/nodes
- name: Rsync MCP scripts and repo
synchronize:
src: /root/ccp/
dest: /root/ccp/
rsync_opts:
- "--exclude=/microservices-repos"
tasks: tasks:
- name: Deploy CCP - name: Deploy CCP
shell: ./ccp-deploy.sh shell: ./ccp-deploy.sh