From dcc09cb256b25d1d4f73278edcdd315c96f7a643 Mon Sep 17 00:00:00 2001 From: Christophe Siraut Date: Tue, 10 Apr 2018 13:32:14 +0200 Subject: [PATCH 2/5] copy varibles from inventory to group_vars for providing variables to all hosts for all tasks --- group_vars/all | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ inventory.yml | 52 -------------------------------------------------- 2 files changed, 60 insertions(+), 52 deletions(-) create mode 100644 group_vars/all diff --git a/group_vars/all b/group_vars/all new file mode 100644 index 0000000..e05bcf7 --- /dev/null +++ b/group_vars/all @@ -0,0 +1,60 @@ +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" +venv: "/home/{{user}}/envs/publik-env" +user: publik +apps: + authentic: + db_name: authentic_multitenant + host_pattern: "*-authentic.local.publik" + nginx_host_pattern: '~^(.*)\-authentic\.local\.publik$' + project_name: authentic-multitenant + server_port: 8000 + combo: + db_name: combo + host_pattern: "*-combo.local.publik" + nginx_host_pattern: '~^(.*)\-combo\.local\.publik$' + project_name: combo + server_port: 8004 + hobo: + db_name: hobo + host_pattern: "*-hobo.local.publik" + nginx_host_pattern: '~^(.*)\-hobo\.local\.publik$' + project_name: hobo + server_port: 8016 + passerelle: + db_name: passerelle + host_pattern: "*-passerelle.local.publik" + nginx_host_pattern: '~^(.*)\-passerelle\.local\.publik$' + project_name: passerelle + server_port: 8024 + fargo: + db_name: fargo + host_pattern: "*-fargo.local.publik" + nginx_host_pattern: '~^(.*)\-fargo\.local\.publik$' + project_name: fargo + server_port: 8036 + chrono: + db_name: chrono + host_pattern: "*-chrono.local.publik" + nginx_host_pattern: '~^(.*)\-chrono\.local\.publik$' + project_name: chrono + server_port: 8040 + wcs: + db_name: wcs + host_pattern: "*-wcs.local.publik" + nginx_host_pattern: '~^(.*)\-wcs\.local\.publik$' + project_name: wcs + server_port: 8032 +tenants_conf: + connexion-authentic: "connexion-authentic.local.publik" + agent-combo: "agent-combo.local.publik" + user-combo: "user-combo.local.publik" + dev-hobo: "dev-hobo.local.publik" + demarches-wcs: "demarches-wcs.local.publik" + dev-passerelle: "dev-passerelle.local.publik" + dev-fargo: "dev-fargo.local.publik" + dev-chrono: "dev-chrono.local.publik" diff --git a/inventory.yml b/inventory.yml index 61c81b2..443f10b 100644 --- a/inventory.yml +++ b/inventory.yml @@ -12,55 +12,3 @@ local: ssl_certificate_key: "/etc/ssl/private/*.local.publik.key" user: your_user_name venv: "/home/{{user}}/envs/publik-env" - apps: - authentic: - db_name: authentic_multitenant - host_pattern: "*-authentic.local.publik" - nginx_host_pattern: '~^(.*)\-authentic\.local\.publik$' - project_name: authentic-multitenant - server_port: 8000 - combo: - db_name: combo - host_pattern: "*-combo.local.publik" - nginx_host_pattern: '~^(.*)\-combo\.local\.publik$' - project_name: combo - server_port: 8004 - hobo: - db_name: hobo - host_pattern: "*-hobo.local.publik" - nginx_host_pattern: '~^(.*)\-hobo\.local\.publik$' - project_name: hobo - server_port: 8016 - passerelle: - db_name: passerelle - host_pattern: "*-passerelle.local.publik" - nginx_host_pattern: '~^(.*)\-passerelle\.local\.publik$' - project_name: passerelle - server_port: 8024 - fargo: - db_name: fargo - host_pattern: "*-fargo.local.publik" - nginx_host_pattern: '~^(.*)\-fargo\.local\.publik$' - project_name: fargo - server_port: 8036 - chrono: - db_name: chrono - host_pattern: "*-chrono.local.publik" - nginx_host_pattern: '~^(.*)\-chrono\.local\.publik$' - project_name: chrono - server_port: 8040 - wcs: - db_name: wcs - host_pattern: "*-wcs.local.publik" - nginx_host_pattern: '~^(.*)\-wcs\.local\.publik$' - project_name: wcs - server_port: 8032 - tenants_conf: - connexion-authentic: "connexion-authentic.local.publik" - agent-combo: "agent-combo.local.publik" - user-combo: "user-combo.local.publik" - dev-hobo: "dev-hobo.local.publik" - demarches-wcs: "demarches-wcs.local.publik" - dev-passerelle: "dev-passerelle.local.publik" - dev-fargo: "dev-fargo.local.publik" - dev-chrono: "dev-chrono.local.publik" -- 2.11.0