Add systemd module, required by rabbitmq
[mirror/dsa-puppet.git] / 3rdparty / modules / systemd / manifests / system.pp
diff --git a/3rdparty/modules/systemd/manifests/system.pp b/3rdparty/modules/systemd/manifests/system.pp
new file mode 100644 (file)
index 0000000..82b4a9e
--- /dev/null
@@ -0,0 +1,19 @@
+# **NOTE: THIS IS A [PRIVATE](https://github.com/puppetlabs/puppetlabs-stdlib#assert_private) CLASS**
+#
+# This class provides a solution to enable accounting
+#
+class systemd::system {
+
+  assert_private()
+
+  $systemd::accounting.each |$option, $value| {
+    ini_setting{$option:
+      ensure  => 'present',
+      path    => '/etc/systemd/system.conf',
+      section => 'Manager',
+      setting => $option,
+      value   => $value,
+      notify  => Class['systemd::systemctl::daemon_reload'],
+    }
+  }
+}