Add module/class `cmmi_dir'

refs #6842
This commit is contained in:
Alexander Klimov 2014-09-12 11:42:09 +02:00
parent fa8584059a
commit 4a5accea0b
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
define cmmi_dir (
$configure='./configure',
$make='make && make install'
) {
Exec {
path => '/usr/bin:/bin',
cwd => "/usr/local/src/${name}",
}
exec { "configure-${name}":
command => $configure,
} -> exec { "make-${name}":
command => $make,
}
}