Setup backports and ensure python-cryptography

Make sure that the jessie-backports repository is available and that the
python-cryptography package from that repository is used.
This commit is contained in:
Jan Dittberner 2016-09-24 23:52:37 +02:00
parent ae4389759d
commit 95b2e521eb
3 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
base:
pkgrepo.managed:
- name: deb http://httpredir.debian.org/debian jessie-backports main
- file: /etc/apt/sources.list.d/backports.list
base-packages:
pkg.installed:
- pkgs:

View file

@ -12,8 +12,9 @@ gnuviechadmin-dev-packages:
- pkg: gnuviechadmin-packages
python-cryptography:
pkg.installed:
pkg.latest:
- reload_modules: true
- fromrepo: jessie-backports
{% import "webserver/sslcert.macros.sls" as sslcert %}

View file

@ -9,6 +9,7 @@
- bits: {{ salt['pillar.get']('nginx:keylength:' + domain_name, 2048) }}
- require:
- file: {{ nginx_ssl_keydir }}
- pkg: python-cryptography
- require_in:
- file: /etc/nginx/sites-available/{{ domain_name }}
- service: nginx