authentic install

This commit is contained in:
Emmanuel Cazenave 2018-01-08 17:34:46 +01:00
commit ce9cc30a2a
3 changed files with 87 additions and 0 deletions

27
README.rst Normal file
View File

@ -0,0 +1,27 @@
Dev install of publik
=====================
Description
+++++++++++
This will install a publik instance on localhost using sources (git) and pip.
Dependencies
++++++++++++
python-lasso, git, ansible.
Tested on debian testing.
Usage
+++++
Fill the varibles i the 'local' file :
pipexe: path of the pip executable to use (it can be the pip of a virtualenv)
srcdir: path of the directory where the sources are going to be cloned
.. code-block:: bash
ansible-playbook -i local -K main.yml

5
main.yml Normal file
View File

@ -0,0 +1,5 @@
---
- name: Authentic
hosts: all
roles:
- authentic

View File

@ -0,0 +1,55 @@
- name: Install system depedencies
apt:
name: "{{ item }}"
state: installed
with_items:
- libsasl2-dev
- python-dev
- libldap2-dev
- libssl-dev
become: yes
- name: Git clone django-mellon
git:
repo: ssh://git@git.entrouvert.org/django-mellon.git
dest: "{{ srcdir }}/django-mellon"
- name: Pip install django
pip:
name: django
version: "{{ djangoversion}}"
executable: "{{ pipexe }}"
- name: Pip install django-mellon
pip:
name: django
version: "{{ djangoversion}}"
extra_args: "-e {{ srcdir }}/django-mellon"
executable: "{{ pipexe }}"
- name: Git clone gadjo
git:
repo: ssh://git@git.entrouvert.org/gadjo.git
dest: "{{ srcdir }}/gadjo"
- name: Pip install gadjo
pip:
name: django
version: "{{ djangoversion}}"
extra_args: "-e {{ srcdir }}/gadjo"
executable: "{{ pipexe }}"
- name: Git clone authentic
git:
repo: ssh://git@git.entrouvert.org/authentic.git
dest: "{{ srcdir }}/authentic"
- name: Pip install authentic
pip:
name: django
version: "{{ djangoversion}}"
extra_args: "-e {{ srcdir }}/authentic"
executable: "{{ pipexe }}"