diff options
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp new file mode 100644 index 0000000..b370940 --- /dev/null +++ b/manifests/init.pp @@ -0,0 +1,50 @@ +# @summary Configures LightDM +# @param package_name +# Package containing lightdm +# @param service_name +# Name of service to enable +# @param use_account_service +# Should account service be used in place of users.conf +# TODO This is currently not implemented. +class lightdm ( + String $package_name = 'lightdm', + String $service_name = 'lightdm', + Boolean $use_account_service = false, +) { + ensure_packages([$package_name]) + + service { $service_name: + enable => true, + } + + file { '/etc/lightdm/lightdm.conf': + } + + if $use_account_service { + } else { + $users = { + 'UserList' => { + 'minimum-uid' => 1000, # Minimum UID required to be show in greeter + # NOTE These lists should be space delimited inline + # TODO remove above comment:w + 'hidden-users' => ['nobody', 'nobody4', 'noaccess'], # Users that are shown to the user + 'hidden-shells' => ['/bin/false', '/usr/bin/nologin', '/bin/nologin', '/sbin/nologin'], + }, + } + file { '/etc/lightdm/users.conf': + } + } + + $keys = { + 'keyring' => { + 'a' => '0x0123456789ABCD', + 'b' => 'secret', + }, + } + file { '/etc/lightdm/keys.conf': + } + + # file { '/etc/lightdm/Xsession': + # mode => '+x', + # } +} |