Commit 5fd2833e authored by nono's avatar nono 💻
Browse files

Merge branch 'main' of git.laquadrature.net:lqdn-interne/piops-roles/don-lqdn

parents 21fe8f9f 76b738fd
---
# defaults file for don-lqdn
don_user_password: "change this password"
# SQL
don_sql_database: "don"
don_sql_user: "don"
don_sql_password: "change this password"
# Payements
don_base_domain: "don.test.laquadrature.net"
don_payement_url: "http://localhost:5001/payment"
don_return_check_url: "http://localhost:5001/check"
don_site_id: "0"
don_certificate: ""
don_ctx_mode: "DEVELOPPEMENT"
# Piplome
don_piplome_path: ""
don_piplome_url: ""
# Logs
don_logs: "/home/don/don/logs"
# Campagne
don_campaign_start_date: ""
don_campaign_budget: ""
# SMTP
don_smtp_host: ""
don_smtp_port: ""
don_smtp_security: "" # tls, ssl, or none
don_smtp_user: ""
don_smtp_pw: ""
# Env debug
don_debug: 0
don_env: "env"
- name: Creation de l'utilisateur mySQL
mysql_user:
name: "{{ don_sql_user }}"
password: "{{ don_sql_password }}"
priv: '*.*:ALL'
state: present
login_unix_socket: /var/run/mysqld/mysqld.sock
- name: Installation des dépendances pour le site de don.
apt:
name: ['mariadb-server','default-mysql-client','gettext','git','bash','php','pdftk','texlive-latex-base']
name: ['mariadb-server','default-mysql-client','gettext','git','bash','php','php-zip','php-mysql','pdftk','texlive-latex-base']
state: present
update_cache: true
......@@ -65,7 +65,7 @@
update: true
version: master
force: true
- name: Création du dossier de don
file:
state: directory
......@@ -75,38 +75,11 @@
mode: 0775
recurse: true
- name: Installation de Phinx
shell: composer require robmorgan/phinx
args:
chdir: /home/don/don
become: true
become_user: don
- name: Installation de Doctrine DBAL
shell: composer require doctrine/dbal
- name: Installation des dépendances composer
shell: composer install -n
args:
chdir: /home/don/don
become: true
become_user: don
- name: Installation de Fat Free Framework
shell: composer require bcosca/fatfree-core
args:
chdir: /home/don/don
become: true
become_user: don
- name: Création de dossier pour PHP CS Fixer
file:
path: /home/don/don/tools/php-cs-fixer
state: directory
mode: 0775
owner: don
group: don
- name: Installation de PHP CS Fixer
shell: composer require --working-dir=tools/php-cs-fixer friendsofphp/php-cs-fixer
args:
chdir: /home/don/don
chdir: /home/don/don/
register: composer_output_install
failed_when: composer_output_install.rc != 0 or composer_output_install.rc > 0
become: true
become_user: don
......@@ -18,9 +18,19 @@
shell: make reset-db
args:
chdir: /home/don/don
become: true
become_user: don
- name: Exécution de tests
shell: make test
# - name: Installation du site de don
# shell: make install
args:
chdir: /home/don/don
become: true
become_user: don
- name: Installation du site de don
shell: make install
args:
chdir: /home/don/don
become: true
become_user: don
......@@ -2,8 +2,8 @@
# tasks file for don-lqdn
- include: users.yml
- include: database.yml
- include: dependencies.yml
- include: install.yml
# - include: configuration.yml
# - include: database.yml
- include: service.yml
......@@ -12,7 +12,7 @@ export PHINX_DATABASE=${SQL_DATABASE}
export PHINX_USER=${SQL_USER}
export PHINX_PASSWORD=${SQL_PASSWORD}
export SYSADMIN={{ sysadmin_email }}
export SYSADMIN="{{ sysadmin_email }}"
export FDNNURL1=https://secure.fd2n.org/fd2n/cb
export FDNNURL2=https://secure.fdn2.org/fdn2/don
export BASE_DOMAIN={{ don_base_domain}}
......
---
# vars file for don-lqdn
don_user_password: "change this password"
# SQL
don_sql_database: "don"
don_sql_user: "don"
don_sql_password: "change this password"
# Payements
don_base_domain: "don.test.laquadrature.net"
don_payement_url: "http://localhost:5001/payment"
don_return_check_url: "http://localhost:5001/check"
don_site_id: "0"
don_certificate: ""
don_ctx_mode: "DEVELOPPEMENT"
# Piplome
don_piplome_path: ""
don_piplome_url: ""
# Logs
don_logs: "/home/don/don/logs"
# Campagne
don_campaign_start_date: ""
don_campaign_budget: ""
# SMTP
don_smtp_host: ""
don_smtp_port: ""
don_smtp_security: "" # tls, ssl, or none
don_smtp_user: ""
don_smtp_pw: ""
# Env debug
don_debug: 0
don_env: "env"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment