From f8095142e70a899982e9b2ee1b8b3495e86555d6 Mon Sep 17 00:00:00 2001 From: vincent Date: Sun, 13 Nov 2022 14:55:51 +0100 Subject: [PATCH] add podman plugins config --- defaults/main.yml | 1 + templates/config.hcl.j2 | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index 29d21df..ca596cb 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -22,3 +22,4 @@ nomad_host_networks: # interface: # reserved_ports: nomad_allow_privileged: False +nomad_plugins_podman: False diff --git a/templates/config.hcl.j2 b/templates/config.hcl.j2 index 766bad9..a95c0d9 100644 --- a/templates/config.hcl.j2 +++ b/templates/config.hcl.j2 @@ -44,6 +44,15 @@ plugin "docker"{ allow_privileged = {{ nomad_allow_privileged|lower }} } } +{% if 'nomad_plugins_podman' %} +plugin "nomad-driver-podman" { + config { + volumes { + enabled = true + } + } +} +{% endif %} consul { address = "127.0.0.1:8500"