mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 13:46:59 +01:00
13 lines
850 B
YAML
13 lines
850 B
YAML
etcd_name: "etcd_{{ ansible_hostname }}"
|
|
#etcd_advertise_client_urls: "http://{{ ansible_hostname }}:2379"
|
|
etcd_advertise_client_urls: "http://{{ vpn_ip }}:2379"
|
|
#etcd_listen_client_urls: 'http://{{ ansible_hostname }}:2379,http://127.0.0.1:2379'
|
|
etcd_listen_client_urls: 'http://{{ vpn_ip }}:2379,http://127.0.0.1:2379'
|
|
#etcd_initial_advertise_peer_urls: "http://{{ ansible_hostname }}:2380"
|
|
etcd_initial_advertise_peer_urls: "http://{{ vpn_ip }}:2380"
|
|
#etcd_listen_peer_urls: "http://{{ ansible_hostname }}:2380"
|
|
etcd_listen_peer_urls: "http://{{ vpn_ip }}:2380"
|
|
# Create the list of initial cluster by using a template lookup
|
|
etcd_initial_cluster: "{{ lookup('template', 'templates/initial_cluster.j2') | replace('\n', '')}}"
|
|
etcd_initial_cluster_token: "token_{{ hostvars[initial_master]['ansible_hostname'] }}"
|
|
etcd_initial_cluster_state: "new"
|