-
Notifications
You must be signed in to change notification settings - Fork 33
/
hosts.yml
35 lines (35 loc) · 924 Bytes
/
hosts.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
all:
vars:
ansible_user: student
ansible_python_interpreter: /usr/bin/python3
children:
controllers:
hosts:
controller:
ansible_host: controller
vars:
public_ip: "{{ ansible_default_ipv4.address }}"
public_fqdn: "{{ ansible_host }}"
public_hostname: "{{ ansible_hostname }}"
etcd:
children:
controllers
nodes:
hosts:
node-1:
ansible_host: node-1
node-2:
ansible_host: node-2
vars:
public_ip: "{{ ansible_default_ipv4.address }}"
public_fqdn: "{{ ansible_host }}"
public_hostname: "{{ ansible_hostname }}"
bchds:
hosts:
bchd:
ansible_host: bchd
vars:
public_ip: "{{ ansible_default_ipv4.address }}"
public_fqdn: "{{ ansible_host }}"
public_hostname: "{{ ansible_hostname }}"