blob: 158468020e25f9b0a46a7fe58769b982728f3215 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# Setup "infrastructure" for global environment variables.
#
# @api private
class envvar::setup {
concat { '/etc/environment':
ensure => 'present',
order => 'numeric',
}
$header = @(EOF)
# File managed by Puppet
# Local changes will get overwritten.
| EOF
concat::fragment { '/etc/environment -- header':
target => '/etc/environment',
order => 0,
content => $header,
}
lookup('environment', undef, 'hash', {}).map |$key, $value| {
envvar { $key:
value => $value,
}
}
}
|