Merge "Ensure curl is installed"
This commit is contained in:
commit
3c54ae46b1
@ -12,20 +12,27 @@ class pip (
|
||||
package { $::pip::params::python_devel_package:
|
||||
ensure => present,
|
||||
}
|
||||
if !defined(Package['curl']) {
|
||||
package { 'curl':
|
||||
ensure => present,
|
||||
}
|
||||
}
|
||||
|
||||
if $::operatingsystem != 'CentOS' {
|
||||
exec { 'download-pip3':
|
||||
command => "/usr/bin/curl ${::pip::params::get_pip_location} | /usr/bin/python3 - -U --force-reinstall",
|
||||
creates => $::pip::params::get_pip3_path,
|
||||
before => Exec['download-pip'],
|
||||
notify => Exec[$::pip::params::get_pip_path]
|
||||
notify => Exec[$::pip::params::get_pip_path],
|
||||
require => Package['curl'],
|
||||
}
|
||||
}
|
||||
|
||||
exec { 'download-pip':
|
||||
command => "/usr/bin/curl ${::pip::params::get_pip_location} | /usr/bin/python - -U --force-reinstall",
|
||||
creates => $::pip::params::get_pip2_path,
|
||||
notify => Exec[$::pip::params::get_pip_path]
|
||||
notify => Exec[$::pip::params::get_pip_path],
|
||||
require => Package['curl'],
|
||||
}
|
||||
|
||||
# NOTE(pabelanger): Default to pip2 for backwards compat
|
||||
|
Loading…
x
Reference in New Issue
Block a user