From 1a824cf106f1996f184a7f699c754a7b72c501be Mon Sep 17 00:00:00 2001 From: Tim Rozet Date: Thu, 21 Sep 2017 19:06:46 +0000 Subject: Adds Calipso scenario Change-Id: Icc8a23e49c9ccc011481f6b97599d4f75873ebb1 Signed-off-by: Tim Rozet --- lib/ansible/playbooks/post_deploy_undercloud.yml | 38 ++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'lib') 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 -- cgit 1.2.3-korg