From 0f3839734465de39c27ac0abcb91e9bdeef5e93d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Sun, 2 Oct 2022 18:46:12 +0200 Subject: Move cowsay and envirnoment setup to own profiles. --- manifests/workstation.pp | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'manifests/workstation.pp') diff --git a/manifests/workstation.pp b/manifests/workstation.pp index a121042..a60973f 100644 --- a/manifests/workstation.pp +++ b/manifests/workstation.pp @@ -44,23 +44,7 @@ class profiles::workstation ( }}), } - $cowpath = [ - '/usr/share/cows', - '/usr/local/share/cows', - ] - - # Merge everything from hiera, but provide defeaults for - # non-overwritten values. - $default_environment = { - 'COWPATH' => $cowpath.join(':'), - } - $user_environment = lookup('environment', undef, 'hash', {}) - $environment = $default_environment + $user_environment - - file { '/etc/environment': - content => epp('profiles/keyvalue.epp', { values => $environment }), - } - + include ::profiles::cowsay include ::profiles::sudo include ::profiles::mounts } -- cgit v1.2.3