diff options
author | Jesse Luehrs <doy@tozt.net> | 2018-10-09 01:05:18 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2018-10-09 01:05:18 -0400 |
commit | a20d1726effd87acc9aafe9fa00f46fe336bd708 (patch) | |
tree | f7e3d747fb085ff3e2ec5f16135f6e9fcd4e5fbf /modules/conf | |
parent | c846857086ad31270b2b6ecddc24c957db06f036 (diff) | |
download | puppet-tozt-a20d1726effd87acc9aafe9fa00f46fe336bd708.tar.gz puppet-tozt-a20d1726effd87acc9aafe9fa00f46fe336bd708.zip |
move conf deps to a separate file
so they don't get included multiple times
Diffstat (limited to 'modules/conf')
-rw-r--r-- | modules/conf/manifests/deps.pp | 14 | ||||
-rw-r--r-- | modules/conf/manifests/init.pp | 13 |
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', |