diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-10-02 18:46:12 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-10-02 18:46:12 +0200 |
commit | 0f3839734465de39c27ac0abcb91e9bdeef5e93d (patch) | |
tree | 443a64921db3add5e5c9ecb95450b793cf4c6ad6 /manifests/environment.pp | |
parent | Split workstation into X and non-X part. (diff) | |
download | profiles-0f3839734465de39c27ac0abcb91e9bdeef5e93d.tar.gz profiles-0f3839734465de39c27ac0abcb91e9bdeef5e93d.tar.xz |
Move cowsay and envirnoment setup to own profiles.
Diffstat (limited to 'manifests/environment.pp')
-rw-r--r-- | manifests/environment.pp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/manifests/environment.pp b/manifests/environment.pp new file mode 100644 index 0000000..6759127 --- /dev/null +++ b/manifests/environment.pp @@ -0,0 +1,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 }), + } + +} |