abusesa: Install abusesa packages using pip
This commit is contained in:
parent
bed546b956
commit
ab5576bfdc
5 changed files with 32 additions and 86 deletions
|
@ -57,35 +57,11 @@ class abusesa::passivedns(
|
|||
content => "umask 007\n",
|
||||
}
|
||||
|
||||
file { '/usr/local/src/abusesa-passivedns.tar.gz':
|
||||
ensure => present,
|
||||
mode => '0644',
|
||||
owner => 'root',
|
||||
group => $::operatingsystem ? {
|
||||
'openbsd' => 'wheel',
|
||||
default => 'root',
|
||||
},
|
||||
python::pip::install { 'abusesa-passivedns.tar.gz':
|
||||
source => "puppet:///files/packages/${abusesa_passivedns_package}",
|
||||
}
|
||||
util::extract::tar { '/usr/local/src/abusesa-passivedns':
|
||||
ensure => latest,
|
||||
strip => '1',
|
||||
source => '/usr/local/src/abusesa-passivedns.tar.gz',
|
||||
require => File['/usr/local/src/abusesa-passivedns.tar.gz'],
|
||||
before => Python::Setup::Install['/usr/local/src/abusesa-passivedns'],
|
||||
}
|
||||
|
||||
if $::operatingsystem in ['CentOS','RedHat'] and versioncmp($::operatingsystemrelease, '6') < 0 {
|
||||
include python::python26
|
||||
python::setup::install { '/usr/local/src/abusesa-passivedns':
|
||||
python => 'python2.6',
|
||||
require => Package['python26'],
|
||||
}
|
||||
} else {
|
||||
python::setup::install { '/usr/local/src/abusesa-passivedns': }
|
||||
}
|
||||
|
||||
Python::Setup::Install['/usr/local/src/abusesa'] ->
|
||||
Python::Setup::Install['/usr/local/src/abusesa-passivedns']
|
||||
Python::Pip::Install['abusesa.tar.gz'] ->
|
||||
Python::Pip::Install['abusesa-passivedns.tar.gz']
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue