summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/cowsay.pp6
-rw-r--r--manifests/environment.pp15
2 files changed, 2 insertions, 19 deletions
diff --git a/manifests/cowsay.pp b/manifests/cowsay.pp
index 5f995c5..cce6055 100644
--- a/manifests/cowsay.pp
+++ b/manifests/cowsay.pp
@@ -6,9 +6,7 @@ class profiles::cowsay (
) {
ensure_packages(['cowsay'])
- # TODO see profiles::environment
- concat::fragment { 'Cowsay paths':
- target => '/etc/environment',
- content => epp('profiles/keyvalue.epp', { values => { 'COWPATH' => $cowpath.join(':') }}),
+ envvar { 'COWPATH':
+ value => $cowpath.join(':'),
}
}
diff --git a/manifests/environment.pp b/manifests/environment.pp
deleted file mode 100644
index 6759127..0000000
--- a/manifests/environment.pp
+++ /dev/null
@@ -1,15 +0,0 @@
-# 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 }),
- }
-
-}