Added support for specifying source packages for abusehelper, vsroom and wiki
This commit is contained in:
parent
2b547723e6
commit
4bc3dcedf6
6 changed files with 52 additions and 6 deletions
|
@ -2,6 +2,16 @@
|
|||
#
|
||||
class wiki::moin {
|
||||
|
||||
if !$moin_package {
|
||||
if $moin_package_latest {
|
||||
$moin_package = $moin_package_latest
|
||||
} else {
|
||||
fail("Must define \$moin_package or \$moin_package_latest")
|
||||
}
|
||||
}
|
||||
|
||||
$moin_patch = regsubst($moin_package, '\.tar\.gz', '.patch')
|
||||
|
||||
file { "/usr/local/src/moin.tar.gz":
|
||||
ensure => present,
|
||||
mode => 0644,
|
||||
|
@ -19,6 +29,7 @@ class wiki::moin {
|
|||
links => follow,
|
||||
}
|
||||
util::extract::tar { "/usr/local/src/moin":
|
||||
ensure => latest,
|
||||
strip => 1,
|
||||
source => "/usr/local/src/moin.tar.gz",
|
||||
require => File["/usr/local/src/moin.tar.gz"],
|
||||
|
@ -38,6 +49,14 @@ class wiki::moin {
|
|||
#
|
||||
class wiki::graphingwiki::common {
|
||||
|
||||
if !$graphingwiki_package {
|
||||
if $graphingwiki_package_latest {
|
||||
$graphingwiki_package = $graphingwiki_package_latest
|
||||
} else {
|
||||
fail("Must define \$graphingwiki_package or \$graphingwiki_package_latest")
|
||||
}
|
||||
}
|
||||
|
||||
file { "/usr/local/src/graphingwiki.tar.gz":
|
||||
ensure => directory,
|
||||
mode => 0644,
|
||||
|
@ -47,6 +66,7 @@ class wiki::graphingwiki::common {
|
|||
links => follow,
|
||||
}
|
||||
util::extract::tar { "/usr/local/src/graphingwiki":
|
||||
ensure => latest,
|
||||
strip => 1,
|
||||
source => "/usr/local/src/graphingwiki.tar.gz",
|
||||
require => File["/usr/local/src/graphingwiki.tar.gz"],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue