Experiments part 23
authorAndreas Schiermeier <andreas@schiermeier.name>
Sun, 13 Dec 2015 03:42:52 +0000 (04:42 +0100)
committerAndreas Schiermeier <andreas@schiermeier.name>
Sun, 13 Dec 2015 03:42:52 +0000 (04:42 +0100)
modules/system/files/etc/systemd/logind.conf [new file with mode: 0644]
modules/system/manifests/init.pp

diff --git a/modules/system/files/etc/systemd/logind.conf b/modules/system/files/etc/systemd/logind.conf
new file mode 100644 (file)
index 0000000..1bb0466
--- /dev/null
@@ -0,0 +1,28 @@
+#  This file is part of systemd.
+#
+#  systemd is free software; you can redistribute it and/or modify it
+#  under the terms of the GNU Lesser General Public License as published by
+#  the Free Software Foundation; either version 2.1 of the License, or
+#  (at your option) any later version.
+#
+# See logind.conf(5) for details
+
+[Login]
+#NAutoVTs=6
+#ReserveVT=6
+KillUserProcesses=yes
+#KillOnlyUsers=
+KillExcludeUsers=root
+#InhibitDelayMaxSec=5
+#HandlePowerKey=poweroff
+#HandleSuspendKey=suspend
+#HandleHibernateKey=hibernate
+#HandleLidSwitch=suspend
+#PowerKeyIgnoreInhibited=no
+#SuspendKeyIgnoreInhibited=no
+#HibernateKeyIgnoreInhibited=no
+#LidSwitchIgnoreInhibited=yes
+#IdleAction=ignore
+#IdleActionSec=30min
+#RuntimeDirectorySize=10%
+#RemoveIPC=yes
index e491668..0e2f8a2 100644 (file)
@@ -38,6 +38,16 @@ class system {
                require => Exec['pam_auth_update'],
        }
 
+       exec { 'systemd-reload':
+               command => '/bin/systemctl daemon-reload',
+               refreshonly => true,
+       }
+
+       file { '/etc/systemd/logind.conf':
+               source => 'puppet:///modules/system/etc/systemd/logind.conf',
+               notify => Exec['systemd-reload'],
+       }
+
        package { 'chrony':
                ensure => installed,
        }