icingaweb2/.puppet/modules/git_cmmi/manifests/init.pp

21 lines
431 B
Puppet
Raw Normal View History

2014-09-12 11:42:09 +02:00
define git_cmmi (
$url,
$configure='./configure',
$make='make && make install'
) {
include git
$srcDir = '/usr/local/src'
2014-09-12 11:42:09 +02:00
exec { "git-clone-${name}":
cwd => $srcDir,
2014-09-12 11:42:09 +02:00
path => '/usr/bin:/bin',
unless => "test -d '${srcDir}/${name}/.git'",
2014-09-12 11:42:09 +02:00
command => "git clone '${url}' '${name}'",
require => Class['git'],
} -> cmmi_dir { $name:
configure => $configure,
make => $make,
}
}