diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-06-23 18:42:47 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-06-23 18:42:47 +0200 |
commit | b621bda52ba4df42c03b1342bef985b52f377136 (patch) | |
tree | 86c32981b59b2a6d6cdd3d26f2011b8ea0a6a950 /manifests | |
parent | Config base. (diff) | |
download | nspawn-b621bda52ba4df42c03b1342bef985b52f377136.tar.gz nspawn-b621bda52ba4df42c03b1342bef985b52f377136.tar.xz |
Config base.
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 6 | ||||
-rw-r--r-- | manifests/machine.pp | 2 |
2 files changed, 2 insertions, 6 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index fee1e9a..0bb06fe 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -14,11 +14,7 @@ # @param purge # Should old .nspawn files be purged. class nspawn ( - Nspawn::Systemd::Nspawn $config = { - 'Exec' => {}, - 'Files' => {}, - 'Network' => {}, - }, + Nspawn::Systemd::Nspawn $config = {}, Stdlib::Absolutepath $template_dir = '/var/lib/templates', Hash[String, Hash[String, Any]] $machines = {}, Boolean $purge = true, diff --git a/manifests/machine.pp b/manifests/machine.pp index 25ee47c..17cd3a9 100644 --- a/manifests/machine.pp +++ b/manifests/machine.pp @@ -32,7 +32,7 @@ define nspawn::machine ( Variant[String, Enum['none']] $template, String $domain = $trusted['domain'], - Nspawn::Systemd::Nspawn $config, + Nspawn::Systemd::Nspawn $config = {}, Enum['deep', 'shallow', 'override'] $merge = 'deep', Enum['present', 'absent'] $ensure = 'present', ) { |