From 039cd5c014ef3c19460bd567151cbba552984bdb Mon Sep 17 00:00:00 2001 From: shirenn <shirenn@crans.org> Date: Wed, 5 Aug 2020 19:58:04 +0200 Subject: [PATCH] [framadate][safe] Crans configuration for framadate --- group_vars/framadate.yml | 11 +++++++++++ host_vars/voyager.adm.crans.org.yml | 2 ++ hosts | 3 +++ plays/framadate.yml | 6 ++++++ services_web.yml | 17 ++++------------- 5 files changed, 26 insertions(+), 13 deletions(-) create mode 100644 group_vars/framadate.yml create mode 100644 host_vars/voyager.adm.crans.org.yml create mode 100755 plays/framadate.yml diff --git a/group_vars/framadate.yml b/group_vars/framadate.yml new file mode 100644 index 00000000..e6ad3590 --- /dev/null +++ b/group_vars/framadate.yml @@ -0,0 +1,11 @@ +glob_framadate: + contact: contact@crans.org + automatic_response: no-reply@crans.org + smtp_server: smtp.crans.org + hostname: framadate.crans.org + repo: https://framagit.org/framasoft/framadate/framadate.git + version: "e8747ffef6f64372785dd9da7c18c20112eba9bf" + admin_username: framadate + admin_password: "{{ vault_framadate_password }}" + db_password: "{{ vault_framadate_password_db }}" + diff --git a/host_vars/voyager.adm.crans.org.yml b/host_vars/voyager.adm.crans.org.yml new file mode 100644 index 00000000..52213494 --- /dev/null +++ b/host_vars/voyager.adm.crans.org.yml @@ -0,0 +1,2 @@ +loc_framadate: + path: /var/www/framadate diff --git a/hosts b/hosts index e44a481d..9a3ce0e9 100644 --- a/hosts +++ b/hosts @@ -7,6 +7,9 @@ [horde] horde-srv.adm.crans.org +[framadate] +voyager.adm.crans.org + [dhcp] dhcp.adm.crans.org odlyd.adm.crans.org diff --git a/plays/framadate.yml b/plays/framadate.yml new file mode 100755 index 00000000..ca420e95 --- /dev/null +++ b/plays/framadate.yml @@ -0,0 +1,6 @@ +#!/usr/bin/env ansible-playbook +--- +# Moi j'aime pas vulcain parce qu'il sait pas jouer au jeux videos +- hosts: framadate + roles: + - framadate diff --git a/services_web.yml b/services_web.yml index 20215a11..b2e334ce 100755 --- a/services_web.yml +++ b/services_web.yml @@ -4,19 +4,6 @@ - hosts: soyouz.adm.crans.org roles: [] # TODO -# Deploy FramaDate -- hosts: voyager.adm.crans.org - vars: - framadate: - repo: https://framagit.org/framasoft/framadate/framadate.git - version: "e8747ffef6f64372785dd9da7c18c20112eba9bf" - path: /var/www/framadate - admin_username: framadate - admin_password: "{{ vault_framadate_password }}" - db_password: "{{ vault_framadate_password_db }}" - roles: - - framadate - - hosts: cas-srv.adm.crans.org roles: ["django-cas"] @@ -26,3 +13,7 @@ - hosts: ethercalc-srv.adm.crans.org roles: ["ethercalc"] + +- import_playbook: plays/horde.yml +- import_playbook: plays/framadate.yml + -- GitLab