|
88 | 88 | ensure => $dev_ensure, |
89 | 89 | require => Package['scl-utils'], |
90 | 90 | } |
91 | | - # This looks absurd but I can't figure out a better way |
92 | | - $pip_exec_onlyif = $pip_ensure ? { |
93 | | - present => '/bin/true', |
94 | | - default => '/bin/false', |
95 | | - } |
96 | | - exec { 'python-scl-pip-install': |
97 | | - require => Package['scl-utils'], |
98 | | - command => "scl enable ${python::version} -- easy_install pip", |
99 | | - path => ['/usr/bin', '/bin'], |
100 | | - onlyif => $pip_exec_onlyif, |
101 | | - creates => "/opt/rh/${python::version}/root/usr/bin/pip", |
| 91 | + if $pip_ensure { |
| 92 | + exec { 'python-scl-pip-install': |
| 93 | + require => Package['scl-utils'], |
| 94 | + command => "${python::params::exec_prefix}easy_install pip", |
| 95 | + path => ['/usr/bin', '/bin'], |
| 96 | + creates => "/opt/rh/${python::version}/root/usr/bin/pip", |
| 97 | + } |
102 | 98 | } |
103 | 99 | } |
104 | 100 | rhscl: { |
|
122 | 118 |
|
123 | 119 | if $pip_ensure { |
124 | 120 | exec { 'python-scl-pip-install': |
125 | | - command => "${python::params::exec_prefix}easy_install pip", |
| 121 | + command => "${python::exec_prefix}easy_install pip", |
126 | 122 | path => ['/usr/bin', '/bin'], |
127 | 123 | creates => "/opt/rh/${python::version}/root/usr/bin/pip", |
128 | 124 | } |
|
0 commit comments