From d4fa8001d0a5271de93456e44db38614bc2b1de9 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sun, 27 Nov 2016 16:14:45 +0200 Subject: [PATCH] - Workaround for Systemd based Docker images. --- molecule.yml | 11 +++++++++-- tests/playbook.yml | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/molecule.yml b/molecule.yml index b65f9db..3b66af5 100644 --- a/molecule.yml +++ b/molecule.yml @@ -16,7 +16,7 @@ vagrant: platforms: - name: openbsd box: kaorimatz/openbsd-6.0-amd64 - - name: ubuntu + - name: xenial box: ubuntu/xenial64 instances: - name: example @@ -30,8 +30,15 @@ vagrant: docker: containers: - - name: example-ubuntu + - name: example-xenial image: ubuntu image_version: xenial + command: /sbin/init + cap_add: + - SYS_ADMIN + volume_mounts: + - /sys/fs/cgroup:/sys/fs/cgroup + - /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket environment: DEBIAN_FRONTEND: noninteractive + container: docker diff --git a/tests/playbook.yml b/tests/playbook.yml index 96e7061..740afed 100644 --- a/tests/playbook.yml +++ b/tests/playbook.yml @@ -3,7 +3,7 @@ gather_facts: false roles: [adarnimrod.openbsd-bootstrap] -- hosts: example-ubuntu +- hosts: example-xenial gather_facts: false roles: [adarnimrod.debian-bootstrap] -- GitLab