Skip to content

Commit 78a10c9

Browse files
committed
Indents
1 parent f7a9bb4 commit 78a10c9

1 file changed

Lines changed: 34 additions & 34 deletions

File tree

python/manifests/init.pp

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626

2727
$prefix = "/usr/local"
2828
package { "python$short_version":
29-
ensure => installed,
30-
provider => apt,
29+
ensure => installed,
30+
provider => apt,
3131
}
3232
}
3333

34-
define configure ($pref="/usr", $pipversion = "1.1", $executable_name = "python") {
34+
define configure ($pref="/usr", $pipversion="1.5.4", $venv_version=undef, $executable_name="python") {
3535
if ($name =~ /^Python-(\d)\.(\d)/) {
3636
$short_version = "$1.$2"
3737
} else {
@@ -92,12 +92,12 @@
9292
}
9393

9494
pip { "virtualenv-$short_version":
95-
prefix => $pref,
96-
ensure => present,
97-
short_version => $short_version,
98-
command => "virtualenv",
99-
install_scripts => "$pref/bin",
100-
require => Exec["install-pip-$short_version"],
95+
prefix => $pref,
96+
ensure => present,
97+
short_version => $short_version,
98+
command => "virtualenv",
99+
install_scripts => "$pref/bin",
100+
require => Exec["install-pip-$short_version"],
101101
}
102102
}
103103

@@ -133,25 +133,25 @@
133133
define easy_install($prefix="/usr", $ensure, $executable="python", $short_version="2.6", $command=undef, $tmpdir="/tmp") {
134134
case $ensure {
135135
present: {
136-
exec { "retrieve-ez_setup-$name":
137-
command => "/usr/bin/wget http://peak.telecommunity.com/dist/ez_setup.py",
138-
#command => "wget http://python-distribute.org/distribute_setup.py",
139-
cwd => $tmpdir,
140-
logoutput => true,
141-
creates => "$tmpdir/ez_setup.py",
142-
}
143-
exec { "ez_setup-$name":
144-
command => "$prefix/bin/$executable $tmpdir/ez_setup.py",
145-
creates => "$prefix/bin/easy_install",
146-
require => Exec["retrieve-ez_setup-$name"],
147-
}
148-
exec { "easy_install-$name":
149-
command => "$prefix/bin/easy_install $command",
150-
timeout => "-1",
151-
logoutput => true,
152-
require => Exec["ez_setup-$name"],
153-
}
154-
}
136+
exec { "retrieve-ez_setup-$name":
137+
command => "/usr/bin/wget http://peak.telecommunity.com/dist/ez_setup.py",
138+
#command => "wget http://python-distribute.org/distribute_setup.py",
139+
cwd => $tmpdir,
140+
logoutput => true,
141+
creates => "$tmpdir/ez_setup.py",
142+
}
143+
exec { "ez_setup-$name":
144+
command => "$prefix/bin/$executable $tmpdir/ez_setup.py",
145+
creates => "$prefix/bin/easy_install",
146+
require => Exec["retrieve-ez_setup-$name"],
147+
}
148+
exec { "easy_install-$name":
149+
command => "$prefix/bin/easy_install $command",
150+
timeout => "-1",
151+
logoutput => true,
152+
require => Exec["ez_setup-$name"],
153+
}
154+
}
155155
}
156156
}
157157

@@ -164,12 +164,12 @@
164164

165165
if $libraries {
166166
pip {"virtualenv in $name":
167-
prefix => $name,
168-
short_version => $short_version,
169-
ensure => present,
170-
require => Exec[$name],
171-
command => $libraries
172-
}
167+
prefix => $name,
168+
short_version => $short_version,
169+
ensure => present,
170+
require => Exec[$name],
171+
command => $libraries
172+
}
173173
}
174174
}
175175
}

0 commit comments

Comments
 (0)