Class screenlock::screenlock
In: /tmp/puppet/modules/screenlock/manifests/init.pp
Parent:

Module: screenlock

Class: screenlock

Description:

      This class installs and sets up screenlock (may require a reboot/logoff
        to become effective)

Defines:

      None

LinuxGuide:

      2.3.5.6.1
        2.3.5.6.2

CCERef#:

      CCE-3315-9
        CCE-3910-7

Resources

Resources

Exec["BlankOnly, 2.3.5.6"]
   command => "/usr/bin/gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type string --set /apps/gnome-screensaver/mode blank-only"
   onlyif => "/usr/bin/test `/usr/bin/gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --get /apps/gnome-screensaver/mode | grep blank-only | wc -l` -eq 0"
   user => root
Exec["IdleActivation, 2.3.5.6"]
   command => "/usr/bin/gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type bool --set /apps/gnome-screensaver/idle_activation_enabled true"
   onlyif => "/usr/bin/test `/usr/bin/gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --get /apps/gnome-screensaver/idle_activation_enabled | grep true | wc -l` -eq 0"
   user => root

GUI screen locking

Exec["IdleDelay, 2.3.5.6"]
   command => "/usr/bin/gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type int --set /apps/gnome-screensaver/idle_delay 15"
   onlyif => "/usr/bin/test `/usr/bin/gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --get /apps/gnome-screensaver/idle_delay | grep 15 | wc -l` -eq 0"
   user => root
Exec["LockEnabled, 2.3.5.6"]
   command => "/usr/bin/gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type bool --set /apps/gnome-screensaver/lock_enabled true"
   onlyif => "/usr/bin/test `/usr/bin/gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --get /apps/gnome-screensaver/lock_enabled | grep true | wc -l` -eq 0"
   user => root
Package["vlock"]
   ensure => latest

install vlock for console only

[Validate]