-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhosts_nometric
131 lines (103 loc) · 4.04 KB
/
hosts_nometric
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
# 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'
#Set Domain for Apps, should point to router node (infra by default)
openshift_master_default_subdomain=172.20.237.144.xip.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
# Deploy logging and defining storage type
#openshift_logging_install_logging=true
#openshift_logging_storage_kind=dynamic
#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=10G
#Deploy Metrics (deployed by default, just set storage type)
#openshift_metrics_install_metrics=true
#openshift_metrics_cassandra_storage_type=dynamic
#openshift_metrics_hawkular_nodeselector="{'region':'infra'}"
#openshift_metrics_cassandra_nodeselector="{'region':'infra'}"
#openshift_metrics_heapster_nodeselector="{'region':'infra'}"
#Deploy Prometheus
#openshift_hosted_prometheus_deploy=true
#openshift_prometheus_node_selector="{'region':'infra'}"
#Disable disk and memory checks
#openshift_disable_check=disk_availability,memory_availability
# define firewalld as firewall
os_firewall_use_firewalld=True
# enable dynamic provisioning for gluster to work
openshift_master_dynamic_provisioning_enabled=True
# host group for masters
[masters]
xbgwy-vs.icdc.io
# host group for etcd
[etcd]
xbgwy-vs.icdc.io
# host group for glusterfs
[glusterfs]
pnvbv-vs.icdc.io glusterfs_devices='[ "/dev/vdc" ]'
voptl-vs.icdc.io glusterfs_devices='[ "/dev/vdc" ]'
wloic-vs.icdc.io glusterfs_devices='[ "/dev/vdc" ]'
# host group for nodes, includes region info
[nodes]
xbgwy-vs.icdc.io openshift_schedulable=False
zowva-vs.icdc.io openshift_schedulable=True openshift_node_labels="{'region': 'infra'}"
pnvbv-vs.icdc.io openshift_schedulable=True openshift_node_labels="{'region': 'app'}"
voptl-vs.icdc.io openshift_schedulable=True openshift_node_labels="{'region': 'app'}"
wloic-vs.icdc.io openshift_schedulable=True openshift_node_labels="{'region': 'app'}"