-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhosts_ibacloud_base_gluster_3_11
126 lines (98 loc) · 3.77 KB
/
hosts_ibacloud_base_gluster_3_11
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# This is the default ansible 'hosts' file.
#
# It should live in /etc/ansible/hosts
#
# - Comments begin with the '#' character
# - Blank lines are ignored
# - Groups of hosts are delimited by [header] elements
# - You can enter hostnames or ip addresses
# - A hostname/ip can be a member of multiple groups
# Ex 1: Ungrouped hosts, specify before any group headers.
## green.example.com
## blue.example.com
## 192.168.100.1
## 192.168.100.10
# Ex 2: A collection of hosts belonging to the 'webservers' group
## [webservers]
## alpha.example.org
## beta.example.org
## 192.168.1.100
## 192.168.1.110
# If you have multiple hosts following a pattern you can specify
# them like this:
## www[001:006].example.com
# Ex 3: A collection of database servers in the 'dbservers' group
## [dbservers]
##
## db01.intranet.mydomain.net
## db02.intranet.mydomain.net
## 10.25.1.56
## 10.25.1.57
# Here's another example of host ranges, this time there are no
# leading 0s:
## db-[99:101]-node.example.com
# Create an OSEv3 group that contains the masters and nodes groups
[OSEv3:children]
masters
etcd
glusterfs
nodes
# Set variables common for all OSEv3 hosts
[OSEv3:vars]
# SSH user, this user should allow ssh based auth without requiring a password
ansible_ssh_user=root
# enable clock sync
openshift_clock_enabled=true
# OpenShift Deployment, enterprise of course!
openshift_deployment_type=openshift-enterprise
# define where to install router
#openshift_hosted_router_selector='purpose=infra'
# define default nodes for apps
#osm_default_node_selector='region=app'
# define where to install registry
#openshift_hosted_registry_selector='purpose=infra'
openshift_hosted_registry_storage_kind=glusterfs
openshift_hosted_registry_storage_volume_size=20Gi
#oreg_auth_user=
#oreg_auth_password=
#Set Domain for Apps, should point to router node (infra by default)
openshift_master_default_subdomain=172.20.237.190.xip.io
# Enable htpasswd authentication; defaults to DenyAllPasswordIdentityProvider
openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider'}]
# Set networking to multi-tenant
os_sdn_network_plugin_name='redhat/openshift-ovs-multitenant'
# Enable CNS (glusterfs) as default storage provider
openshift_storage_glusterfs_namespace=glusterfs
openshift_storage_glusterfs_name=storage
openshift_master_dynamic_provisioning_enabled=True
openshift_storage_glusterfs_storageclass=true
openshift_storage_glusterfs_storageclass_default=true
openshift_storage_glusterfs_block_deploy=true
openshift_storage_glusterfs_block_storageclass=true
openshift_storage_glusterfs_block_storageclass_default=false
# prometeus settings - installed by default
openshift_cluster_monitoring_operator_prometheus_storage_enabled=true
openshift_cluster_monitoring_operator_prometheus_storage_capacity=20Gi
openshift_cluster_monitoring_operator_alertmanager_storage_enabled=true
openshift_cluster_monitoring_operator_alertmanager_storage_capacity=5Gi
#Disable disk and memory checks
#openshift_disable_check=disk_availability,memory_availability
# define firewalld as firewall
os_firewall_use_firewalld=True
# host group for masters
[masters]
nhdnn-vs.icdc.io openshift_node_group_name='node-config-master'
# host group for etcd
[etcd]
nhdnn-vs.icdc.io
# host group for glusterfs
[glusterfs]
gqdce-vs.icdc.io glusterfs_devices='[ "/dev/sdb" ]'
mkmfh-vs.icdc.io glusterfs_devices='[ "/dev/sdb" ]'
jmpuy-vs.icdc.io glusterfs_devices='[ "/dev/sdb" ]'
# host group for nodes, includes region info
[nodes]
nhdnn-vs.icdc.io openshift_node_group_name='node-config-master'
gqdce-vs.icdc.io openshift_node_group_name='node-config-infra'
mkmfh-vs.icdc.io openshift_node_group_name='node-config-compute'
jmpuy-vs.icdc.io openshift_node_group_name='node-config-compute'