Install docker and shade on opnfv host 55/42755/2
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>
Fri, 22 Sep 2017 11:09:21 +0000 (13:09 +0200)
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>
Fri, 22 Sep 2017 12:19:01 +0000 (14:19 +0200)
Docker is needed for running tests against the deployment.
Shade is needed for managing OpenStack via Ansible.

This change adds tasks to install docker and shade on opnfv
host if it is run as part of CI.

Users should be free to install these if they want so it is
not installed for them by default.

Change-Id: Idfd0f02312cc5e1b0180ed2408755a8c730b987b
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
xci/playbooks/configure-opnfvhost.yml
xci/var/Debian.yml
xci/var/RedHat.yml
xci/var/Suse.yml

index da47825..d96aef7 100644 (file)
         content: "{{ xci_ssl_key }}"
         dest: "/etc/ssl/private/xci.key"
       become: true
+    # install docker on opnfv host only if we are running as part of CI
+    - name: install docker
+      package:
+        name: "{{ docker_package_name }}"
+        state: latest
+      when: lookup('env', 'JENKINS_HOME') != ""
+    # install shade on opnfv host only if we are running as part of CI
+    - name: install shade
+      pip:
+        name: shade
+        state: present
+      when: lookup('env', 'JENKINS_HOME') != ""
 
 - hosts: localhost
   remote_user: root
index 33f1105..16bb879 100644 (file)
@@ -10,3 +10,4 @@
 # this is the interface the VM nodes are connected to libvirt network "default"
 interface: "ens3"
 python_crypto_package_name: python-crypto
+docker_package_name: docker.io
index eae7d12..bcd6d04 100644 (file)
@@ -9,3 +9,4 @@
 ##############################################################################
 # this is placeholder and left blank intentionally to complete later on
 python_crypto_package_name: python-crypto
+docker_package_name: docker
index 786a875..6b4c76e 100644 (file)
@@ -10,3 +10,4 @@
 # this is the interface the VM nodes are connected to libvirt network "default"
 interface: "eth0"
 python_crypto_package_name: python-pycrypto
+docker_package_name: docker