summaryrefslogtreecommitdiffstats
path: root/modules/conf
diff options
context:
space:
mode:
Diffstat (limited to 'modules/conf')
-rw-r--r--modules/conf/manifests/deps.pp14
-rw-r--r--modules/conf/manifests/init.pp13
2 files changed, 15 insertions, 12 deletions
diff --git a/modules/conf/manifests/deps.pp b/modules/conf/manifests/deps.pp
new file mode 100644
index 0000000..c07a2d5
--- /dev/null
+++ b/modules/conf/manifests/deps.pp
@@ -0,0 +1,14 @@
+class conf::deps {
+ include cron
+ include git
+
+ package {
+ [
+ "cmake",
+ "fortune-mod",
+ "less",
+ "vim",
+ ]:
+ ensure => installed,
+ }
+}
diff --git a/modules/conf/manifests/init.pp b/modules/conf/manifests/init.pp
index 3d7b716..5a52b5d 100644
--- a/modules/conf/manifests/init.pp
+++ b/modules/conf/manifests/init.pp
@@ -7,18 +7,7 @@ define conf($user=$name, $home=undef) {
default => $home,
}
- include cron
- include git
-
- package {
- [
- "cmake",
- "fortune-mod",
- "less",
- "vim",
- ]:
- ensure => installed,
- }
+ include conf::deps
package::cargo { "fancy-prompt for $user":
package => 'fancy-prompt',