2018-09-20 01:14:41 +02:00
|
|
|
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"
|