move variables from inventory to group-vars/all (#21725)

This commit is contained in:
Christophe Siraut 2018-04-10 13:32:14 +02:00 committed by Emmanuel Cazenave
parent fc810e2e7d
commit 162cf06b01
4 changed files with 93 additions and 75 deletions

2
ansible.cfg Normal file
View File

@ -0,0 +1,2 @@
[defaults]
hash_behaviour = merge

74
group_vars/all Normal file
View File

@ -0,0 +1,74 @@
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
corbo:
db_name: corbo
host_pattern: "*-corbo.local.publik"
nginx_host_pattern: '~^(.*)\-corbo\.local\.publik$'
project_name: corbo
server_port: 8044
bijoe:
db_name: bijoe
host_pattern: "*-bijoe.local.publik"
nginx_host_pattern: '~^(.*)\-bijoe\.local\.publik$'
project_name: bijoe
server_port: 8048
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"
dev-corbo: "dev-corbo.local.publik"
dev-bijoe: "dev-bijoe.local.publik"

View File

@ -3,78 +3,3 @@ local:
hosts:
localhost:
ansible_connection: 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"
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
corbo:
db_name: corbo
host_pattern: "*-corbo.local.publik"
nginx_host_pattern: '~^(.*)\-corbo\.local\.publik$'
project_name: corbo
server_port: 8044
bijoe:
db_name: bijoe
host_pattern: "*-bijoe.local.publik"
nginx_host_pattern: '~^(.*)\-bijoe\.local\.publik$'
project_name: bijoe
server_port: 8048
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"
dev-corbo: "dev-corbo.local.publik"
dev-bijoe: "dev-bijoe.local.publik"

View File

@ -0,0 +1,17 @@
local:
hosts:
localhost:
ansible_connection: local
tenants_conf:
connexion-authentic: "customname-authentic.local.publik"
agent-combo: "customname-combo.local.publik"
user-combo: "customname-combo.local.publik"
dev-hobo: "customname-hobo.local.publik"
demarches-wcs: "customname-wcs.local.publik"
dev-passerelle: "customname-passerelle.local.publik"
dev-fargo: "customname-fargo.local.publik"
dev-chrono: "customname-chrono.local.publik"
dev-corbo: "customname-corbo.local.publik"
dev-bijoe: "customname-bijoe.local.publik"