summaryrefslogtreecommitdiff
path: root/manifests/nspawned.pp
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-01-18 17:31:54 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2022-01-18 17:50:43 +0100
commitad61a310bd2c309029043bf500f8eb783c32ec14 (patch)
tree6f296ee9376bdc01050e3c7bb28869fb7359425e /manifests/nspawned.pp
parentRename profiles::client to profiles::puppetagent. (diff)
downloadprofiles-ad61a310bd2c309029043bf500f8eb783c32ec14.tar.gz
profiles-ad61a310bd2c309029043bf500f8eb783c32ec14.tar.xz
Nspawned machine setup.
Diffstat (limited to '')
-rw-r--r--manifests/nspawned.pp20
1 files changed, 20 insertions, 0 deletions
diff --git a/manifests/nspawned.pp b/manifests/nspawned.pp
new file mode 100644
index 0000000..47345e0
--- /dev/null
+++ b/manifests/nspawned.pp
@@ -0,0 +1,20 @@
+# For machines managed through systemd-nspawn
+class profiles::nspawned {
+ case $facts['os']['family'] {
+ 'Debian': {
+ ensure_packages(['dbus', 'systemd-container'])
+ }
+ 'Arch': {
+ # Technicly pulled in through base -> systemd -> dbus, but this
+ # is explicit.
+ ensure_packages(['dbus'])
+ }
+ default: {
+ }
+ }
+
+ service { 'dbus.socket':
+ ensure => running,
+ }
+
+}