mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-21 05:00:13 -03:30
Added CCP deployment scripts
This commit is contained in:
24
playbooks/ccp-build.yaml
Normal file
24
playbooks/ccp-build.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
- hosts: kube-master
|
||||
pre_tasks:
|
||||
- name: Rsync CCP repos
|
||||
synchronize: src=/root/ccp/microservices-repos/ dest=/root/microservices-repos/
|
||||
- name: Rsync MCP scripts and repo
|
||||
synchronize:
|
||||
src: /root/ccp/
|
||||
dest: /root/ccp/
|
||||
rsync_opts:
|
||||
- "--exclude=/microservices-repos"
|
||||
tasks:
|
||||
- name: Install MCP
|
||||
shell: "{{ item }}"
|
||||
args:
|
||||
chdir: /root/ccp/microservices/
|
||||
creates: /usr/local/bin/mcp-microservices
|
||||
with_items:
|
||||
- pip install .
|
||||
- python setup.py develop
|
||||
- name: Build CCP images
|
||||
shell: ./ccp-build.sh
|
||||
args:
|
||||
chdir: /root/ccp
|
||||
run_once: true
|
||||
10
playbooks/ccp-deploy.yaml
Normal file
10
playbooks/ccp-deploy.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
- hosts: kube-master
|
||||
pre_tasks:
|
||||
- name: Rsync nodes list
|
||||
synchronize: src=/root/nodes dest=/root/nodes
|
||||
tasks:
|
||||
- name: Deploy CCP
|
||||
shell: ./ccp-deploy.sh
|
||||
args:
|
||||
chdir: /root/ccp
|
||||
run_once: true
|
||||
Reference in New Issue
Block a user