|
22 | 22 | # [*owner*] |
23 | 23 | # The owner of the virtualenv being manipulated. Default: root |
24 | 24 | # |
| 25 | +# [*group*] |
| 26 | +# The group of the virtualenv being manipulated. Default: root |
| 27 | +# |
25 | 28 | # [*proxy*] |
26 | 29 | # Proxy server to use for outbound connections. Default: none |
27 | 30 | # |
|
63 | 66 | $virtualenv = 'system', |
64 | 67 | $url = false, |
65 | 68 | $owner = 'root', |
| 69 | + $group = 'root', |
66 | 70 | $proxy = false, |
67 | 71 | $egg = false, |
68 | 72 | $editable = false, |
|
163 | 167 | command => "${pip_env} wheel --help > /dev/null 2>&1 && { ${pip_env} wheel --version > /dev/null 2>&1 || wheel_support_flag='--no-use-wheel'; } ; { ${pip_env} --log ${log}/pip.log install ${install_args} \$wheel_support_flag ${proxy_flag} ${install_args} ${install_editable} ${source}@${ensure}#egg=${egg_name} || ${pip_env} --log ${log}/pip.log install ${install_args} ${proxy_flag} ${install_args} ${install_editable} ${source}@${ensure}#egg=${egg_name} ;}", |
164 | 168 | unless => "${pip_env} freeze | grep -i -e ${grep_regex}", |
165 | 169 | user => $owner, |
| 170 | + group => $group, |
166 | 171 | cwd => $cwd, |
167 | 172 | environment => $environment, |
168 | 173 | path => ['/usr/local/bin','/usr/bin','/bin', '/usr/sbin'], |
|
174 | 179 | command => "${pip_env} wheel --help > /dev/null 2>&1 && { ${pip_env} wheel --version > /dev/null 2>&1 || wheel_support_flag='--no-use-wheel'; } ; { ${pip_env} --log ${log}/pip.log install ${install_args} \$wheel_support_flag ${proxy_flag} ${install_args} ${install_editable} ${source} || ${pip_env} --log ${log}/pip.log install ${install_args} ${proxy_flag} ${install_args} ${install_editable} ${source} ;}", |
175 | 180 | unless => "${pip_env} freeze | grep -i -e ${grep_regex}", |
176 | 181 | user => $owner, |
| 182 | + group => $group, |
177 | 183 | cwd => $cwd, |
178 | 184 | environment => $environment, |
179 | 185 | path => ['/usr/local/bin','/usr/bin','/bin', '/usr/sbin'], |
|
190 | 196 | command => "${pip_env} wheel --help > /dev/null 2>&1 && { ${pip_env} wheel --version > /dev/null 2>&1 || wheel_support_flag='--no-use-wheel'; } ; { ${pip_env} --log ${log}/pip.log install ${install_args} \$wheel_support_flag ${proxy_flag} ${install_args} ${install_editable} ${source}==${ensure} || ${pip_env} --log ${log}/pip.log install ${install_args} ${proxy_flag} ${install_args} ${install_editable} ${source}==${ensure} ;}", |
191 | 197 | unless => "${pip_env} freeze | grep -i -e ${grep_regex}", |
192 | 198 | user => $owner, |
| 199 | + group => $group, |
193 | 200 | cwd => $cwd, |
194 | 201 | environment => $environment, |
195 | 202 | path => ['/usr/local/bin','/usr/bin','/bin', '/usr/sbin'], |
|
203 | 210 | command => "${pip_env} wheel --help > /dev/null 2>&1 && { ${pip_env} wheel --version > /dev/null 2>&1 || wheel_support_flag='--no-use-wheel'; } ; { ${pip_env} --log ${log}/pip.log install \$wheel_support_flag ${proxy_flag} ${install_args} ${install_editable} ${source} || ${pip_env} --log ${log}/pip.log install ${proxy_flag} ${install_args} ${install_editable} ${source} ;}", |
204 | 211 | unless => "${pip_env} freeze | grep -i -e ${grep_regex}", |
205 | 212 | user => $owner, |
| 213 | + group => $group, |
206 | 214 | cwd => $cwd, |
207 | 215 | environment => $environment, |
208 | 216 | path => ['/usr/local/bin','/usr/bin','/bin', '/usr/sbin'], |
|
216 | 224 | command => "${pip_env} wheel --help > /dev/null 2>&1 && { ${pip_env} wheel --version > /dev/null 2>&1 || wheel_support_flag='--no-use-wheel'; } ; { ${pip_env} --log ${log}/pip.log install --upgrade \$wheel_support_flag ${proxy_flag} ${install_args} ${install_editable} ${source} || ${pip_env} --log ${log}/pip.log install --upgrade ${proxy_flag} ${install_args} ${install_editable} ${source} ;}", |
217 | 225 | unless => "${pip_env} search ${proxy_flag} ${source} | grep -i INSTALLED | grep -i latest", |
218 | 226 | user => $owner, |
| 227 | + group => $group, |
219 | 228 | cwd => $cwd, |
220 | 229 | environment => $environment, |
221 | 230 | path => ['/usr/local/bin','/usr/bin','/bin', '/usr/sbin'], |
|
229 | 238 | command => "echo y | ${pip_env} uninstall ${uninstall_args} ${proxy_flag}", |
230 | 239 | onlyif => "${pip_env} freeze | grep -i -e ${grep_regex}", |
231 | 240 | user => $owner, |
| 241 | + group => $group, |
232 | 242 | cwd => $cwd, |
233 | 243 | environment => $environment, |
234 | 244 | path => ['/usr/local/bin','/usr/bin','/bin', '/usr/sbin'], |
|
0 commit comments