summaryrefslogtreecommitdiff
path: root/manifests/machine.pp
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-06-26 17:29:21 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-06-26 17:29:21 +0200
commita7e54399776977f9724e48c0b787795660704a60 (patch)
tree010095b46285edaff7ebf33651b9d2ee811c6dbf /manifests/machine.pp
parentfix (diff)
downloadnspawn-a7e54399776977f9724e48c0b787795660704a60.tar.gz
nspawn-a7e54399776977f9724e48c0b787795660704a60.tar.xz
Replace template based nspawn file with puppet based.
Diffstat (limited to 'manifests/machine.pp')
-rw-r--r--manifests/machine.pp6
1 files changed, 2 insertions, 4 deletions
diff --git a/manifests/machine.pp b/manifests/machine.pp
index d65ae00..d8a2d5f 100644
--- a/manifests/machine.pp
+++ b/manifests/machine.pp
@@ -48,11 +48,9 @@ define nspawn::machine (
message => $final_config,
}
- file { "${nspawn::nspawn_dir}/${name}.nspawn":
+ nspawn::machine::nspawn { $name:
ensure => $ensure,
- content => epp("${module_name}/systemd/nspawn.epp", {
- 'data' => $final_config
- }),
+ content => $final_config,
}
if $ensure == 'present' {