diff options
author | 2017-09-22 13:09:21 +0200 | |
---|---|---|
committer | 2017-09-22 14:19:01 +0200 | |
commit | 5f5d367247c1b7fd464b92e0748da7f108eb6f7f (patch) | |
tree | 539a9336ac274a3b9ea114d5ec16882e2ea48e00 /xci/playbooks | |
parent | 9b0b4e1979633c4320dc0dea0707910c36cb056d (diff) |
Install docker and shade on opnfv host
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>
Diffstat (limited to 'xci/playbooks')
-rw-r--r-- | xci/playbooks/configure-opnfvhost.yml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/xci/playbooks/configure-opnfvhost.yml b/xci/playbooks/configure-opnfvhost.yml index da478255..d96aef79 100644 --- a/xci/playbooks/configure-opnfvhost.yml +++ b/xci/playbooks/configure-opnfvhost.yml @@ -126,6 +126,18 @@ 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 |