Deploy framadate from crans gitlab

certbot_on_virtu
Alexandre Iooss 2019-06-13 17:52:56 +02:00
parent 77fd922311
commit 8859721873
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02
3 changed files with 15 additions and 15 deletions

View File

@ -1,8 +0,0 @@
---
# URL to clone
service_repo: https://framagit.org/framasoft/framadate.git
# name of the service user
# It means that you will have to `sudo -u THISUSER zsh` to debug
service_user: www-data
service_path: /var/www/framadate

View File

@ -15,20 +15,20 @@
- name: Clone framadate project - name: Clone framadate project
git: git:
repo: "{{ service_repo }}" repo: "{{ framadate_repo }}"
dest: "{{ service_path }}" dest: "{{ framadate_path }}"
version: "{{ service_version }}" version: "{{ framadate_version }}"
- name: Set perms on framadate code - name: Set perms on framadate code
file: file:
path: "{{ service_path }}" path: "{{ framadate_path }}"
state: directory state: directory
owner: "{{ service_user }}" owner: "{{ framadate_user }}"
recurse: true recurse: true
# composer install # composer install
# become: true # become: true
# become_user: "{{ service_user }}" # become_user: "{{ framadate_user }}"
# cd framadate # cd framadate
# sudo -u www-data touch admin/stdout.log # sudo -u www-data touch admin/stdout.log

View File

@ -6,11 +6,19 @@
# Deploy FramaDate # Deploy FramaDate
- hosts: voyager.adm.crans.org - hosts: voyager.adm.crans.org
vars: vars:
service_version: 1.1.10 # mirror on Crans GitLab because adm has no network
framadate_repo: https://gitlab.crans.org/nounous/framadate.git
framadate_version: 1.1.10
# User who will run framadate
# you will have to `sudo -u THISUSER zsh` to debug
framadate_user: www-data
framadate_path: /var/www/framadate
# Indicate service in motd # Indicate service in motd
motd_role: motd_role:
name: framadate name: framadate
path: "{{ framadate_path }}"
roles: roles:
- framadate - framadate
- motd-role - motd-role