b2573d3d33
Cleanup warnings for missing '$' in class parameter definitions and for non upper cased requirements. Change-Id: I5fe04a304b084f4c6d09cfb23a9dfae2548a8e22 Reviewed-on: https://review.openstack.org/18704 Reviewed-by: James E. Blair <corvus@inaugust.com> Reviewed-by: Paul Belanger <paul.belanger@polybeacon.com> Approved: Jeremy Stanley <fungi@yuggoth.org> Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Tested-by: Jenkins
39 lines
864 B
Puppet
39 lines
864 B
Puppet
# == Define: buildsource
|
|
#
|
|
# define to build from source using ./configure && make && make install.
|
|
#
|
|
define etherpad_lite::buildsource(
|
|
$dir = $title,
|
|
$user = 'root',
|
|
$timeout = 300,
|
|
$creates = '/nonexistant/file'
|
|
) {
|
|
|
|
exec { "./configure in ${dir}":
|
|
command => './configure',
|
|
path => "/usr/bin:/bin:/usr/local/bin:${dir}",
|
|
user => $user,
|
|
cwd => $dir,
|
|
creates => $creates,
|
|
before => Exec["make in ${dir}"],
|
|
}
|
|
|
|
exec { "make in ${dir}":
|
|
command => 'make',
|
|
path => '/usr/bin:/bin',
|
|
user => $user,
|
|
cwd => $dir,
|
|
timeout => $timeout,
|
|
creates => $creates,
|
|
before => Exec["make install in ${dir}"],
|
|
}
|
|
|
|
exec { "make install in ${dir}":
|
|
command => 'make install',
|
|
path => '/usr/bin:/bin',
|
|
user => $user,
|
|
cwd => $dir,
|
|
creates => $creates,
|
|
}
|
|
}
|