Defined Type: env::var
- Defined in:
- puppet/modules/env/manifests/var.pp
Overview
Define: env::var
Defines an environment variable for all shells.
Parameters
- value
-
Value to assign to variable.
- ensure
-
If 'present' (the default), sets the variable to the specified value. If 'absent', removes any Puppet-managed assignments for this variable.
Examples
env::var { 'MW_INSTALL_PATH':
value => '/vagrant/mediawiki',
}
20 21 22 23 24 25 26 27 28 |
# File 'puppet/modules/env/manifests/var.pp', line 20
define env::var(
$value,
$ensure = present,
) {
file { "/etc/profile.d/set_${title}.sh":
ensure => $ensure,
content => template('env/set_var.erb'),
}
}
|