Skip to content

Instantly share code, notes, and snippets.

@beezly
Created January 13, 2016 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beezly/bac54ee6a9c367a1bb34 to your computer and use it in GitHub Desktop.
Save beezly/bac54ee6a9c367a1bb34 to your computer and use it in GitHub Desktop.
Puppet augeas to disable screensaver by default in RH6
$enabled = false
augeas{'disable_default_screensaver_lock':
lens => 'Xml.lns',
incl => '/etc/gconf/gconf.xml.defaults/%gconf-tree.xml',
context => '/files/etc/gconf/gconf.xml.defaults/%gconf-tree.xml/gconf/dir[#attribute[name="schemas"]]/dir[#attribute[name="apps"]]/dir[#attribute[name="gnome-screensaver"]]/dir[#attribute[name="lock_enabled"]]/local_schema/default',
changes => "set #attribute/value ${enabled}",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment