-
Notifications
You must be signed in to change notification settings - Fork 0
/
inventory.yaml
182 lines (143 loc) · 6.54 KB
/
inventory.yaml
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
# Create an OSEv3 group that contains the masters and nodes groups
[OSEv3:children]
masters
nodes
etcd
lb
bastion
glusterfs
# Set variables common for all OSEv3 hosts
[OSEv3:vars]
ansible_ssh_user=ocpadmin
ansible_become=yes
# https://github.com/openshift/openshift-ansible/blob/master/DEPLOYMENT_TYPES.md
deployment_type=openshift-enterprise
#oreg_url=registry.redhat.io/openshift3/ose-${component}:${version}
oreg_url=cacib-bastion:5000
# Please set:
oreg_auth_user=
oreg_auth_password=giitityiugirtu
containerized=false
openshift_examples_modify_imagestreams=true
# Skip env validation
openshift_disable_check=disk_availability,memory_availability
# Configure usage of openshift_clock role.
openshift_clock_enabled=true
# Set upgrade restart mode for full system restarts
openshift_rolling_restart_mode=system
# Enable cockpit
osm_use_cockpit=false
osm_cockpit_plugins=['cockpit-kubernetes', 'cockpit-pcp', 'setroubleshoot-server']
# Docker / Registry Configuration
openshift_docker_disable_push_dockerhub=True
openshift_docker_options="--log-driver=journald --log-level=warn --ipv6=false"
openshift_docker_insecure_registries=docker-registry.default.svc,docker-registry.default.svc.cluster.local
# Native high availability cluster method with optional load balancer.
openshift_master_cluster_method=native
openshift_master_cluster_hostname=master.cacib.azure.clustership.com
openshift_master_cluster_public_hostname=master.cacib.azure.clustership.com
openshift_master_api_port=8443
openshift_master_console_port=8443
# Configure nodeIP in the node config
# This is needed in cases where node traffic is desired to go over an
# interface other than the default network interface.
# Configure the multi-tenant SDN plugin (default is 'redhat/openshift-ovs-subnet')
os_sdn_network_plugin_name=redhat/openshift-ovs-multitenant
# Configure SDN cluster network and kubernetes service CIDR blocks. These
# network blocks should be private and should not conflict with network blocks
# in your infrastructure that pods may require access to. Can not be changed
# after deployment.
osm_cluster_network_cidr=10.1.0.0/16
openshift_portal_net=172.30.0.0/16
osm_host_subnet_length=8
#Proxy
openshift_http_proxy=http://cacib-bastion:3128
openshift_https_proxy=https://cacib-bastion:3128
openshift_generate_no_proxy_hosts=true
# htpasswd auth
openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider'}]
# Provide local certificate paths which will be deployed to masters
openshift_master_overwrite_named_certificates=true
# Install the openshift examples
openshift_install_examples=true
openshift_examples_modify_imagestreams=true
# default subdomain to use for exposed routes
openshift_master_default_subdomain=apps.cacib.azure.clustership.com
# Openshift Registry Options
openshift_hosted_registry_storage_kind=glusterfs
openshift_hosted_registry_replicas=1
#OCS
openshift_storage_glusterfs_namespace=ocs
openshift_storage_glusterfs_name=ocs
openshift_storage_glusterfs_wipe=True
openshift_storage_glusterfs_storageclass=true
openshift_storage_glusterfs_storageclass_default=true
# Fix for: https://access.redhat.com/solutions/3949971
openshift_storage_glusterfs_image=registry.redhat.io/rhgs3/rhgs-server-rhel7:v3.11
openshift_storage_glusterfs_block_image=registry.redhat.io/rhgs3/rhgs-gluster-block-prov-rhel7:v3.11
openshift_storage_glusterfs_heketi_image=registry.redhat.io/rhgs3/rhgs-volmanager-rhel7:v3.11
openshift_storage_glusterfs_block_deploy=True
openshift_storage_glusterfs_block_host_vol_create=true
openshift_storage_glusterfs_block_host_vol_size=50
openshift_storage_glusterfs_block_storageclass=true
# Metrics deployment
openshift_metrics_install_metrics=False
openshift_metrics_hawkular_hostname=metrics.apps.cacib.azure.clustership.com
openshift_metrics_cassandra_replicas=1
openshift_metrics_cassandra_limits_memory=2Gi
openshift_metrics_hawkular_replicas=1
openshift_metrics_duration=5
openshift_metrics_cassandra_pvc_size=5Gi
openshift_metrics_cassandra_storage_type=pv
openshift_metrics_cassandra_pvc_storage_class_name=glusterfs-ocs-block
# Logging deployment
openshift_logging_install_logging=False
openshift_logging_kibana_hostname=logging.apps.cacib.azure.clustership.com
openshift_logging_use_ops=false
openshift_logging_public_master_url=https://master.cacib.azure.clustership.com:8443
openshift_logging_curator_default_days=5
openshift_logging_es_pvc_size=5Gi
openshift_logging_es_pvc_dynamic=true
openshift_logging_es_pvc_storage_class_name=glusterfs-ocs-block
openshift_logging_es_memory_limit=8Gi
openshift_logging_kibana_nodeselector={"node-role.kubernetes.io/infra": "true"}
openshift_logging_curator_nodeselector={"node-role.kubernetes.io/infra": "true"}
openshift_logging_es_nodeselector={"node-role.kubernetes.io/infra": "true"}
# Prometheus
openshift_cluster_monitoring_operator_install=true
openshift_cluster_monitoring_operator_prometheus_storage_enabled=true
openshift_cluster_monitoring_operator_prometheus_storage_class_name=glusterfs-ocs-block
openshift_cluster_monitoring_operator_alertmanager_storage_enabled=true
openshift_cluster_monitoring_operator_alertmanager_storage_class_name=glusterfs-ocs-block
openshift_cluster_monitoring_operator_prometheus_storage_capacity=5Gi
openshift_cluster_monitoring_operator_node_selector={"node-role.kubernetes.io/infra":"true"}
# Service brokers
#openshift_service_catalog_image_version=latest
#ansible_service_broker_local_registry_whitelist=['.*-apb$']
#openshift_template_service_broker_namespaces=['openshift']
# Operator Lifecycle Manager
# openshift_enable_olm=true
# openshift_additional_registry_credentials=[{'host':'registry.connect.redhat.com','user':'your_user','password':'your_pwd','test_image':'mongodb/enterprise-operator:0.3.2'}]
[masters]
cacib-ocp-master0
cacib-ocp-master1
cacib-ocp-master2
[etcd]
cacib-ocp-master0
cacib-ocp-master1
cacib-ocp-master2
[lb]
cacib-bastion
[glusterfs]
cacib-ocp-worker0 glusterfs_ip=10.5.2.20 glusterfs_devices='["/dev/rootvg-varlv"]'
cacib-ocp-worker1 glusterfs_ip=10.5.2.21 glusterfs_devices='["/dev/rootvg-varlv"]'
cacib-ocp-worker2 glusterfs_ip=10.5.2.22 glusterfs_devices='["/dev/rootvg-varlv"]'
[nodes]
cacib-ocp-master0 openshift_node_group_name='node-config-master-infra'
cacib-ocp-master1 openshift_node_group_name='node-config-master-infra'
cacib-ocp-master2 openshift_node_group_name='node-config-master-infra'
cacib-ocp-worker0 openshift_node_group_name='node-config-compute'
cacib-ocp-worker1 openshift_node_group_name='node-config-compute'
cacib-ocp-worker2 openshift_node_group_name='node-config-compute'
[bastion]
cacib-bastion