-
Notifications
You must be signed in to change notification settings - Fork 0
/
hosts-example
107 lines (84 loc) · 4.16 KB
/
hosts-example
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
# Which groups of machines will be participating in the install? (Lines 3-7)
[OSEv3:children]
masters
nodes
etcd
nfs
# Variables that we need to configure (there are TONS of them, depending on your installation) (line 11 up to the "master" parts)
[OSEv3:vars]
#under which user Ansible should perform this install, should it use sudo? yes please (line 13-14)
ansible_ssh_user=hetz
ansible_become=yes
# Which Openshift (commercial, origin) to install and which version? Also, containerized or RPM version?
deployment_type=origin
openshift_image_tag=v3.7.2
openshift_release=3.7.2
openshift_pkg_version=v3.7.2
containerized=true
# Examples would help us a lot to learn OpenShift
openshift_install_examples=true
# Metrics will install Heapster (yay!), Hawkular and CassandraDB to measure CPU,Network and memory per pod.
openshift_metrics_install_metrics=true
openshift_metrics_start_cluster=true
openshift_metrics_duration=1
openshift_metrics_hawkular_hostname=hawkular-metrics.apps.yourdomain.com
openshift_metrics_image_version=v3.7.1
enable_excluders=false
enable_docker_excluder=false
# Which network plugin Openshift will use? There are many, we'll use Open vSwitch!
os_sdn_network_plugin_name='redhat/openshift-ovs-multitenant'
# use htpasswd authentication with demo/demo - in order to login as a standard user
openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/etc/origin/master/htpasswd'}]
openshift_master_htpasswd_users={'demo': '$apr1$.MaA77kd$Rlnn6RXq9kCjnEfh5I3w/.'}
# put the router on dedicated infra node
# This router stuff will run HAProxy to redirect from an app-name to internal pods using route.
openshift_hosted_router_selector='region=infra'
openshift_master_default_subdomain=apps.yourdomain.com
# put the image registry on dedicated infra node
openshift_hosted_registry_selector='region=infra'
# project pods should be placed on primary nodes
osm_default_node_selector='region=primary'
# Required for Service Catalog (see here: https://docs.openshift.com/container-platform/3.7/architecture/service_catalog/index.html)
openshift_hosted_etcd_storage_kind=nfs
openshift_hosted_etcd_storage_nfs_options="*(rw,root_squash,sync,no_wdelay)"
openshift_hosted_etcd_storage_nfs_directory=/exports/osev3-etcd
openshift_hosted_etcd_storage_volume_name=broker-ansible-etcd
openshift_hosted_etcd_storage_access_modes=["ReadWriteOnce"]
openshift_hosted_etcd_storage_volume_size=10G
openshift_hosted_etcd_storage_labels={'storage': 'etcd'}
openshift_logging_install_logging=True
openshift_logging_image_version=v3.7.2
# NFS For the Registry
openshift_hosted_manage_registry=true
openshift_hosted_manage_registry_console=true
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
# NFS for Logging (Incomplete!)
openshift_logging_install_logging=true
openshift_logging_storage_kind=nfs
openshift_logging_storage_access_modes=['ReadWriteOnce']
openshift_logging_storage_nfs_directory=/exports
openshift_logging_storage_nfs_options='*(rw,root_squash)'
openshift_logging_storage_volume_name=logging
openshift_logging_storage_volume_size=10Gi
# What is your Openshift main name to access from your browser? master is a nice name but you can give any name
# as long as it's in the DNS and points to your master node
openshift_public_hostname="master.yourdomain.com"
# From here onwards, a [name] represents an FQDN server name or names.
[masters]
master.yourdomain.com
[etcd]
master.yourdomain.com
[nfs]
master.yourdomain.com
[nodes]
# all the servers needs to be in the list and if they have specific functions - it should be in the labels
# NOTE: On OCP 3.9 it's different!
# master needs to be included in the node to be configured in the SDN
master.yourdomain.com
infra.yourdomain.com openshift_node_labels="{'region': 'infra', 'zone': 'default'}"
node[1:3].yourdomain.com openshift_node_labels="{'region': 'primary', 'zone': 'default'}"