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",
|
||||
# }
|
||||
#
|
||||
define python::setup::install($python="python", $source="") {
|
||||
define python::setup::install(
|
||||
$python="python",
|
||||
$source=undef,
|
||||
) {
|
||||
|
||||
if $source {
|
||||
$filename = basename($source)
|
||||
|
@ -75,7 +78,7 @@ define python::setup::install($python="python", $source="") {
|
|||
ensure => present,
|
||||
mode => "0644",
|
||||
owner => "root",
|
||||
group => $operatingsystem ? {
|
||||
group => $::operatingsystem ? {
|
||||
"openbsd" => "wheel",
|
||||
default => "root",
|
||||
},
|
||||
|
@ -83,7 +86,7 @@ define python::setup::install($python="python", $source="") {
|
|||
}
|
||||
util::extract::tar { $name:
|
||||
ensure => latest,
|
||||
strip => 1,
|
||||
strip => "1",
|
||||
source => "/usr/local/src/${filename}",
|
||||
require => File["/usr/local/src/${filename}"],
|
||||
before => Exec["python-setup-install-${name}"],
|
||||
|
@ -99,6 +102,7 @@ define python::setup::install($python="python", $source="") {
|
|||
|
||||
}
|
||||
|
||||
|
||||
# Compile python script into binary form.
|
||||
#
|
||||
# === Parameters
|
||||
|
|
Loading…
Add table
Reference in a new issue