Refactor CCP deployment part

This commit is contained in:
Aleksandr Didenko 2016-07-12 17:20:58 +02:00
parent 569d0081d3
commit d450e1f06f
5 changed files with 12 additions and 4 deletions

View file

@ -78,7 +78,10 @@ cd ~/mcp
```bash ```bash
cd ~/mcp cd ~/mcp
./deploy-ccp.sh # Build CCP images
ansible-playbook -i nodes_to_inv.py playbooks/ccp-build.yaml
# Deploy CCP
ansible-playbook -i nodes_to_inv.py playbooks/ccp-deploy.yaml
``` ```
Working with kubernetes Working with kubernetes

View file

@ -18,3 +18,8 @@ iptables -I FORWARD -d 10.210.0.12 -j ACCEPT
``` ```
Where `10.210.0.12` is IP of one of your k8s minions and `32643` is nodePort of Horizon service. Where `10.210.0.12` is IP of one of your k8s minions and `32643` is nodePort of Horizon service.
* You can do the same for novnc:
```bash
echo $(kubectl --namespace=openstack get svc/nova-novncproxy -o go-template='{{(index .spec.ports 0).nodePort}}')
```

View file

@ -45,11 +45,11 @@
when: get_svc.stdout.find('registry') == -1 when: get_svc.stdout.find('registry') == -1
- name: Fetch CCP images - name: Fetch CCP images
shell: mcp-microservices --config-file=/root/ccp/ccp.conf fetch shell: "mcp-microservices --config-file=/root/ccp/ccp.conf fetch &> /var/log/ccp-fetch.log"
run_once: true run_once: true
- name: Build CCP images - name: Build CCP images
shell: mcp-microservices --config-file=/root/ccp/ccp.conf build shell: "mcp-microservices --config-file=/root/ccp/ccp.conf build &> /var/log/ccp-build.log"
run_once: true run_once: true
- hosts: k8s-cluster - hosts: k8s-cluster

View file

@ -20,7 +20,7 @@
run_once: true run_once: true
- name: Deploy CCP - name: Deploy CCP
shell: mcp-microservices --config-file=/root/ccp/ccp.conf deploy shell: "mcp-microservices --config-file=/root/ccp/ccp.conf deploy &> /var/log/ccp-deploy.log"
args: args:
chdir: /root/ccp chdir: /root/ccp
run_once: true run_once: true