Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #235 from OpenDataPolicingNC/ODPM-213-deploy-test
Browse files Browse the repository at this point in the history
Fixes for deploy on staging
  • Loading branch information
copelco committed Nov 5, 2018
2 parents 4ac40f4 + 45da80b commit 5508758
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 20 deletions.
68 changes: 68 additions & 0 deletions conf/salt/python/init.sls
@@ -0,0 +1,68 @@
{% set python_version = pillar.get('python_version', '2.7') ~ '' %}

python-pkgs:
pkg.installed:
- pkgs:
- python-pip
- build-essential
- libpq-dev
- libev-dev
- libevent-dev
- libmemcached-dev
- libjpeg8
- libjpeg8-dev
- libfreetype6
- libfreetype6-dev
- zlib1g
- zlib1g-dev
- libxml2-dev
- libxslt1-dev
- ghostscript
- python{{ python_version }}
- python{{ python_version }}-dev
{% for name in pillar.get('python_headers', []) %}
- {{ name }}
{% endfor %}

setuptools:
pip.installed:
- name: setuptools<8.0
- upgrade: True
- require:
- pkg: python-pkgs
- pip: pip

pip:
pip.installed:
{% if grains['saltversion'] < '2016.3.2' %}
- name: pip==8.1.1
{% else %}
- name: pip
- upgrade: False
{% endif %}
- require:
- pkg: python-pkgs

virtualenv:
pip.installed:
- upgrade: True
- require:
- pip: pip

/usr/lib/libz.so:
file.symlink:
- target: /usr/lib/{{ grains['cpuarch'] }}-linux-gnu/libz.so
- require:
- pkg: python-pkgs

/usr/lib/libfreetype.so:
file.symlink:
- target: /usr/lib/{{ grains['cpuarch'] }}-linux-gnu/libfreetype.so
- require:
- pkg: python-pkgs

/usr/lib/libjpeg.so:
file.symlink:
- target: /usr/lib/{{ grains['cpuarch'] }}-linux-gnu/libjpeg.so
- require:
- pkg: python-pkgs
21 changes: 1 addition & 20 deletions requirements/fab.txt
@@ -1,21 +1,2 @@
Fabric==1.10.0
Naked==0.1.31
Fabric==1.11.1
PyYAML==3.12
appdirs==1.4.3
argparse==1.2.1
asn1crypto==0.22.0
cffi==1.4.1
crypto==1.4.1
cryptography==1.8.1
enum34==1.1.6
idna==2.5
ipaddress==1.0.18
packaging==16.8
paramiko==2.1.2
pyasn1==0.2.3
pycparser==2.17
pycrypto==2.6.1
pyparsing==2.2.0
requests==2.13.0
shellescape==3.4.1
six==1.10.0

0 comments on commit 5508758

Please sign in to comment.