Skip to content

nvalentine-puppetlabs/puppet-systemenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

puppet-systemenv

Manage system environment variables. Currently that involves managing entries in /etc/environment.

Contact

Nathan Valentine - [email protected] | [email protected]

Usage

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)

API

define systemenv::var (
  $ensure = 'present',
  $varname = $name,
  $value = undef,
) {

ToDo

  • add support for .d directories?

About

Puppet module for managing system environment variables

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages