summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Buil <mbuil@suse.com>2017-11-29 17:27:28 +0100
committerManuel Buil <mbuil@suse.com>2017-11-29 17:27:28 +0100
commit14f5c1402e4268b5940a5258814cb198dc8f3bda (patch)
treed4ebf5371f95858100d1431387357353b41e57ab
parentb30146d19dbbc9bfb48b37840d33f0d5baf96f83 (diff)
Make sure the docker service is started
We are installing the docker package but not checking if it is started The service name for the three distros is the same but I still added the variable in each distro variables file to keep best practices Change-Id: I0c73069ea7edc366e824cf39d14d24d1416fd6c3 Signed-off-by: Manuel Buil <mbuil@suse.com>
-rw-r--r--xci/playbooks/configure-opnfvhost.yml6
-rw-r--r--xci/var/Debian.yml1
-rw-r--r--xci/var/RedHat.yml1
-rw-r--r--xci/var/Suse.yml1
4 files changed, 9 insertions, 0 deletions
diff --git a/xci/playbooks/configure-opnfvhost.yml b/xci/playbooks/configure-opnfvhost.yml
index fdf21786..58272ce6 100644
--- a/xci/playbooks/configure-opnfvhost.yml
+++ b/xci/playbooks/configure-opnfvhost.yml
@@ -158,6 +158,12 @@
package:
name: "{{ opnfv_required_packages }}"
state: latest
+ # Docker is needed for functest
+ - name: Ensure Docker service is started and enabled
+ service:
+ name: "{{ docker_service_name }}"
+ state: started
+ enabled: yes
- name: install opnfv required pip packages
pip:
name: "{{ opnfv_required_pip }}"
diff --git a/xci/var/Debian.yml b/xci/var/Debian.yml
index 16bb879b..bd07473a 100644
--- a/xci/var/Debian.yml
+++ b/xci/var/Debian.yml
@@ -11,3 +11,4 @@
interface: "ens3"
python_crypto_package_name: python-crypto
docker_package_name: docker.io
+docker_service_name: docker
diff --git a/xci/var/RedHat.yml b/xci/var/RedHat.yml
index bcd6d044..8ea2e15a 100644
--- a/xci/var/RedHat.yml
+++ b/xci/var/RedHat.yml
@@ -10,3 +10,4 @@
# this is placeholder and left blank intentionally to complete later on
python_crypto_package_name: python-crypto
docker_package_name: docker
+docker_service_name: docker
diff --git a/xci/var/Suse.yml b/xci/var/Suse.yml
index 6b4c76ec..a041e18b 100644
--- a/xci/var/Suse.yml
+++ b/xci/var/Suse.yml
@@ -11,3 +11,4 @@
interface: "eth0"
python_crypto_package_name: python-pycrypto
docker_package_name: docker
+docker_service_name: docker