3
3
##
4
4
[all]
5
5
[all:vars]
6
- ansible_ssh_pass=winterwonderland
6
+ ansible_user=ubuntu
7
7
ansible_sudo_pass=winterwonderland
8
+ ansible_ssh_pass=winterwonderland
9
+ #ansible_ssh_private_key_file=~/.ssh/id_rsa
8
10
9
11
################################################################################################
10
12
## Optional Settings
@@ -14,10 +16,14 @@ bond_ifname=bond0
14
16
bond_mode=1
15
17
bond_mtu=9000
16
18
17
- ## network configuration for bond ( implemented if manage_network=True)
19
+ ## network bond configuration implemented if manage_network=True
18
20
[bond-config]
19
- hv01 bond_members='["eth1","eth2"]' bond_sub_interfaces='[{ " vlanid" :" 100" ," ip" :" 10.0.0.11" ," mask" :" 255.255.255.0" } ]'
21
+ ## for single interface bond configuration
22
+ hv01 bond_members='eth1' bond_sub_interfaces='[{ " vlanid" :" 100" ," ip" :" 10.0.0.11" ," mask" :" 255.255.255.0" } ]'
23
+
24
+ ## for multiple interface bond configuration
20
25
hv02 bond_members='["eth1","eth2"]' bond_sub_interfaces='[{ " vlanid" :" 100" ," ip" :" 10.0.0.12" ," mask" :" 255.255.255.0" } ]'
26
+ hv03 bond_members='["eth1","eth2"]' bond_sub_interfaces='[{ " vlanid" :" 100" ," ip" :" 10.0.0.13" ," mask" :" 255.255.255.0" } ]'
21
27
cv01 bond_members='["eth1","eth2"]' bond_sub_interfaces='[{ " vlanid" :" 100" ," ip" :" 10.0.0.15" ," mask" :" 255.255.255.0" } ]'
22
28
23
29
################################################################################################
@@ -29,21 +35,34 @@ glance
29
35
cinder
30
36
31
37
## global variables defined in group_vars/hypervisors.yml
38
+ ## note: if the following variables are not defined, the value of ansible_host will be inherited
39
+ ## - vm_console_ip
40
+ ## - ha_cluster_ip
41
+ ## - tunnel_ip
32
42
[hypervisors]
33
- hv01 ansible_host=10.0.0.11 ansible_user=centos vm_console_ip=10.0.0.11 ha_cluster_ip=10.0.1.11 tunnel_ip=10.0.2.11 dhcp=on snat=on
34
- hv02 ansible_host=10.0.0.12 ansible_user=centos vm_console_ip=10.0.0.12 tunnel_ip=10.0.2.12 dhcp=on snat=on
35
- hv03 ansible_host=10.0.0.13 ansible_user=ubuntu vm_console_ip=10.0.0.13 tunnel_ip=10.0.2.13
36
- hv04 ansible_host=10.0.0.14 ansible_user=ubuntu
43
+ hv01 ansible_host=10.0.0.11 vm_console_ip=10.0.0.11 ha_cluster_ip=10.0.1.11 tunnel_ip=10.0.2.11 dhcp=on snat=on
44
+ hv02 ansible_host=10.0.0.12 vm_console_ip=10.0.0.12 tunnel_ip=10.0.2.12 dhcp=on snat=on
45
+ hv03 ansible_host=10.0.0.13 vm_console_ip=10.0.0.13 tunnel_ip=10.0.2.13
46
+ hv04 ansible_host=10.0.0.14
37
47
38
48
## global variables defined in group_vars/glance.yml
49
+ ## note: if the following variables are not defined, the value of ansible_host will be inherited
50
+ ## - glance_ip
39
51
[glance]
40
52
hv01 glance_ip=10.0.3.11 glance_public_endpoint=True
41
53
hv02 glance_ip=10.0.3.12
42
54
43
55
## global variables defined in group_vars/cinder.yml
56
+ ## note: if the following variables are not defined, the value of ansible_host will be inherited
57
+ ## - cinder_ip
44
58
[cinder]
45
59
hv02 cinder_ip=10.0.4.14 pvs=["/dev/sdb","/dev/sdc","/dev/sdd","/dev/sde"]
46
60
61
+ ## global variables defined in group_vars/designate.yml
62
+ ## note: this role must be enabled by Platform9 Customer Success before using
63
+ [designate]
64
+ #hv01
65
+
47
66
################################################################################################
48
67
## Kubernetes Groups
49
68
################################################################################################
@@ -52,9 +71,13 @@ k8s-master
52
71
k8s-worker
53
72
54
73
## global variables defined in group_vars/containervisors.yml
74
+ ## note: if the following variables are not defined, their tasks will be skipped
75
+ ## - cluster_uuid
55
76
[k8s-master]
56
- cv01 ansible_host=10.0.0.15 ansible_user=ubuntu cluster_uuid=7273706d-afd5-44ea-8fbf-901ceb6bef27
77
+ cv01 ansible_host=10.0.0.15
78
+ cv02 ansible_host=10.0.0.16
79
+ cv03 ansible_host=10.0.0.17
57
80
58
81
[k8s-worker]
59
- cv02 ansible_host=10.0.0.16 ansible_user=ubuntu cluster_uuid=7273706d-afd5-44ea-8fbf-901ceb6bef27
60
- cv03 ansible_host=10.0.0.17 ansible_user=ubuntu cluster_uuid=7273706d-afd5-44ea-8fbf-901ceb6bef27
82
+ cv04 ansible_host=10.0.0.18 cluster_uuid=7273706d-afd5-44ea-8fbf-901ceb6bef27
83
+ cv05 ansible_host=10.0.0.19 cluster_uuid=7273706d-afd5-44ea-8fbf-901ceb6bef27
0 commit comments