Edit dconf configuration with puppet
Ruby Puppet
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/puppet/parser/functions
manifests
tests
.gitignore
LICENSE
README.md

README.md

puppet-dconf

Edit dconf configuration with puppet

Usage

Because of current limitations, a certain level of quoting/escaping needs to be done on the 'value' parameter. The easiest is to give some examples.

Example with a bool (no quoting/escaping needed) ::

dconf::set { "/com/canonical/indicator/datetime/show-date":
        value => "true",
        user => "myuser",
        group => "mygroup",
}

Example with a string (add quotes) ::

dconf::set { "/org/gnome/settings-daemon/peripherals/touchpad/scroll-method":
        value => "'two-finger-scrolling'",
}

Example with a list (escape backslashes) ::

dconf::set { "/org/gnome/libgnomekbd/keyboard/options":
    value => "['ctrl\\tctrl:nocaps']",
}

Notes

  • Apart from the quoting/escaping, make sure that the 'key' begins with a slash and does not end with slash.

  • An easy way to dump your dconf configuration ::

      $ dconf dump /