1234567891011121314151617181920212223 |
- ---
- etcd_interface: "{{ ansible_default_ipv4.interface }}"
- etcd_client_port: 2379
- etcd_peer_port: 2380
- etcd_url_scheme: http
- etcd_peer_url_scheme: http
- etcd_initial_cluster_state: new
- etcd_initial_cluster_token: etcd-cluster-1
- etcd_initial_advertise_peer_urls: "{{ etcd_peer_url_scheme }}://{{ hostvars[inventory_hostname]['ansible_' + etcd_interface]['ipv4']['address'] }}:{{ etcd_peer_port }}"
- etcd_listen_peer_urls: "{{ etcd_peer_url_scheme }}://{{ hostvars[inventory_hostname]['ansible_' + etcd_interface]['ipv4']['address'] }}:{{ etcd_peer_port }}"
- etcd_advertise_client_urls: "{{ etcd_url_scheme }}://{{ hostvars[inventory_hostname]['ansible_' + etcd_interface]['ipv4']['address'] }}:{{ etcd_client_port }}"
- etcd_listen_client_urls: "{{ etcd_url_scheme }}://{{ hostvars[inventory_hostname]['ansible_' + etcd_interface]['ipv4']['address'] }}:{{ etcd_client_port }}"
- etcd_data_dir: /var/lib/etcd/
- os_firewall_use_firewalld: False
- os_firewall_allow:
- - service: etcd
- port: "{{etcd_client_port}}/tcp"
- - service: etcd peering
- port: "{{ etcd_peer_port }}/tcp"
|