Skip to content

Commit 81f7b27

Browse files
committed
Initial commit
0 parents  commit 81f7b27

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

Modulefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name 'tracywebtech-pip'
2+
version '1.0.0'
3+
source 'https://github.com/TracyWebTech/puppet-pip'
4+
author 'Tracy Web Technologies'
5+
summary 'Install pip using get-pip.py script'
6+
description 'Downloads get-pip.py and run it in order to install pip.'
7+
project_page 'https://github.com/TracyWebTech/puppet-pip'

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
puppet-pip
2+
----------
3+
4+
```
5+
include pip
6+
```

manifests/init.pp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
class pip {
3+
if ! defined(Package['curl']) {
4+
package { 'curl': }
5+
}
6+
7+
$get_pip_url = 'https://raw.github.com/pypa/pip/1.5.4/contrib/get-pip.py'
8+
9+
exec { 'install-pip':
10+
command => "curl $get_pip_url | python",
11+
path => ['/usr/bin', '/usr/local/bin'],
12+
unless => 'which pip',
13+
}
14+
}

0 commit comments

Comments
 (0)