diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-26 11:31:15 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-26 11:31:15 -0300 |
commit | 584ffb92d1694b3b678f5afbfb3a4f57a3c84d1b (patch) | |
tree | aadf60337342d2a64f80ca96727a44a30a28823f /manifests | |
parent | c63b93d373bdd53cc6c70951eed3c29b56ba8c81 (diff) | |
download | puppet-nodo-584ffb92d1694b3b678f5afbfb3a4f57a3c84d1b.tar.gz puppet-nodo-584ffb92d1694b3b678f5afbfb3a4f57a3c84d1b.tar.bz2 |
Allow regular users to power off the machine on nodo::base::desktop
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/base/desktop.pp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/manifests/base/desktop.pp b/manifests/base/desktop.pp index bf9d2fe..7dd969c 100644 --- a/manifests/base/desktop.pp +++ b/manifests/base/desktop.pp @@ -4,4 +4,13 @@ class nodo::base::desktop inherits nodo::base::personal { class { [ 'nodo::subsystem::fstab', 'nodo::subsystem::crypttab' ]: type => 'desktop', } + + # Allow regular users to power off the machine (overrides policy kit default configuration) + file { '/usr/share/polkit-1/actions/org.freedesktop.consolekit.policy': + ensure => present, + owner => root, + group => root, + mode => 0644, + source => 'puppet:///modules/nodo/polkit/org.freedesktop.consolekit.policy', + } } |