blob: acaba6dad189a4d1333865dc6b419fb8023dcfa6 (
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
|
# Setup "infrastructure" for global environment variables.
#
# @api private
class envvar::setup {
concat { '/etc/environment':
ensure => 'present',
order => 'numeric',
}
concat::fragment { '/etc/environment -- header':
target => '/etc/environment',
order => 0,
content => @(EOF)
# File managed by Puppet
# Local changes will get overwritten.
| EOF
}
lookup('environment', undef, 'hash', {}).map |$key, $value| {
envvar { $key:
value => $value,
}
}
}
|