-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhosts_ibacloud_metrics_logs_gluster-block
136 lines (109 loc) · 4.35 KB
/
hosts_ibacloud_metrics_logs_gluster-block
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
127
128
129
130
131
132
133
134
135
136
# 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=10Gi
#Set Domain for Apps, should point to router node (infra by default)
openshift_master_default_subdomain=brwapps.icdc.io
# Enable htpasswd authentication; defaults to DenyAllPasswordIdentityProvider
openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/etc/origin/master/htpasswd'}]
# 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
#Disable disk and memory checks
#openshift_disable_check=disk_availability,memory_availability
# Deploy logging and defining storage type
openshift_logging_install_logging=true
openshift_logging_storage_kind=dynamic
openshift_logging_es_pvc_storage_class_name=glusterfs-storage-block
openshift_logging_es_nodeselector={"region":"infra"}
openshift_logging_kibana_nodeselector={"region":"infra"}
openshift_logging_curator_nodeselector={"region":"infra"}
openshift_logging_es_pvc_dynamic=true
openshift_logging_es_pvc_size=15G
#Deploy Metrics (deployed by default, just set storage type)
openshift_metrics_install_metrics=true
openshift_metrics_storage_kind=dynamic
openshift_metrics_storage_volume_size=10Gi
openshift_metrics_cassandra_storage_type=dynamic
openshift_metrics_cassanda_pvc_storage_class_name=glusterfs-storage-block
openshift_metrics_hawkular_nodeselector={"region":"infra"}
openshift_metrics_cassandra_nodeselector={"region":"infra"}
openshift_metrics_heapster_nodeselector={"region":'infra'}
openshift_metrics_hawkular_hostname=hawkular-metrics.brwapps.icdc.io
# define firewalld as firewall
os_firewall_use_firewalld=True
# host group for masters
[masters]
qeobo-vs.icdc.io
# host group for etcd
[etcd]
qeobo-vs.icdc.io
# host group for glusterfs
[glusterfs]
nczvg-vs.icdc.io glusterfs_devices='[ "/dev/sdb" ]'
owbwc-vs.icdc.io glusterfs_devices='[ "/dev/sdb" ]'
hslmn-vs.icdc.io glusterfs_devices='[ "/dev/sdb" ]'
# host group for nodes, includes region info
[nodes]
qeobo-vs.icdc.io
frnwp-vs.icdc.io openshift_schedulable=True openshift_node_labels="{'region': 'infra'}"
nczvg-vs.icdc.io openshift_schedulable=True openshift_node_labels="{'region': 'app'}"
owbwc-vs.icdc.io openshift_schedulable=True openshift_node_labels="{'region': 'app'}"
hslmn-vs.icdc.io openshift_schedulable=True openshift_node_labels="{'region': 'app'}"