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