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
e82857d6
authored
Feb 23, 2018
by
source_reader
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
updated puppet, fixed breaking pip bug because of apt managed matplotlib
parent
2a8e4455
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
7 deletions
modules/common/manifests/init.pp
modules/joule_labjack/manifests/init.pp
modules/python/manifests/init.pp
modules/common/manifests/init.pp
View file @
e82857d6
...
...
@@ -3,7 +3,7 @@
# Packages required by multiple modules
#
class
common
{
$pkgs
=
[
'build-essential'
,
'screen'
,
'emacs'
,
'openvpn'
,
'gnome-tweak-tool'
,
'nmap'
]
$pkgs
=
[
'build-essential'
,
'screen'
,
'emacs'
,
'openvpn'
,
'gnome-tweak-tool'
,
'nmap'
,
'wget'
]
package
{
$pkgs
:
ensure
=>
present
...
...
modules/joule_labjack/manifests/init.pp
View file @
e82857d6
...
...
@@ -45,15 +45,15 @@ class joule_labjack {
ensure
=>
present
,
}
exec
{
'install labjack'
:
command
=>
"
${pip_cmd}
LabJackPython joule
_
labjack"
,
command
=>
"
${pip_cmd}
LabJackPython joulelabjack"
,
timeout
=>
0
,
path
=>
[
'/usr/local/bin'
,
'/usr/bin'
],
}
$exodriver_zip
=
"https://github.com/labjack/exodriver/archive/master.zip"
exec
{
'install exodriver'
:
command
=>
'wget & unzip master.zip & cd master & ./install.sh'
,
path
=>
[
'/usr/local/bin'
,
'/usr/sbin'
,
'/bin'
],
command
=>
"wget
${exodriver_zip}
&& unzip -o ./master.zip && cd ./exodriver-master && sudo /bin/bash install.sh"
,
path
=>
[
'/usr/local/bin'
,
'/usr/sbin'
,
'/bin'
,
'/usr/bin'
],
creates
=>
'/usr/local/lib/liblabjackusb.so.2.6.0'
,
require
=>
Package
[
'libusb-1.0.0-dev'
]
}
...
...
modules/python/manifests/init.pp
View file @
e82857d6
...
...
@@ -19,14 +19,34 @@
class
python
{
require
common
$deps
=
[
'python3-scipy'
,
'python3-numpy'
,
'python3-matplotlib'
,
'python-numpy'
,
'python-scipy'
,
'python-matplotlib'
,
$deps
=
[
'python3-scipy'
,
'python3-numpy'
,
'python-numpy'
,
'python-scipy'
,
'cython'
,
'python2.7'
,
'python2.7-dev'
,
'python-setuptools'
,
'python-cherrypy3'
,
'python-decorator'
,
'python-requests'
,
'python3-dev'
,
'python-dateutil'
,
'python-tz'
,
'python-progressbar'
,
'python-psutil'
,
'python-simplejson'
,
'python-pip'
,
'python3-pip'
]
'python-simplejson'
]
package
{
$deps
:
ensure
=>
present
}
file
{
'/tmp/get-pip.py'
:
owner
=>
root
,
group
=>
root
,
mode
=>
'0755'
,
source
=>
'puppet:///modules/python/get-pip.py'
}
$dist_pip
=
[
'python-pip'
,
'python3-pip'
,
'python3-matplotlib'
,
'python-matplotlib'
]
package
{
$dist_pip
:
ensure
=>
absent
}
exec
{
'install_pip3'
:
command
=>
'python3 /tmp/get-pip.py'
,
path
=>
[
'/usr/local/bin'
,
'/usr/bin'
],
require
=>
Package
[
$deps
]
}
exec
{
'install_pip2'
:
command
=>
'python2 /tmp/get-pip.py'
,
path
=>
[
'/usr/local/bin'
,
'/usr/bin'
],
require
=>
Package
[
$deps
,
$dist_pip
]
}
}
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