|
|
|
@ -4,48 +4,6 @@ stage: "dev"
|
|
|
|
|
|
|
|
|
|
|
|
# TODO read configuration with hetzner rest api
|
|
|
|
# TODO read configuration with hetzner rest api
|
|
|
|
shared_service_network: "10.0.0.0/16"
|
|
|
|
shared_service_network: "10.0.0.0/16"
|
|
|
|
shared_service_elastic_01: "{{ stage_server_infos
|
|
|
|
|
|
|
|
| selectattr('name', 'match', stage + '-elastic-stack-elastic-01' )
|
|
|
|
|
|
|
|
| map(attribute='private_ip')
|
|
|
|
|
|
|
|
| list
|
|
|
|
|
|
|
|
| first
|
|
|
|
|
|
|
|
| default('-') }}"
|
|
|
|
|
|
|
|
shared_service_elastic_02: "{{ stage_server_infos
|
|
|
|
|
|
|
|
| selectattr('name', 'match', stage + '-elastic-stack-elastic-02' )
|
|
|
|
|
|
|
|
| map(attribute='private_ip')
|
|
|
|
|
|
|
|
| list
|
|
|
|
|
|
|
|
| first
|
|
|
|
|
|
|
|
| default('-') }}"
|
|
|
|
|
|
|
|
shared_service_elastic_03: "{{ stage_server_infos
|
|
|
|
|
|
|
|
| selectattr('name', 'match', stage + '-elastic-stack-elastic-03' )
|
|
|
|
|
|
|
|
| map(attribute='private_ip')
|
|
|
|
|
|
|
|
| list
|
|
|
|
|
|
|
|
| first
|
|
|
|
|
|
|
|
| default('-') }}"
|
|
|
|
|
|
|
|
shared_service_logstash_01: "{{ stage_server_infos
|
|
|
|
|
|
|
|
| selectattr('name', 'match', stage + '-elastic-stack-logstash-01' )
|
|
|
|
|
|
|
|
| map(attribute='private_ip')
|
|
|
|
|
|
|
|
| list
|
|
|
|
|
|
|
|
| first
|
|
|
|
|
|
|
|
| default('-') }}"
|
|
|
|
|
|
|
|
shared_service_harbor_ip: "{{ stage_server_infos
|
|
|
|
|
|
|
|
| selectattr('name', 'match', stage + '-harbor-01' )
|
|
|
|
|
|
|
|
| map(attribute='private_ip')
|
|
|
|
|
|
|
|
| list
|
|
|
|
|
|
|
|
| first
|
|
|
|
|
|
|
|
| default('-') }}"
|
|
|
|
|
|
|
|
shared_service_pdns_ip: "{{ stage_server_infos
|
|
|
|
|
|
|
|
| selectattr('name', 'match', stage + '-pdns-01' )
|
|
|
|
|
|
|
|
| map(attribute='private_ip')
|
|
|
|
|
|
|
|
| list
|
|
|
|
|
|
|
|
| first
|
|
|
|
|
|
|
|
| default('-') }}"
|
|
|
|
|
|
|
|
shared_service_mail_ip: "{{ stage_server_infos
|
|
|
|
|
|
|
|
| selectattr('name', 'match', stage + '-mail-01' )
|
|
|
|
|
|
|
|
| map(attribute='private_ip')
|
|
|
|
|
|
|
|
| list
|
|
|
|
|
|
|
|
| first
|
|
|
|
|
|
|
|
| default('-') }}"
|
|
|
|
|
|
|
|
shared_service_pg_master_ip: "{{ stage_server_infos
|
|
|
|
shared_service_pg_master_ip: "{{ stage_server_infos
|
|
|
|
| selectattr('name', 'match', stage + '-postgres-01' )
|
|
|
|
| selectattr('name', 'match', stage + '-postgres-01' )
|
|
|
|
| map(attribute='private_ip')
|
|
|
|
| map(attribute='private_ip')
|
|
|
|
@ -58,92 +16,6 @@ shared_service_pg_slave_ip: "{{ stage_server_infos
|
|
|
|
| list
|
|
|
|
| list
|
|
|
|
| first
|
|
|
|
| first
|
|
|
|
| default('-') }}"
|
|
|
|
| default('-') }}"
|
|
|
|
shared_service_maria_ip: "{{ stage_server_infos
|
|
|
|
|
|
|
|
| selectattr('name', 'match', stage + '-maria-01' )
|
|
|
|
|
|
|
|
| map(attribute='private_ip')
|
|
|
|
|
|
|
|
| list
|
|
|
|
|
|
|
|
| first
|
|
|
|
|
|
|
|
| default('-') }}"
|
|
|
|
|
|
|
|
shared_service_keycloak_ip: "{{ stage_server_infos
|
|
|
|
|
|
|
|
| selectattr('name', 'match', stage + '-keycloak-01' )
|
|
|
|
|
|
|
|
| map(attribute='private_ip')
|
|
|
|
|
|
|
|
| list
|
|
|
|
|
|
|
|
| first
|
|
|
|
|
|
|
|
| default('-') }}"
|
|
|
|
|
|
|
|
shared_service_iam_ip: "{{ stage_server_infos
|
|
|
|
|
|
|
|
| selectattr('name', 'match', stage + '-iam-01' )
|
|
|
|
|
|
|
|
| map(attribute='private_ip')
|
|
|
|
|
|
|
|
| list
|
|
|
|
|
|
|
|
| first
|
|
|
|
|
|
|
|
| default('-') }}"
|
|
|
|
|
|
|
|
shared_service_webdav_ip: "{{ stage_server_infos
|
|
|
|
|
|
|
|
| selectattr('name', 'match', stage + '-webdav-01' )
|
|
|
|
|
|
|
|
| map(attribute='private_ip')
|
|
|
|
|
|
|
|
| list
|
|
|
|
|
|
|
|
| first
|
|
|
|
|
|
|
|
| default('-') }}"
|
|
|
|
|
|
|
|
shared_service_gitea_ip: "{{ stage_server_infos
|
|
|
|
|
|
|
|
| selectattr('name', 'match', stage + '-gitea-01' )
|
|
|
|
|
|
|
|
| map(attribute='private_ip')
|
|
|
|
|
|
|
|
| list
|
|
|
|
|
|
|
|
| first
|
|
|
|
|
|
|
|
| default('-') }}"
|
|
|
|
|
|
|
|
shared_service_redis_ip: "{{ stage_server_infos
|
|
|
|
|
|
|
|
| selectattr('name', 'match', stage + '-redis-01' )
|
|
|
|
|
|
|
|
| map(attribute='private_ip')
|
|
|
|
|
|
|
|
| list
|
|
|
|
|
|
|
|
| first
|
|
|
|
|
|
|
|
| default('-') }}"
|
|
|
|
|
|
|
|
shared_service_kube_master_01: "{{ stage_server_infos
|
|
|
|
|
|
|
|
| selectattr('name', 'match', stage + '-kube-master-01' )
|
|
|
|
|
|
|
|
| map(attribute='private_ip')
|
|
|
|
|
|
|
|
| list
|
|
|
|
|
|
|
|
| first
|
|
|
|
|
|
|
|
| default('-') }}"
|
|
|
|
|
|
|
|
shared_service_kube_master_02: "{{ stage_server_infos
|
|
|
|
|
|
|
|
| selectattr('name', 'match', stage + '-kube-master-02' )
|
|
|
|
|
|
|
|
| map(attribute='private_ip')
|
|
|
|
|
|
|
|
| list
|
|
|
|
|
|
|
|
| first
|
|
|
|
|
|
|
|
| default('-') }}"
|
|
|
|
|
|
|
|
shared_service_kube_master_03: "{{ stage_server_infos
|
|
|
|
|
|
|
|
| selectattr('name', 'match', stage + '-kube-master-03' )
|
|
|
|
|
|
|
|
| map(attribute='private_ip')
|
|
|
|
|
|
|
|
| list
|
|
|
|
|
|
|
|
| first
|
|
|
|
|
|
|
|
| default('-') }}"
|
|
|
|
|
|
|
|
shared_service_kube_node_01: "{{ stage_server_infos
|
|
|
|
|
|
|
|
| selectattr('name', 'match', stage + '-kube-node-01' )
|
|
|
|
|
|
|
|
| map(attribute='private_ip')
|
|
|
|
|
|
|
|
| list
|
|
|
|
|
|
|
|
| first
|
|
|
|
|
|
|
|
| default('-') }}"
|
|
|
|
|
|
|
|
shared_service_kube_node_02: "{{ stage_server_infos
|
|
|
|
|
|
|
|
| selectattr('name', 'match', stage + '-kube-node-02' )
|
|
|
|
|
|
|
|
| map(attribute='private_ip')
|
|
|
|
|
|
|
|
| list
|
|
|
|
|
|
|
|
| first
|
|
|
|
|
|
|
|
| default('-') }}"
|
|
|
|
|
|
|
|
shared_service_kube_node_03: "{{ stage_server_infos
|
|
|
|
|
|
|
|
| selectattr('name', 'match', stage + '-kube-node-03' )
|
|
|
|
|
|
|
|
| map(attribute='private_ip')
|
|
|
|
|
|
|
|
| list
|
|
|
|
|
|
|
|
| first
|
|
|
|
|
|
|
|
| default('-') }}"
|
|
|
|
|
|
|
|
shared_service_kube_node_04: "{{ stage_server_infos
|
|
|
|
|
|
|
|
| selectattr('name', 'match', stage + '-kube-node-04' )
|
|
|
|
|
|
|
|
| map(attribute='private_ip')
|
|
|
|
|
|
|
|
| list
|
|
|
|
|
|
|
|
| first
|
|
|
|
|
|
|
|
| default('-') }}"
|
|
|
|
|
|
|
|
shared_service_management_ip: "{{ stage_server_infos
|
|
|
|
|
|
|
|
| selectattr('name', 'match', stage + '-management-01' )
|
|
|
|
|
|
|
|
| map(attribute='private_ip')
|
|
|
|
|
|
|
|
| list
|
|
|
|
|
|
|
|
| first
|
|
|
|
|
|
|
|
| default('-') }}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
shared_service_kube_ip: "{{ stage_private_ingress_loadbalancer_ip | default('-') }}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
shared_service_maria_hostname: "{{ stage }}-maria-01"
|
|
|
|
shared_service_maria_hostname: "{{ stage }}-maria-01"
|
|
|
|
shared_service_postgres_01_hostname: "{{ stage }}-postgres-01"
|
|
|
|
shared_service_postgres_01_hostname: "{{ stage }}-postgres-01"
|
|
|
|
@ -152,149 +24,13 @@ shared_service_elastic_stack_01_hostname: "{{ stage }}-elastic-stack-elastic-01"
|
|
|
|
shared_service_elastic_stack_02_hostname: "{{ stage }}-elastic-stack-elastic-02"
|
|
|
|
shared_service_elastic_stack_02_hostname: "{{ stage }}-elastic-stack-elastic-02"
|
|
|
|
shared_service_elastic_stack_03_hostname: "{{ stage }}-elastic-stack-elastic-03"
|
|
|
|
shared_service_elastic_stack_03_hostname: "{{ stage }}-elastic-stack-elastic-03"
|
|
|
|
shared_service_elastic_stack_logstash_01_hostname: "{{ stage }}-elastic-stack-logstash-01"
|
|
|
|
shared_service_elastic_stack_logstash_01_hostname: "{{ stage }}-elastic-stack-logstash-01"
|
|
|
|
shared_service_elastic_stack_kibana_01_hostname: "{{ stage }}-elastic-stack-kibana-01"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
kube_master_01_hostname: "{{ stage }}-kube-master-01.{{ domain_env }}"
|
|
|
|
|
|
|
|
kube_master_02_hostname: "{{ stage }}-kube-master-02.{{ domain_env }}"
|
|
|
|
|
|
|
|
kube_master_03_hostname: "{{ stage }}-kube-master-03.{{ domain_env }}"
|
|
|
|
|
|
|
|
kube_node_01_hostname: "{{ stage }}-kube-node-01.{{ domain_env }}"
|
|
|
|
|
|
|
|
kube_node_02_hostname: "{{ stage }}-kube-node-02.{{ domain_env }}"
|
|
|
|
|
|
|
|
kube_node_03_hostname: "{{ stage }}-kube-node-03.{{ domain_env }}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
shared_service_iam_hostname: "{{ stage }}-iam-01.{{ domain_env }}"
|
|
|
|
shared_service_iam_hostname: "{{ stage }}-iam-01.{{ domain_env }}"
|
|
|
|
shared_service_mail_hostname: "{{ stage }}-mail-01.{{ domain_env }}"
|
|
|
|
shared_service_mail_hostname: "{{ stage }}-mail-01.{{ domain_env }}"
|
|
|
|
shared_service_gitea_hostname: "{{ stage }}-gitea-01.{{ domain_env }}"
|
|
|
|
shared_service_gitea_hostname: "{{ stage }}-gitea-01.{{ domain_env }}"
|
|
|
|
shared_service_redis_hostname: "{{ stage }}-redis-01.{{ domain_env }}"
|
|
|
|
shared_service_redis_hostname: "{{ stage }}-redis-01.{{ domain_env }}"
|
|
|
|
shared_service_kube_argocd_hostname: "{{ stage }}-kube-argocd.{{ domain_env }}"
|
|
|
|
|
|
|
|
shared_service_kube_awx_hostname: "{{ stage }}-kube-awx.{{ domain_env }}"
|
|
|
|
|
|
|
|
shared_service_kube_prometheus_hostname: "{{ stage }}-kube-prometheus.{{ domain_env }}"
|
|
|
|
|
|
|
|
shared_service_kube_jaeger_collector_hostname: "{{ stage }}-kube-jaeger-collector.{{ domain_env }}"
|
|
|
|
|
|
|
|
shared_service_pdns_hostname: "{{ stage }}-pdns-01.{{ domain_env }}"
|
|
|
|
shared_service_pdns_hostname: "{{ stage }}-pdns-01.{{ domain_env }}"
|
|
|
|
shared_service_webdav_hostname: "{{ stage }}-webdav-01.{{ domain_env }}"
|
|
|
|
shared_service_webdav_hostname: "{{ stage }}-webdav-01.{{ domain_env }}"
|
|
|
|
shared_service_keycloak_hostname: "{{ stage }}-keycloak-01.{{ domain_env }}"
|
|
|
|
|
|
|
|
shared_service_harbor_hostname: "{{ stage }}-harbor-01.{{ domain_env }}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
management_service_connect_hostname: "{{ stage }}-management-01-connect.{{ domain_env }}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
keycloak_server_url: "https://{{ shared_service_keycloak_hostname }}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
shared_service_hosts: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ip: "127.0.1.1",
|
|
|
|
|
|
|
|
name: "{{ inventory_hostname }}"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ip: "{{ shared_service_elastic_01 }}",
|
|
|
|
|
|
|
|
name: "{{ shared_service_elastic_stack_01_hostname }}"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ip: "{{ shared_service_elastic_02 }}",
|
|
|
|
|
|
|
|
name: "{{ shared_service_elastic_stack_02_hostname }}"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ip: "{{ shared_service_elastic_03 }}",
|
|
|
|
|
|
|
|
name: "{{ shared_service_elastic_stack_03_hostname }}"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ip: "{{ shared_service_logstash_01 }}",
|
|
|
|
|
|
|
|
name: "{{ shared_service_elastic_stack_logstash_01_hostname }}"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ip: "{{ shared_service_maria_ip }}",
|
|
|
|
|
|
|
|
name: "{{ shared_service_maria_hostname }}"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ip: "{{ shared_service_pg_master_ip }}",
|
|
|
|
|
|
|
|
name: "{{ shared_service_postgres_01_hostname }}"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ip: "{{ shared_service_pg_slave_ip }}",
|
|
|
|
|
|
|
|
name: "{{ shared_service_postgres_02_hostname }}"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ip: "{{ shared_service_harbor_ip }}",
|
|
|
|
|
|
|
|
name: "{{ shared_service_harbor_hostname }}"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ip: "{{ shared_service_mail_ip }}",
|
|
|
|
|
|
|
|
name: "{{ shared_service_mail_hostname }}"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ip: "{{ shared_service_keycloak_ip }}",
|
|
|
|
|
|
|
|
name: "{{ shared_service_keycloak_hostname }}"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ip: "{{ shared_service_iam_ip }}",
|
|
|
|
|
|
|
|
name: "{{ shared_service_iam_hostname }}"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ip: "{{ shared_service_webdav_ip }}",
|
|
|
|
|
|
|
|
name: "{{ shared_service_webdav_hostname }}"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ip: "{{ shared_service_gitea_ip }}",
|
|
|
|
|
|
|
|
name: "{{ shared_service_gitea_hostname }}"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ip: "{{ shared_service_redis_ip }}",
|
|
|
|
|
|
|
|
name: "{{ shared_service_redis_hostname }}"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ip: "{{ shared_service_kube_master_01 }}",
|
|
|
|
|
|
|
|
name: "{{ kube_master_01_hostname }}"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ip: "{{ shared_service_kube_master_02 }}",
|
|
|
|
|
|
|
|
name: "{{ kube_master_02_hostname }}"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ip: "{{ shared_service_kube_master_03 }}",
|
|
|
|
|
|
|
|
name: "{{ kube_master_03_hostname }}"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ip: "{{ shared_service_kube_node_01 }}",
|
|
|
|
|
|
|
|
name: "{{ kube_node_01_hostname }}"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ip: "{{ shared_service_kube_node_02 }}",
|
|
|
|
|
|
|
|
name: "{{ kube_node_02_hostname }}"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ip: "{{ shared_service_kube_node_03 }}",
|
|
|
|
|
|
|
|
name: "{{ kube_node_03_hostname }}"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ip: "{{ shared_service_pdns_ip }}",
|
|
|
|
|
|
|
|
name: "{{ shared_service_pdns_hostname }}"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ip: "{{ shared_service_kube_ip }}",
|
|
|
|
|
|
|
|
name: "{{ shared_service_kube_argocd_hostname }}"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ip: "{{ shared_service_kube_ip }}",
|
|
|
|
|
|
|
|
name: "{{ shared_service_kube_awx_hostname }}"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ip: "{{ shared_service_kube_ip }}",
|
|
|
|
|
|
|
|
name: "{{ shared_service_kube_prometheus_hostname }}"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ip: "{{ shared_service_kube_ip }}",
|
|
|
|
|
|
|
|
name: "{{ shared_service_kube_jaeger_collector_hostname }}"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ip: "{{ shared_service_management_ip }}",
|
|
|
|
|
|
|
|
name: "{{ management_service_connect_hostname }}"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# TODO read configuration with hetzner rest api
|
|
|
|
|
|
|
|
elastic_stack_network: {
|
|
|
|
|
|
|
|
dev-elastic-stack-elastic-01: "{{ shared_service_elastic_01 }}",
|
|
|
|
|
|
|
|
dev-elastic-stack-elastic-02: "{{ shared_service_elastic_02 }}",
|
|
|
|
|
|
|
|
dev-elastic-stack-elastic-03: "{{ shared_service_elastic_03 }}",
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
harbor_oidc_realm: "harbor"
|
|
|
|
harbor_oidc_realm: "harbor"
|
|
|
|
harbor_oidc_client_id: "harbor"
|
|
|
|
harbor_oidc_client_id: "harbor"
|
|
|
|
@ -305,8 +41,6 @@ harbor_oidc_admin_password: "{{ harbor_oidc_admin_password_vault }}"
|
|
|
|
management_oidc_realm: "management"
|
|
|
|
management_oidc_realm: "management"
|
|
|
|
management_oidc_client_id: "smardigo"
|
|
|
|
management_oidc_client_id: "smardigo"
|
|
|
|
|
|
|
|
|
|
|
|
smardigo_management_url: "{{ http_s }}://{{ management_service_connect_hostname }}/api/v1/scopes/{{ scope_id }}/processes/{{ process_instance_id }}/messages"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
connect_jwt_enabled: true
|
|
|
|
connect_jwt_enabled: true
|
|
|
|
connect_jwt_secret: "908ae14462d049d3be84964ef379c7c6"
|
|
|
|
connect_jwt_secret: "908ae14462d049d3be84964ef379c7c6"
|
|
|
|
webdav_jwt_enabled: true
|
|
|
|
webdav_jwt_enabled: true
|
|
|
|
|