Deploy abusehelper and wiki sources via puppet instead of svn
This commit is contained in:
parent
b7be3a0c09
commit
a97cf92b2b
4 changed files with 165 additions and 51 deletions
|
@ -2,22 +2,25 @@
|
|||
#
|
||||
class abusehelper {
|
||||
|
||||
if !$abusehelper_revision {
|
||||
fail("\$abusehelper_revision must be set.")
|
||||
}
|
||||
|
||||
package { [ "python-pyme", "python-tz" ]:
|
||||
ensure => installed,
|
||||
}
|
||||
|
||||
include svn::client
|
||||
svn::export { "/usr/local/src/abusehelper":
|
||||
source => "http://abusehelper.googlecode.com/svn/trunk",
|
||||
ensure => $abusehelper_revision,
|
||||
file { "/usr/local/src/abusehelper.tar.gz":
|
||||
ensure => present,
|
||||
mode => 0644,
|
||||
owner => root,
|
||||
group => root,
|
||||
source => "puppet:///files/packages/abusehelper.tar.gz",
|
||||
links => follow,
|
||||
}
|
||||
util::extract::tar { "/usr/local/src/abusehelper":
|
||||
strip => 1,
|
||||
source => "/usr/local/src/abusehelper.tar.gz",
|
||||
require => File["/usr/local/src/abusehelper.tar.gz"],
|
||||
}
|
||||
|
||||
python::setup::install { "/usr/local/src/abusehelper":
|
||||
require => Svn::Export["/usr/local/src/abusehelper"],
|
||||
require => Util::Extract::Tar["/usr/local/src/abusehelper"],
|
||||
}
|
||||
|
||||
include user::system
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue