summaryrefslogtreecommitdiff
path: root/manifests
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
parentRename profiles::client to profiles::puppetagent. (diff)
downloadprofiles-ad61a310bd2c309029043bf500f8eb783c32ec14.tar.gz
profiles-ad61a310bd2c309029043bf500f8eb783c32ec14.tar.xz
Nspawned machine setup.
Diffstat (limited to 'manifests')
-rw-r--r--manifests/common.pp4
-rw-r--r--manifests/nspawned.pp20
2 files changed, 24 insertions, 0 deletions
diff --git a/manifests/common.pp b/manifests/common.pp
index 27416bd..b7adb76 100644
--- a/manifests/common.pp
+++ b/manifests/common.pp
@@ -49,4 +49,8 @@ class profiles::common (
source => 'puppet:///modules/profiles/terminal-name.sh',
}
+ if $facts['virtual'] == 'systemd_nspawn' {
+ include ::profiles::nspawned
+ }
+
}
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,
+ }
+
+}