From daea1e07d7e77c189a63440a629ec82f53f75977 Mon Sep 17 00:00:00 2001 From: Erinn Looney-Triggs Date: Thu, 25 Feb 2021 07:38:53 -0700 Subject: [PATCH] Support podmans systemd option. --- lib/molecule_podman/driver.py | 1 + lib/molecule_podman/playbooks/create.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/molecule_podman/driver.py b/lib/molecule_podman/driver.py index 7c2b074..bbc9f09 100644 --- a/lib/molecule_podman/driver.py +++ b/lib/molecule_podman/driver.py @@ -94,6 +94,7 @@ class Podman(Driver): cgroup_manager: cgroupfs storage_opt: overlay.mount_program=/usr/bin/fuse-overlayfs storage_driver: overlay + systemd: true|false|always If specifying the `CMD`_ directive in your ``Dockerfile.j2`` or consuming a built image which declares a ``CMD`` directive, then you must set diff --git a/lib/molecule_podman/playbooks/create.yml b/lib/molecule_podman/playbooks/create.yml index 8d5d914..85b9e1f 100644 --- a/lib/molecule_podman/playbooks/create.yml +++ b/lib/molecule_podman/playbooks/create.yml @@ -105,6 +105,7 @@ {% if item.cgroup_manager is defined %}--cgroup-manager={{ item.cgroup_manager }}{% endif %} {% if item.storage_opt is defined %}--storage-opt={{ item.storage_opt }}{% endif %} {% if item.storage_driver is defined %}--storage-driver={{ item.storage_driver }}{% endif %} + {% if item.systemd is defined %}--systemd={{ item.systemd }}{% endif %} {{ item.pre_build_image | default(false) | ternary('', 'molecule_local/') }}{{ item.image }} {{ (command_directives_dict | default({}))[item.name] | default('') }} register: server