c12s-kubespray/playbooks/ccp-deploy.yaml

28 lines
592 B
YAML
Raw Normal View History

2016-06-27 15:57:29 +00:00
- hosts: kube-master
2016-07-08 12:32:43 +00:00
2016-06-27 15:57:29 +00:00
pre_tasks:
2016-07-08 12:32:43 +00:00
- name: Rsync CCP configs
synchronize:
2016-06-30 14:50:29 +00:00
src: ../ccp/
dest: /root/ccp/
2016-07-08 12:32:43 +00:00
2016-06-27 15:57:29 +00:00
tasks:
2016-07-08 13:04:31 +00:00
- name: Label nodes
shell: ./label-nodes.sh
args:
chdir: /root/ccp
run_once: true
2016-07-08 12:32:43 +00:00
- name: Get namespaces
shell: kubectl get namespace
register: get_ns
run_once: true
2016-07-08 12:32:43 +00:00
2016-06-27 15:57:29 +00:00
- name: Deploy CCP
2016-07-12 15:20:58 +00:00
shell: "mcp-microservices --config-file=/root/ccp/ccp.conf deploy &> /var/log/ccp-deploy.log"
2016-06-27 15:57:29 +00:00
args:
chdir: /root/ccp
run_once: true
when: get_ns.stdout.find('openstack') == -1