Compare commits
5 Commits
01f5ba9b7a
...
a45a6b866e
Author | SHA1 | Date |
---|---|---|
Frédéric Péters | a45a6b866e | |
Emmanuel Cazenave | fc6364fb7f | |
Thomas NOËL | ff1d4c69c6 | |
Emmanuel Cazenave | 1dda8a9d6c | |
Emmanuel Cazenave | af108cad77 |
|
@ -1,3 +0,0 @@
|
|||
MIDDLEWARE_CLASSES = ('debug_toolbar.middleware.DebugToolbarMiddleware',) + MIDDLEWARE_CLASSES
|
||||
INSTALLED_APPS += ('debug_toolbar',)
|
||||
INTERNAL_IPS = ['127.0.0.1']
|
|
@ -1,2 +0,0 @@
|
|||
theme_repo: "publik-base-theme"
|
||||
theme_link: "publik-base"
|
|
@ -3,6 +3,7 @@
|
|||
apt:
|
||||
name:
|
||||
- acl
|
||||
- devscripts
|
||||
- gettext
|
||||
- graphicsmagick
|
||||
- graphviz
|
||||
|
@ -261,14 +262,30 @@
|
|||
- source
|
||||
|
||||
- name: install theme
|
||||
import_tasks: tasks/install_theme.yml
|
||||
import_tasks: tasks/install_source.yml
|
||||
vars:
|
||||
src_theme_dir: "{{src_dir}}/{{theme_repo}}"
|
||||
repo: "publik-base-theme"
|
||||
repo_dir: "{{src_dir}}/publik-base-theme"
|
||||
virtualenv: "{{venv_py3}}"
|
||||
version: "{{publik_base_theme_version|default('main')}}"
|
||||
do_build: "{{compile_theme}}"
|
||||
tags:
|
||||
- theme
|
||||
- source
|
||||
|
||||
- name: create themes directory
|
||||
file:
|
||||
path: "{{themes_dir}}"
|
||||
state: directory
|
||||
become: yes
|
||||
|
||||
- name: link to theme_repo
|
||||
file:
|
||||
src: "{{src_dir}}/publik-base-theme"
|
||||
path: "{{themes_dir}}/publik-base"
|
||||
state: link
|
||||
become: yes
|
||||
|
||||
- name: create cert directory
|
||||
file:
|
||||
path: "{{certs_dir}}"
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
}},
|
||||
{"create-wcs": {
|
||||
"url": "https://{{tenants_conf['demarches-wcs']}}/",
|
||||
"template_name": "{{wcs_skeleton_filename}}",
|
||||
"title": "Démarches"
|
||||
}},
|
||||
{% if 'dev-passerelle' in tenants_conf and tenants_conf['dev-passerelle'] %}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
cook_recipe_path: /tmp/cook-recipe.json
|
||||
wcs_skeleton_filename: publik.zip
|
||||
wcs_skeleton_filename: default.zip
|
||||
wcs_error_email: ""
|
||||
wcs_language: "fr"
|
||||
wcs_postgres_user: ""
|
||||
|
|
|
@ -26,3 +26,4 @@
|
|||
command: "{{ virtualenv }}/bin/python setup.py build"
|
||||
args:
|
||||
chdir: "{{ repo_dir }}"
|
||||
when: do_build | default(true)
|
||||
|
|
|
@ -1,35 +0,0 @@
|
|||
|
||||
- name: ssh git clone {{theme_repo}}
|
||||
git:
|
||||
repo: gitea@git.entrouvert.org:entrouvert/{{theme_repo}}.git
|
||||
dest: "{{src_theme_dir}}"
|
||||
version: "{{version}}"
|
||||
when:
|
||||
- git_ssh
|
||||
|
||||
- name: standard git clone {{theme_repo}}
|
||||
git:
|
||||
repo: https://git.entrouvert.org/entrouvert/{{theme_repo}}.git
|
||||
dest: "{{src_theme_dir}}"
|
||||
version: "{{version}}"
|
||||
when:
|
||||
- not git_ssh
|
||||
|
||||
- name: compile theme {{theme_repo}}
|
||||
make:
|
||||
chdir: "{{src_theme_dir}}"
|
||||
target: all
|
||||
when: compile_theme
|
||||
|
||||
- name: create themes directory
|
||||
file:
|
||||
path: "{{themes_dir}}"
|
||||
state: directory
|
||||
become: yes
|
||||
|
||||
- name: link to {{theme_repo}}
|
||||
file:
|
||||
src: "{{src_theme_dir}}"
|
||||
path: "{{themes_dir}}/{{theme_link}}"
|
||||
state: link
|
||||
become: yes
|
Loading…
Reference in New Issue