Manage system environment variables. Currently that involves managing entries in /etc/environment.
Nathan Valentine - [email protected] | [email protected]
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?