Skip to content

Commit

Permalink
Merge pull request #76 from kpetremann/master
Browse files Browse the repository at this point in the history
Install python packages via pypi
  • Loading branch information
kpetremann authored Oct 29, 2020
2 parents fb6944a + 38a034e commit 9534ab3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
1 change: 1 addition & 0 deletions metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@
depends 'yum-epel'
depends 'ark'
depends 'facl'
depends 'poise-python'
22 changes: 20 additions & 2 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

package %w[composer fping git graphviz imagemagick libapache2-mod-php7.0 mariadb-client mariadb-server
mtr-tiny nmap php7.0-cli php7.0-curl php7.0-gd php7.0-json php7.0-mbstring php7.0-mcrypt php7.0-mysql
php7.0-snmp php7.0-xml php7.0-zip python-memcache python3-PyMySQL rrdtool snmp snmpd whois] do
php7.0-snmp php7.0-xml php7.0-zip rrdtool snmp snmpd whois] do
action :install
end

Expand Down Expand Up @@ -146,7 +146,7 @@

package %w[php72w php72w-cli php72w-common php72w-curl php72w-gd php72w-mbstring
php72w-process php72w-snmp net-snmp ImageMagick jwhois nmap mtr
rrdtool MySQL-python net-snmp-utils composer cronie fping git unzip
rrdtool net-snmp-utils composer cronie fping git unzip
php72w-mysqlnd php72w-xml php72w-zip] do
action node['librenms']['package']['default_action']
end
Expand Down Expand Up @@ -179,6 +179,24 @@

end

python_package 'PyMySQL' do
python '/usr/bin/python3'
version '0.10.1'
user 'root'
end

python_package 'redis' do
python '/usr/bin/python3'
version '3.5.3'
user 'root'
end

python_package 'python-memcached' do
python '/usr/bin/python3'
version '1.59'
user 'root'
end

group librenms_group do
action :create
end
Expand Down

0 comments on commit 9534ab3

Please sign in to comment.