From 24c3a30dba59094f19580565d2a89ce22fdb9231 Mon Sep 17 00:00:00 2001 From: Alexander Klimov Date: Fri, 12 Sep 2014 11:42:09 +0200 Subject: [PATCH] Add module/class `git_cmmi' refs #6842 --- .../modules/git_cmmi/manifests/init.pp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .vagrant-puppet/modules/git_cmmi/manifests/init.pp diff --git a/.vagrant-puppet/modules/git_cmmi/manifests/init.pp b/.vagrant-puppet/modules/git_cmmi/manifests/init.pp new file mode 100644 index 000000000..b98894f11 --- /dev/null +++ b/.vagrant-puppet/modules/git_cmmi/manifests/init.pp @@ -0,0 +1,17 @@ +define git_cmmi ( + $url, + $configure='./configure', + $make='make && make install' +) { + include git + + exec { "git-clone-${name}": + cwd => '/usr/local/src', + path => '/usr/bin:/bin', + command => "git clone '${url}' '${name}'", + require => Class['git'], + } -> cmmi_dir { $name: + configure => $configure, + make => $make, + } +}