Manage system environment variables. Currently that involves managing entries in /etc/environment.
Nathan Valentine - nathan@puppetlabs.com | nrvale0@gmail.com
include systemenv
$environment_variables = {
'foo' => { ensure => present, value => '\'bar\'', },
'bar' => { ensure => present, value => '\'baz\'', },
'baz' => { ensure => absent, value => '\'qqq\'', },
}
create_resources(systemenv::var, $environment_variables)
define systemenv::var (
$ensure = 'present',
$varname = $name,
$value = undef,
) {
- add support for .d directories?