network protocol choice for git clone (#21957)
This commit is contained in:
parent
ed914f030c
commit
fa96ac7a7b
|
@ -0,0 +1,24 @@
|
|||
- name: "ssh git clone {{ repo }}"
|
||||
git:
|
||||
repo: "ssh://git@git.entrouvert.org/{{ repo }}.git"
|
||||
dest: "{{ repo_dir }}"
|
||||
when: git_ssh
|
||||
|
||||
- name: "standard git clone {{ repo }}"
|
||||
git:
|
||||
repo: "git://repos.entrouvert.org/{{ repo }}.git"
|
||||
dest: "{{ repo_dir }}"
|
||||
when: not git_ssh
|
||||
|
||||
# Ugly hack to perform a simple 'pip install -e /some/source/dir'
|
||||
- name: "pip install {{ repo_dir }}"
|
||||
pip:
|
||||
name: django
|
||||
version: "{{ django_version}}"
|
||||
extra_args: "-e {{ repo_dir }}"
|
||||
virtualenv: "{{ venv }}"
|
||||
|
||||
- name: "build {{ repo_dir }}"
|
||||
command: "{{ venv_python }} setup.py build"
|
||||
args:
|
||||
chdir: "{{ repo_dir }}"
|
|
@ -6,6 +6,7 @@ local:
|
|||
vars:
|
||||
compile_theme: true
|
||||
django_version: 1.8.18
|
||||
git_ssh: false
|
||||
src_dir: "/home/{{user}}/src"
|
||||
ssl_certificate: "/etc/ssl/certs/*.local.publik.crt"
|
||||
ssl_certificate_key: "/etc/ssl/private/*.local.publik.key"
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
# Ugly hack to perform a simple 'pip install -e /some/source/dir'
|
||||
- name: "pip install {{ source }}"
|
||||
pip:
|
||||
name: django
|
||||
version: "{{ django_version}}"
|
||||
extra_args: "-e {{ source }}"
|
||||
virtualenv: "{{venv}}"
|
||||
|
||||
- name: "build {{ source }}"
|
||||
command: "{{venv_python}} setup.py build"
|
||||
args:
|
||||
chdir: "{{ source }}"
|
|
@ -1,13 +1,9 @@
|
|||
|
||||
- name: git clone authentic
|
||||
git:
|
||||
repo: ssh://git@git.entrouvert.org/authentic.git
|
||||
dest: "{{ src_dir }}/authentic"
|
||||
|
||||
- name: pip install authentic
|
||||
import_tasks: pip_install_source.yml
|
||||
- name: source install authentic
|
||||
import_tasks: install_source.yml
|
||||
vars:
|
||||
source: "{{src_dir}}/authentic"
|
||||
repo: "authentic"
|
||||
repo_dir: "{{ src_dir }}/authentic"
|
||||
|
||||
# FIXME: change authentic settings instead ?
|
||||
- name: install python-memcached
|
||||
|
|
|
@ -55,10 +55,17 @@
|
|||
- name: execute getlasso
|
||||
command: "{{venv_bin}}/getlasso.sh"
|
||||
|
||||
- name: git clone
|
||||
- name: ssh git clone publik-base-theme
|
||||
git:
|
||||
repo: ssh://git@git.entrouvert.org/publik-base-theme.git
|
||||
dest: "{{ src_dir }}/publik-base-theme"
|
||||
when: git_ssh
|
||||
|
||||
- name: standard git clone publik-base-theme
|
||||
git:
|
||||
repo: git://repos.entrouvert.org/publik-base-theme.git
|
||||
dest: "{{ src_dir }}/publik-base-theme"
|
||||
when: not git_ssh
|
||||
|
||||
- name: make publik-base-theme
|
||||
make:
|
||||
|
|
|
@ -1,13 +1,9 @@
|
|||
|
||||
- name: Git clone combo
|
||||
git:
|
||||
repo: ssh://git@git.entrouvert.org/combo.git
|
||||
dest: "{{ src_dir }}/combo"
|
||||
|
||||
- name: Pip install combo
|
||||
import_tasks: pip_install_source.yml
|
||||
- name: source install combo
|
||||
import_tasks: install_source.yml
|
||||
vars:
|
||||
source: "{{src_dir}}/combo"
|
||||
repo: "combo"
|
||||
repo_dir: "{{ src_dir }}/combo"
|
||||
|
||||
- name: link to theme directory
|
||||
file:
|
||||
|
|
|
@ -1,48 +1,27 @@
|
|||
|
||||
- name: git clone hobo
|
||||
git:
|
||||
repo: ssh://git@git.entrouvert.org/hobo.git
|
||||
dest: "{{ src_dir }}/hobo"
|
||||
|
||||
- name: get lasso
|
||||
command: "bash getlasso.sh"
|
||||
args:
|
||||
chdir: "{{ src_dir }}/hobo/"
|
||||
|
||||
- name: git clone django-mellon
|
||||
git:
|
||||
repo: ssh://git@git.entrouvert.org/django-mellon.git
|
||||
dest: "{{ src_dir }}/django-mellon"
|
||||
|
||||
- name: pip install django-mellon
|
||||
import_tasks: pip_install_source.yml
|
||||
- name: source install django-mellon
|
||||
import_tasks: install_source.yml
|
||||
vars:
|
||||
source: "{{src_dir}}/django-mellon"
|
||||
repo: "django-mellon"
|
||||
repo_dir: "{{ src_dir }}/django-mellon"
|
||||
|
||||
- name: git clone gadjo
|
||||
git:
|
||||
repo: ssh://git@git.entrouvert.org/gadjo.git
|
||||
dest: "{{ src_dir }}/gadjo"
|
||||
|
||||
- name: pip install gadjo
|
||||
import_tasks: pip_install_source.yml
|
||||
- name: source install gadjo
|
||||
import_tasks: install_source.yml
|
||||
vars:
|
||||
source: "{{src_dir}}/gadjo"
|
||||
repo: "gadjo"
|
||||
repo_dir: "{{ src_dir }}/gadjo"
|
||||
|
||||
- name: git clone django-tenant-schemas
|
||||
git:
|
||||
repo: ssh://git@git.entrouvert.org/debian/django-tenant-schemas.git
|
||||
dest: "{{ src_dir }}/django-tenant-schemas"
|
||||
|
||||
- name: pip install django-tenant-schemas
|
||||
import_tasks: pip_install_source.yml
|
||||
- name: source install django-tenant-schemas
|
||||
import_tasks: install_source.yml
|
||||
vars:
|
||||
source: "{{src_dir}}/django-tenant-schemas"
|
||||
repo: "debian/django-tenant-schemas"
|
||||
repo_dir: "{{ src_dir }}/django-tenant-schemas"
|
||||
|
||||
- name: pip install hobo
|
||||
import_tasks: pip_install_source.yml
|
||||
- name: source install hobo
|
||||
import_tasks: install_source.yml
|
||||
vars:
|
||||
source: "{{src_dir}}/hobo"
|
||||
repo: "hobo"
|
||||
repo_dir: "{{ src_dir }}/hobo"
|
||||
|
||||
- name: hobo app setup
|
||||
import_role:
|
||||
|
|
|
@ -1,9 +1,4 @@
|
|||
|
||||
- name: Git clone wcs
|
||||
git:
|
||||
repo: ssh://git@git.entrouvert.org/wcs.git
|
||||
dest: "{{ src_dir }}/wcs"
|
||||
|
||||
# FIXME : clean python install should be handled directly in wcs
|
||||
- name: copy wcs requirements.txt
|
||||
copy:
|
||||
|
@ -15,10 +10,11 @@
|
|||
requirements: "{{venv}}/misc/wcs_requirements.txt"
|
||||
virtualenv: "{{venv}}"
|
||||
|
||||
- name: pip install wcs
|
||||
import_tasks: pip_install_source.yml
|
||||
- name: source install wcs
|
||||
import_tasks: install_source.yml
|
||||
vars:
|
||||
source: "{{src_dir}}/wcs"
|
||||
repo: "wcs"
|
||||
repo_dir: "{{ src_dir }}/wcs"
|
||||
|
||||
- name: "create share/wcs directory"
|
||||
file:
|
||||
|
|
Loading…
Reference in New Issue