summaryrefslogtreecommitdiff
path: root/manifests/environment.pp
blob: 67591277fe46aca10c879578cfcd48b96df28f13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Manage global environment variables.
# TODO this should be moved to its own module, and provide propper
# resource types.
class profiles::environment {
  concat { '/etc/environment':
    ensure => 'present',
  }

  $user_environment = lookup('environment', undef, 'hash', {})
  concat::fragment { 'User environment':
    target  => '/etc/environment',
    content => epp('profiles/keyvalue.epp', { values => $user_environment }),
  }

}