-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhosts_nometric_ibavmware_nogluster_39
146 lines (115 loc) · 4.44 KB
/
hosts_nometric_ibavmware_nogluster_39
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
137
138
139
140
141
142
143
144
145
146
# 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
nfs
# 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
# to enable NFS for registry
#openshift_enable_unsupported_configurations=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'
# setup nfs registry
openshift_hosted_registry_storage_kind=nfs
openshift_hosted_registry_storage_access_modes=['ReadWriteMany']
openshift_hosted_registry_storage_nfs_directory=/exports
openshift_hosted_registry_storage_nfs_options='*(rw,root_squash)'
openshift_hosted_registry_storage_volume_name=registry
openshift_hosted_registry_storage_volume_size=10Gi
#Set Domain for Apps, should point to router node (infra by default)
openshift_master_default_subdomain=172.16.1.15.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]
ocpmaster.iba
# host group for etcd
[etcd]
ocpmaster.iba
# host group for glusterfs
#[glusterfs]
#ocpnode1.iba glusterfs_devices='[ "/dev/sdc" ]'
#ocpnode2.iba glusterfs_devices='[ "/dev/sdc" ]'
#ocpnode3.iba glusterfs_devices='[ "/dev/sdc" ]'
[nfs]
ocpnode1.iba
# host group for nodes, includes region info
[nodes]
ocpmaster.iba
ocpinfra.iba openshift_schedulable=True openshift_node_labels="{'region': 'infra'}"
ocpnode1.iba openshift_schedulable=True openshift_node_labels="{'region': 'app'}"
ocpnode2.iba openshift_schedulable=True openshift_node_labels="{'region': 'app'}"
ocpnode3.iba openshift_schedulable=True openshift_node_labels="{'region': 'app'}"