Add module/class `git_cmmi'

refs #6842
This commit is contained in:
Alexander Klimov 2014-09-12 11:42:09 +02:00
parent 4a5accea0b
commit 24c3a30dba

View File

@ -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,
}
}