|
|
|
@ -69,6 +69,36 @@ shared_service_gitea_ip: "{{ stage_server_infos
|
|
|
|
| map(attribute='private_ip')
|
|
|
|
| map(attribute='private_ip')
|
|
|
|
| list
|
|
|
|
| list
|
|
|
|
| first }}"
|
|
|
|
| first }}"
|
|
|
|
|
|
|
|
shared_service_k8s_master_01: "{{ stage_server_infos
|
|
|
|
|
|
|
|
| selectattr('name', 'match', stage + '-k8s-master-11' )
|
|
|
|
|
|
|
|
| map(attribute='private_ip')
|
|
|
|
|
|
|
|
| list
|
|
|
|
|
|
|
|
| first }}"
|
|
|
|
|
|
|
|
shared_service_k8s_master_02: "{{ stage_server_infos
|
|
|
|
|
|
|
|
| selectattr('name', 'match', stage + '-k8s-master-12' )
|
|
|
|
|
|
|
|
| map(attribute='private_ip')
|
|
|
|
|
|
|
|
| list
|
|
|
|
|
|
|
|
| first }}"
|
|
|
|
|
|
|
|
shared_service_k8s_master_03: "{{ stage_server_infos
|
|
|
|
|
|
|
|
| selectattr('name', 'match', stage + '-k8s-master-13' )
|
|
|
|
|
|
|
|
| map(attribute='private_ip')
|
|
|
|
|
|
|
|
| list
|
|
|
|
|
|
|
|
| first }}"
|
|
|
|
|
|
|
|
shared_service_k8s_worker_01: "{{ stage_server_infos
|
|
|
|
|
|
|
|
| selectattr('name', 'match', stage + '-k8s-worker-11' )
|
|
|
|
|
|
|
|
| map(attribute='private_ip')
|
|
|
|
|
|
|
|
| list
|
|
|
|
|
|
|
|
| first }}"
|
|
|
|
|
|
|
|
shared_service_k8s_worker_02: "{{ stage_server_infos
|
|
|
|
|
|
|
|
| selectattr('name', 'match', stage + '-k8s-worker-12' )
|
|
|
|
|
|
|
|
| map(attribute='private_ip')
|
|
|
|
|
|
|
|
| list
|
|
|
|
|
|
|
|
| first }}"
|
|
|
|
|
|
|
|
shared_service_k8s_worker_03: "{{ stage_server_infos
|
|
|
|
|
|
|
|
| selectattr('name', 'match', stage + '-k8s-worker-13' )
|
|
|
|
|
|
|
|
| map(attribute='private_ip')
|
|
|
|
|
|
|
|
| list
|
|
|
|
|
|
|
|
| first }}"
|
|
|
|
|
|
|
|
|
|
|
|
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"
|
|
|
|
@ -77,6 +107,14 @@ 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"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
k8smaster_01_hostname: "{{ stage }}-k8s-master-11.{{ domain }}"
|
|
|
|
|
|
|
|
k8smaster_02_hostname: "{{ stage }}-k8s-master-12.{{ domain }}"
|
|
|
|
|
|
|
|
k8smaster_03_hostname: "{{ stage }}-k8s-master-13.{{ domain }}"
|
|
|
|
|
|
|
|
k8sworker_01_hostname: "{{ stage }}-k8s-worker-11.{{ domain }}"
|
|
|
|
|
|
|
|
k8sworker_02_hostname: "{{ stage }}-k8s-worker-12.{{ domain }}"
|
|
|
|
|
|
|
|
k8sworker_03_hostname: "{{ stage }}-k8s-worker-13.{{ domain }}"
|
|
|
|
|
|
|
|
|
|
|
|
shared_service_iam_hostname: "{{ stage }}-iam-01.{{ domain }}"
|
|
|
|
shared_service_iam_hostname: "{{ stage }}-iam-01.{{ domain }}"
|
|
|
|
shared_service_mail_hostname: "{{ stage }}-mail-01.{{ domain }}"
|
|
|
|
shared_service_mail_hostname: "{{ stage }}-mail-01.{{ domain }}"
|
|
|
|
shared_service_gitea_hostname: "{{ stage }}-gitea-01.{{ domain }}"
|
|
|
|
shared_service_gitea_hostname: "{{ stage }}-gitea-01.{{ domain }}"
|
|
|
|
@ -140,6 +178,30 @@ shared_service_hosts: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ip: "{{ shared_service_gitea_ip }}",
|
|
|
|
ip: "{{ shared_service_gitea_ip }}",
|
|
|
|
name: "{{ shared_service_gitea_hostname }}"
|
|
|
|
name: "{{ shared_service_gitea_hostname }}"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ip: "{{ shared_service_k8s_master_01 }}",
|
|
|
|
|
|
|
|
name: "{{ k8smaster_01_hostname }}"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ip: "{{ shared_service_k8s_master_02 }}",
|
|
|
|
|
|
|
|
name: "{{ k8smaster_02_hostname }}"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ip: "{{ shared_service_k8s_master_03 }}",
|
|
|
|
|
|
|
|
name: "{{ k8smaster_03_hostname }}"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ip: "{{ shared_service_k8s_worker_01 }}",
|
|
|
|
|
|
|
|
name: "{{ k8sworker_01_hostname }}"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ip: "{{ shared_service_k8s_worker_02 }}",
|
|
|
|
|
|
|
|
name: "{{ k8sworker_02_hostname }}"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ip: "{{ shared_service_k8s_worker_03 }}",
|
|
|
|
|
|
|
|
name: "{{ k8sworker_03_hostname }}"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
|