python: Lint fixes
This commit is contained in:
parent
1a8da38cf3
commit
4b498aa860
1 changed files with 7 additions and 3 deletions
|
@ -67,7 +67,10 @@ class python::m2crypto {
|
||||||
# source => "puppet:///files/packages/moin-1.8.8.tar.gz",
|
# source => "puppet:///files/packages/moin-1.8.8.tar.gz",
|
||||||
# }
|
# }
|
||||||
#
|
#
|
||||||
define python::setup::install($python="python", $source="") {
|
define python::setup::install(
|
||||||
|
$python="python",
|
||||||
|
$source=undef,
|
||||||
|
) {
|
||||||
|
|
||||||
if $source {
|
if $source {
|
||||||
$filename = basename($source)
|
$filename = basename($source)
|
||||||
|
@ -75,7 +78,7 @@ define python::setup::install($python="python", $source="") {
|
||||||
ensure => present,
|
ensure => present,
|
||||||
mode => "0644",
|
mode => "0644",
|
||||||
owner => "root",
|
owner => "root",
|
||||||
group => $operatingsystem ? {
|
group => $::operatingsystem ? {
|
||||||
"openbsd" => "wheel",
|
"openbsd" => "wheel",
|
||||||
default => "root",
|
default => "root",
|
||||||
},
|
},
|
||||||
|
@ -83,7 +86,7 @@ define python::setup::install($python="python", $source="") {
|
||||||
}
|
}
|
||||||
util::extract::tar { $name:
|
util::extract::tar { $name:
|
||||||
ensure => latest,
|
ensure => latest,
|
||||||
strip => 1,
|
strip => "1",
|
||||||
source => "/usr/local/src/${filename}",
|
source => "/usr/local/src/${filename}",
|
||||||
require => File["/usr/local/src/${filename}"],
|
require => File["/usr/local/src/${filename}"],
|
||||||
before => Exec["python-setup-install-${name}"],
|
before => Exec["python-setup-install-${name}"],
|
||||||
|
@ -99,6 +102,7 @@ define python::setup::install($python="python", $source="") {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# Compile python script into binary form.
|
# Compile python script into binary form.
|
||||||
#
|
#
|
||||||
# === Parameters
|
# === Parameters
|
||||||
|
|
Loading…
Add table
Reference in a new issue