Skip to content

Commit bba491a

Browse files
committed
replace all package declarations with ensure_packages()
1 parent 680bd8c commit bba491a

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

manifests/install.pp

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,26 +36,26 @@
3636
}
3737

3838
if $python::manage_python_package {
39-
package { 'python':
39+
ensure_packages (['python'],
4040
ensure => $python::ensure,
4141
name => $python,
42-
}
42+
)
4343
}
4444

4545
case $python::provider {
4646
'pip': {
4747
if $python::manage_pip_package {
48-
package { 'pip':
48+
ensure_packages (['pip'],
4949
ensure => $pip_ensure,
5050
require => Package['python'],
51-
}
51+
)
5252
}
5353

5454
if $pythondev {
55-
package { 'python-dev':
55+
ensure_packages (['python-dev'],
5656
ensure => $dev_ensure,
5757
name => $pythondev,
58-
}
58+
)
5959
}
6060

6161
# Respect the $pip_ensure setting
@@ -182,28 +182,28 @@
182182
}
183183

184184
if $pythondev {
185-
package { 'python-dev':
186-
ensure => $dev_ensure,
187-
name => $pythondev,
188-
alias => $pythondev,
185+
ensure_packages (['python-dev'],
186+
ensure => $dev_ensure,
187+
name => $pythondev,
188+
alias => $pythondev,
189189
provider => 'yum',
190-
}
190+
)
191191
}
192192
}
193193
default: {
194194
if $python::manage_pip_package {
195-
package { 'pip':
195+
ensure_packages (['pip'],
196196
ensure => $pip_ensure,
197197
require => Package['python'],
198-
}
198+
)
199199
}
200200

201201
if $pythondev {
202-
package { 'python-dev':
202+
ensure_packages (['python-dev'],
203203
ensure => $dev_ensure,
204204
name => $pythondev,
205205
alias => $pythondev,
206-
}
206+
)
207207
}
208208
}
209209
}

0 commit comments

Comments
 (0)