diff options
Diffstat (limited to 'lib/ansible/playbooks/post_deploy_undercloud.yml')
-rw-r--r-- | lib/ansible/playbooks/post_deploy_undercloud.yml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/lib/ansible/playbooks/post_deploy_undercloud.yml b/lib/ansible/playbooks/post_deploy_undercloud.yml index d6b8805a..bd62f9cf 100644 --- a/lib/ansible/playbooks/post_deploy_undercloud.yml +++ b/lib/ansible/playbooks/post_deploy_undercloud.yml @@ -115,3 +115,41 @@ become_user: stack when: congress with_items: "{{ congress_datasources }}" + - name: Configure Calipso + block: + - name: Install Calipso dependencies + pip: + name: "{{ item }}" + executable: pip3 + with_items: + - docker + - pymongo + - name: Create Calipso user + user: + name: calipso + createhome: yes + - name: Remove old docker + package: + name: "{{ item }}" + state: absent + with_items: + - docker + - docker-common + - docker-selinux + - docker-engine + - name: Install Docker CE + package: + name: docker-ce + state: latest + - name: Start Docker + service: + name: docker + state: started + enabled: yes + - name: Install Calipso + command: > + python3 /root/calipso-installer.py --command start-all + --copy q --hostname {{ calipso_ip }} --dbport 37017 --webport 81 + --apiport 8001 --rabbitmport 15673 + become: yes + when: calipso |