Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
wattsworth
/
puppet
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
04c51f7b
authored
Feb 02, 2018
by
John Donnal
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
manually install pip
parent
fd54bf66
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
modules/python/files/get-pip.py
modules/python/manifests/init.pp
modules/python/files/get-pip.py
0 → 100644
View file @
04c51f7b
This diff could not be displayed because it is too large.
modules/python/manifests/init.pp
View file @
04c51f7b
...
...
@@ -22,24 +22,30 @@ class python {
$deps
=
[
'python3-scipy'
,
'python3-numpy'
,
'python3-matplotlib'
,
'python-numpy'
,
'python-scipy'
,
'python-matplotlib'
,
'cython'
,
'python2.7'
,
'python2.7-dev'
,
'python-setuptools'
,
'python-cherrypy3'
,
'python-decorator'
,
'python-requests'
,
'python-cherrypy3'
,
'python-decorator'
,
'python-requests'
,
'python3-dev'
,
'python-dateutil'
,
'python-tz'
,
'python-progressbar'
,
'python-psutil'
,
'python-simplejson'
]
package
{
$deps
:
ensure
=>
present
}
file
{
'/tmp/get-pip.py'
:
owner
=>
root
,
group
=>
root
,
mode
=>
'0755'
,
source
=>
'puppet:///modules/python/get-pip.py'
}
package
{[
'python-pip'
,
'python3-pip'
]:
ensure
=>
absent
,
require
=>
Exec
[
'upgrade_pip3'
,
'upgrade_pip2'
]
}
exec
{
'
upgrade
_pip3'
:
command
=>
'p
ip3 install --upgrade pip
'
,
exec
{
'
install
_pip3'
:
command
=>
'p
ython3 /tmp/get-pip.py
'
,
path
=>
[
'/usr/local/bin'
,
'/usr/bin'
],
require
=>
Package
[
$deps
]
}
exec
{
'upgrade_pip2'
:
command
=>
'p
ip2 install --upgrade pip
'
,
command
=>
'p
ython2 /tmp/get-pip.py
'
,
path
=>
[
'/usr/local/bin'
,
'/usr/bin'
],
require
=>
Package
[
$deps
]
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment