File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -5,3 +5,5 @@ author 'Tracy Web Technologies'
55summary ' Install pip using get-pip.py script'
66description ' Downloads get-pip.py and run it in order to install pip.'
77project_page ' https://github.com/TracyWebTech/puppet-pip'
8+
9+ dependency ' puppetlabs/stdlib' , ' >= 3.2.1'
Original file line number Diff line number Diff line change 11
22class pip {
3- if ! defined (Package[' curl' ]) {
4- package { 'curl' : }
5- }
3+ ensure_packages([' curl' ])
64
75 $get_pip_url = ' https://raw.github.com/pypa/pip/1.5.4/contrib/get-pip.py'
86
97 exec { 'install-pip' :
108 command => " curl $get_pip_url | python" ,
11- path => [' /usr/bin' , ' /usr/local/bin' ],
9+ path => [' /usr/bin' , ' /usr/local/bin' , ' /bin/ ' ],
1210 unless => ' which pip' ,
11+ require => Package[' curl' ],
1312 }
1413}
You can’t perform that action at this time.
0 commit comments