hosts.example 53 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079
  1. # This is an example of an OpenShift-Ansible host inventory that provides the
  2. # minimum recommended configuration for production use. This includes 3 masters,
  3. # two infra nodes, two compute nodes, and an haproxy load balancer to load
  4. # balance traffic to the API servers. For a truly production environment you
  5. # should use an external load balancing solution that itself is highly available.
  6. [masters]
  7. ose3-master[1:3].test.example.com
  8. [etcd]
  9. ose3-master[1:3].test.example.com
  10. [nodes]
  11. ose3-master[1:3].test.example.com
  12. ose3-infra[1:2].test.example.com
  13. ose3-node[1:2].test.example.com
  14. [nfs]
  15. ose3-master1.test.example.com
  16. [lb]
  17. ose3-lb.test.example.com
  18. # Create an OSEv3 group that contains the masters and nodes groups
  19. [OSEv3:children]
  20. masters
  21. nodes
  22. etcd
  23. lb
  24. nfs
  25. [OSEv3:vars]
  26. ###############################################################################
  27. # Common/ Required configuration variables follow #
  28. ###############################################################################
  29. # SSH user, this user should allow ssh based auth without requiring a
  30. # password. If using ssh key based auth, then the key should be managed by an
  31. # ssh agent.
  32. ansible_user=root
  33. # If ansible_user is not root, ansible_become must be set to true and the
  34. # user must be configured for passwordless sudo
  35. #ansible_become=yes
  36. # Specify the deployment type. Valid values are origin and openshift-enterprise.
  37. openshift_deployment_type=origin
  38. #openshift_deployment_type=openshift-enterprise
  39. # Specify the generic release of OpenShift to install. This is used mainly just during installation, after which we
  40. # rely on the version running on the first master. Works best for containerized installs where we can usually
  41. # use this to lookup the latest exact version of the container images, which is the tag actually used to configure
  42. # the cluster. For RPM installations we just verify the version detected in your configured repos matches this
  43. # release.
  44. openshift_release="3.9"
  45. # default subdomain to use for exposed routes, you should have wildcard dns
  46. # for *.apps.test.example.com that points at your infra nodes which will run
  47. # your router
  48. openshift_master_default_subdomain=apps.test.example.com
  49. #Set cluster_hostname to point at your load balancer
  50. openshift_master_cluster_hostname=ose3-lb.test.example.com
  51. ###############################################################################
  52. # Additional configuration variables follow #
  53. ###############################################################################
  54. # Debug level for all OpenShift components (Defaults to 2)
  55. debug_level=2
  56. # Specify an exact container image tag to install or configure.
  57. # WARNING: This value will be used for all hosts in containerized environments, even those that have another version installed.
  58. # This could potentially trigger an upgrade and downtime, so be careful with modifying this value after the cluster is set up.
  59. #openshift_image_tag=v3.9.0
  60. # Specify an exact rpm version to install or configure.
  61. # WARNING: This value will be used for all hosts in RPM based environments, even those that have another version installed.
  62. # This could potentially trigger an upgrade and downtime, so be careful with modifying this value after the cluster is set up.
  63. #openshift_pkg_version=-3.9.0
  64. # If using Atomic Host, you may specify system container image registry for the nodes:
  65. #system_images_registry="docker.io"
  66. # when openshift_deployment_type=='openshift-enterprise'
  67. #system_images_registry="registry.access.redhat.com"
  68. # Manage openshift example imagestreams and templates during install and upgrade
  69. #openshift_install_examples=true
  70. # Configure logoutURL in the master config for console customization
  71. # See: https://docs.openshift.org/latest/install_config/web_console_customization.html#changing-the-logout-url
  72. #openshift_master_logout_url=http://example.com
  73. # Configure extensions in the master config for console customization
  74. # See: https://docs.openshift.org/latest/install_config/web_console_customization.html#serving-static-files
  75. #openshift_master_oauth_templates={'login': '/path/to/login-template.html'}
  76. # openshift_master_oauth_template is deprecated. Use openshift_master_oauth_templates instead.
  77. #openshift_master_oauth_template=/path/to/login-template.html
  78. # Configure imagePolicyConfig in the master config
  79. # See: https://docs.openshift.org/latest/admin_guide/image_policy.html
  80. #openshift_master_image_policy_config={"maxImagesBulkImportedPerRepository": 3, "disableScheduledImport": true}
  81. # This setting overrides allowedRegistriesForImport in openshift_master_image_policy_config. By default, all registries are allowed.
  82. #openshift_master_image_policy_allowed_registries_for_import=["docker.io", "*.docker.io", "*.redhat.com", "gcr.io", "quay.io", "registry.centos.org", "registry.redhat.io", "*.amazonaws.com"]
  83. # Configure master API rate limits for external clients
  84. #openshift_master_external_ratelimit_qps=200
  85. #openshift_master_external_ratelimit_burst=400
  86. # Configure master API rate limits for loopback clients
  87. #openshift_master_loopback_ratelimit_qps=300
  88. #openshift_master_loopback_ratelimit_burst=600
  89. # Install and run cri-o.
  90. #openshift_use_crio=False
  91. #openshift_use_crio_only=False
  92. # The following two variables are used when openshift_use_crio is True
  93. # and cleans up after builds that pass through docker. When openshift_use_crio is True
  94. # these variables are set to the defaults shown. You may override them here.
  95. # NOTE: You will still need to tag crio nodes with your given label(s)!
  96. # Enable docker garbage collection when using cri-o
  97. #openshift_crio_enable_docker_gc=True
  98. # Node Selectors to run the garbage collection
  99. #openshift_crio_docker_gc_node_selector={'runtime': 'cri-o'}
  100. # Items added, as is, to end of /etc/sysconfig/docker OPTIONS
  101. # Default value: "--log-driver=journald"
  102. #openshift_docker_options="-l warn --ipv6=false"
  103. # Specify exact version of Docker to configure or upgrade to.
  104. # Downgrades are not supported and will error out. Be careful when upgrading docker from < 1.10 to > 1.10.
  105. # docker_version="1.12.1"
  106. # Specify whether to run Docker daemon with SELinux enabled in containers. Default is True.
  107. # Uncomment below to disable; for example if your kernel does not support the
  108. # Docker overlay/overlay2 storage drivers with SELinux enabled.
  109. #openshift_docker_selinux_enabled=False
  110. # Skip upgrading Docker during an OpenShift upgrade, leaves the current Docker version alone.
  111. # docker_upgrade=False
  112. # Specify a list of block devices to be formatted and mounted on the nodes
  113. # during prerequisites.yml. For each hash, "device", "path", "filesystem" are
  114. # required. To add devices only on certain classes of node, redefine
  115. # container_runtime_extra_storage as a group var.
  116. #container_runtime_extra_storage='[{"device":"/dev/vdc","path":"/var/lib/origin/openshift.local.volumes","filesystem":"xfs","options":"gquota"}]'
  117. # Enable etcd debug logging, defaults to false
  118. # etcd_debug=true
  119. # Set etcd log levels by package
  120. # etcd_log_package_levels="etcdserver=WARNING,security=DEBUG"
  121. # Upgrade Hooks
  122. #
  123. # Hooks are available to run custom tasks at various points during a cluster
  124. # upgrade. Each hook should point to a file with Ansible tasks defined. Suggest using
  125. # absolute paths, if not the path will be treated as relative to the file where the
  126. # hook is actually used.
  127. #
  128. # Tasks to run before each master is upgraded.
  129. # openshift_master_upgrade_pre_hook=/usr/share/custom/pre_master.yml
  130. #
  131. # Tasks to run to upgrade the master. These tasks run after the main openshift-ansible
  132. # upgrade steps, but before we restart system/services.
  133. # openshift_master_upgrade_hook=/usr/share/custom/master.yml
  134. #
  135. # Tasks to run after each master is upgraded and system/services have been restarted.
  136. # openshift_master_upgrade_post_hook=/usr/share/custom/post_master.yml
  137. # Cluster Image Source (registry) configuration
  138. # openshift-enterprise default is 'registry.access.redhat.com/openshift3/ose-${component}:${version}'
  139. # origin default is 'docker.io/openshift/origin-${component}:${version}'
  140. #oreg_url=example.com/openshift3/ose-${component}:${version}
  141. # If oreg_url points to a registry other than registry.access.redhat.com we can
  142. # modify image streams to point at that registry by setting the following to true
  143. #openshift_examples_modify_imagestreams=true
  144. # Add insecure and blocked registries to global docker configuration
  145. #openshift_docker_insecure_registries=registry.example.com
  146. #openshift_docker_blocked_registries=registry.hacker.com
  147. # You may also configure additional default registries for docker, however this
  148. # is discouraged. Instead you should make use of fully qualified image names.
  149. #openshift_docker_additional_registries=registry.example.com
  150. # If oreg_url points to a registry requiring authentication, provide the following:
  151. #oreg_auth_user=some_user
  152. #oreg_auth_password='my-pass'
  153. # NOTE: oreg_url must be defined by the user for oreg_auth_* to have any affect.
  154. # oreg_auth_pass should be generated from running docker login.
  155. # To update registry auth credentials, uncomment the following:
  156. #oreg_auth_credentials_replace: True
  157. # OpenShift repository configuration
  158. #openshift_additional_repos=[{'id': 'openshift-origin-copr', 'name': 'OpenShift Origin COPR', 'baseurl': 'https://copr-be.cloud.fedoraproject.org/results/maxamillion/origin-next/epel-7-$basearch/', 'enabled': 1, 'gpgcheck': 1, 'gpgkey': 'https://copr-be.cloud.fedoraproject.org/results/maxamillion/origin-next/pubkey.gpg'}]
  159. #openshift_repos_enable_testing=false
  160. # If the image for etcd needs to be pulled from anywhere else than registry.access.redhat.com, e.g. in
  161. # a disconnected and containerized installation, use osm_etcd_image to specify the image to use:
  162. #osm_etcd_image=registry.example.com/rhel7/etcd
  163. # htpasswd auth
  164. #openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider'}]
  165. # Defining htpasswd users
  166. #openshift_master_htpasswd_users={'user1': '<pre-hashed password>', 'user2': '<pre-hashed password>'}
  167. # or
  168. #openshift_master_htpasswd_file=<path to local pre-generated htpasswd file>
  169. # Allow all auth
  170. #openshift_master_identity_providers=[{'name': 'allow_all', 'login': 'true', 'challenge': 'true', 'kind': 'AllowAllPasswordIdentityProvider'}]
  171. # LDAP auth
  172. #openshift_master_identity_providers=[{'name': 'my_ldap_provider', 'challenge': 'true', 'login': 'true', 'kind': 'LDAPPasswordIdentityProvider', 'attributes': {'id': ['dn'], 'email': ['mail'], 'name': ['cn'], 'preferredUsername': ['uid']}, 'bindDN': '', 'bindPassword': '', 'ca': 'my-ldap-ca.crt', 'insecure': 'false', 'url': 'ldap://ldap.example.com:389/ou=users,dc=example,dc=com?uid'}]
  173. #
  174. # Configure LDAP CA certificate
  175. # Specify either the ASCII contents of the certificate or the path to
  176. # the local file that will be copied to the remote host. CA
  177. # certificate contents will be copied to master systems and saved
  178. # within /etc/origin/master/ with a filename matching the "ca" key set
  179. # within the LDAPPasswordIdentityProvider.
  180. #
  181. #openshift_master_ldap_ca=<ca text>
  182. # or
  183. #openshift_master_ldap_ca_file=<path to local ca file to use>
  184. # OpenID auth
  185. #openshift_master_identity_providers=[{"name": "openid_auth", "login": "true", "challenge": "false", "kind": "OpenIDIdentityProvider", "client_id": "my_client_id", "client_secret": "my_client_secret", "claims": {"id": ["sub"], "preferredUsername": ["preferred_username"], "name": ["name"], "email": ["email"]}, "urls": {"authorize": "https://myidp.example.com/oauth2/authorize", "token": "https://myidp.example.com/oauth2/token"}, "ca": "my-openid-ca-bundle.crt"}]
  186. #
  187. # Configure OpenID CA certificate
  188. # Specify either the ASCII contents of the certificate or the path to
  189. # the local file that will be copied to the remote host. CA
  190. # certificate contents will be copied to master systems and saved
  191. # within /etc/origin/master/ with a filename matching the "ca" key set
  192. # within the OpenIDIdentityProvider.
  193. #
  194. #openshift_master_openid_ca=<ca text>
  195. # or
  196. #openshift_master_openid_ca_file=<path to local ca file to use>
  197. # Request header auth
  198. #openshift_master_identity_providers=[{"name": "my_request_header_provider", "challenge": "true", "login": "true", "kind": "RequestHeaderIdentityProvider", "challengeURL": "https://www.example.com/challenging-proxy/oauth/authorize?${query}", "loginURL": "https://www.example.com/login-proxy/oauth/authorize?${query}", "clientCA": "my-request-header-ca.crt", "clientCommonNames": ["my-auth-proxy"], "headers": ["X-Remote-User", "SSO-User"], "emailHeaders": ["X-Remote-User-Email"], "nameHeaders": ["X-Remote-User-Display-Name"], "preferredUsernameHeaders": ["X-Remote-User-Login"]}]
  199. #
  200. # Configure request header CA certificate
  201. # Specify either the ASCII contents of the certificate or the path to
  202. # the local file that will be copied to the remote host. CA
  203. # certificate contents will be copied to master systems and saved
  204. # within /etc/origin/master/ with a filename matching the "clientCA"
  205. # key set within the RequestHeaderIdentityProvider.
  206. #
  207. #openshift_master_request_header_ca=<ca text>
  208. # or
  209. #openshift_master_request_header_ca_file=<path to local ca file to use>
  210. # CloudForms Management Engine (ManageIQ) App Install
  211. #
  212. # Enables installation of MIQ server. Recommended for dedicated
  213. # clusters only. See roles/openshift_management/README.md for instructions
  214. # and requirements.
  215. #openshift_management_install_management=False
  216. # Cloud Provider Configuration
  217. #
  218. # Note: You may make use of environment variables rather than store
  219. # sensitive configuration within the ansible inventory.
  220. # For example:
  221. #openshift_cloudprovider_aws_access_key="{{ lookup('env','AWS_ACCESS_KEY_ID') }}"
  222. #openshift_cloudprovider_aws_secret_key="{{ lookup('env','AWS_SECRET_ACCESS_KEY') }}"
  223. #
  224. # AWS
  225. #openshift_cloudprovider_kind=aws
  226. # Note: IAM profiles may be used instead of storing API credentials on disk.
  227. #openshift_cloudprovider_aws_access_key=aws_access_key_id
  228. #openshift_cloudprovider_aws_secret_key=aws_secret_access_key
  229. #
  230. # Openstack
  231. #openshift_cloudprovider_kind=openstack
  232. #openshift_cloudprovider_openstack_auth_url=http://openstack.example.com:35357/v2.0/
  233. #openshift_cloudprovider_openstack_username=username
  234. #openshift_cloudprovider_openstack_password=password
  235. #openshift_cloudprovider_openstack_domain_id=domain_id
  236. #openshift_cloudprovider_openstack_domain_name=domain_name
  237. #openshift_cloudprovider_openstack_tenant_id=tenant_id
  238. #openshift_cloudprovider_openstack_tenant_name=tenant_name
  239. #openshift_cloudprovider_openstack_region=region
  240. #openshift_cloudprovider_openstack_lb_subnet_id=subnet_id
  241. #
  242. # Note: If you're getting a "BS API version autodetection failed" when provisioning cinder volumes you may need this setting
  243. #openshift_cloudprovider_openstack_blockstorage_version=v2
  244. #
  245. # GCE
  246. #openshift_cloudprovider_kind=gce
  247. # Note: When using GCE, openshift_gcp_project and openshift_gcp_prefix must be
  248. # defined.
  249. # openshift_gcp_project is the project-id
  250. #openshift_gcp_project=
  251. # openshift_gcp_prefix is a unique string to identify each openshift cluster.
  252. #openshift_gcp_prefix=
  253. #openshift_gcp_multizone=False
  254. #
  255. # vSphere
  256. #openshift_cloudprovider_kind=vsphere
  257. #openshift_cloudprovider_vsphere_username=username
  258. #openshift_cloudprovider_vsphere_password=password
  259. #openshift_cloudprovider_vsphere_host=vcenter_host or vsphere_host
  260. #openshift_cloudprovider_vsphere_datacenter=datacenter
  261. #openshift_cloudprovider_vsphere_datastore=datastore
  262. #openshift_cloudprovider_vsphere_folder=optional_folder_name
  263. # Project Configuration
  264. #osm_project_request_message=''
  265. #osm_project_request_template=''
  266. #osm_mcs_allocator_range='s0:/2'
  267. #osm_mcs_labels_per_project=5
  268. #osm_uid_allocator_range='1000000000-1999999999/10000'
  269. # Configure additional projects
  270. #openshift_additional_projects={'my-project': {'default_node_selector': 'label=value'}}
  271. # Enable cockpit
  272. #osm_use_cockpit=true
  273. #
  274. # Set cockpit plugins
  275. #osm_cockpit_plugins=['cockpit-kubernetes']
  276. # Native high availability (default cluster method)
  277. # If no lb group is defined, the installer assumes that a load balancer has
  278. # been preconfigured. For installation the value of
  279. # openshift_master_cluster_hostname must resolve to the load balancer
  280. # or to one or all of the masters defined in the inventory if no load
  281. # balancer is present.
  282. #openshift_master_cluster_hostname=openshift-ansible.test.example.com
  283. # If an external load balancer is used public hostname should resolve to
  284. # external load balancer address
  285. #openshift_master_cluster_public_hostname=openshift-ansible.public.example.com
  286. # Configure controller arguments
  287. #osm_controller_args={'resource-quota-sync-period': ['10s']}
  288. # Configure api server arguments
  289. #osm_api_server_args={'max-requests-inflight': ['400']}
  290. # additional cors origins
  291. #osm_custom_cors_origins=['foo.example.com', 'bar.example.com']
  292. # default project node selector
  293. #osm_default_node_selector='region=primary'
  294. # Override the default pod eviction timeout
  295. #openshift_master_pod_eviction_timeout=5m
  296. # Override the default oauth tokenConfig settings:
  297. # openshift_master_access_token_max_seconds=86400
  298. # openshift_master_auth_token_max_seconds=500
  299. # Override master servingInfo.maxRequestsInFlight
  300. #openshift_master_max_requests_inflight=500
  301. # Override master and node servingInfo.minTLSVersion and .cipherSuites
  302. # valid TLS versions are VersionTLS10, VersionTLS11, VersionTLS12
  303. # example cipher suites override, valid cipher suites are https://golang.org/pkg/crypto/tls/#pkg-constants
  304. #openshift_master_min_tls_version=VersionTLS12
  305. #openshift_master_cipher_suites=['TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256', '...']
  306. #
  307. #openshift_node_min_tls_version=VersionTLS12
  308. #openshift_node_cipher_suites=['TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256', '...']
  309. # default storage plugin dependencies to install, by default the ceph and
  310. # glusterfs plugin dependencies will be installed, if available.
  311. #osn_storage_plugin_deps=['ceph','glusterfs','iscsi']
  312. # OpenShift Router Options
  313. #
  314. # An OpenShift router will be created during install if there are
  315. # nodes present with labels matching the default router selector,
  316. # "node-role.kubernetes.io/infra=true".
  317. #
  318. # Example:
  319. # [nodes]
  320. # node.example.com openshift_node_group_name="node-config-infra"
  321. #
  322. # Router selector (optional)
  323. # Router will only be created if nodes matching this label are present.
  324. # Default value: 'node-role.kubernetes.io/infra=true'
  325. #openshift_hosted_router_selector='node-role.kubernetes.io/infra=true'
  326. #
  327. # Router replicas (optional)
  328. # Unless specified, openshift-ansible will calculate the replica count
  329. # based on the number of nodes matching the openshift router selector.
  330. #openshift_hosted_router_replicas=2
  331. #
  332. # Router force subdomain (optional)
  333. # A router path format to force on all routes used by this router
  334. # (will ignore the route host value)
  335. #openshift_hosted_router_force_subdomain='${name}-${namespace}.apps.example.com'
  336. #
  337. # Router certificate (optional)
  338. # Provide local certificate paths which will be configured as the
  339. # router's default certificate.
  340. #openshift_hosted_router_certificate={"certfile": "/path/to/router.crt", "keyfile": "/path/to/router.key", "cafile": "/path/to/router-ca.crt"}
  341. #
  342. # Manage the OpenShift Router (optional)
  343. #openshift_hosted_manage_router=true
  344. #
  345. # Router sharding support has been added and can be achieved by supplying the correct
  346. # data to the inventory. The variable to house the data is openshift_hosted_routers
  347. # and is in the form of a list. If no data is passed then a default router will be
  348. # created. There are multiple combinations of router sharding. The one described
  349. # below supports routers on separate nodes.
  350. #
  351. #openshift_hosted_routers=[{'name': 'router1', 'certificate': {'certfile': '/path/to/certificate/abc.crt', 'keyfile': '/path/to/certificate/abc.key', 'cafile': '/path/to/certificate/ca.crt'}, 'replicas': 1, 'serviceaccount': 'router', 'namespace': 'default', 'stats_port': 1936, 'edits': [], 'images': 'openshift3/ose-${component}:${version}', 'selector': 'type=router1', 'ports': ['80:80', '443:443']}, {'name': 'router2', 'certificate': {'certfile': '/path/to/certificate/xyz.crt', 'keyfile': '/path/to/certificate/xyz.key', 'cafile': '/path/to/certificate/ca.crt'}, 'replicas': 1, 'serviceaccount': 'router', 'namespace': 'default', 'stats_port': 1936, 'edits': [{'action': 'append', 'key': 'spec.template.spec.containers[0].env', 'value': {'name': 'ROUTE_LABELS', 'value': 'route=external'}}], 'images': 'openshift3/ose-${component}:${version}', 'selector': 'type=router2', 'ports': ['80:80', '443:443']}]
  352. # OpenShift Registry Console Options
  353. # Override the console image prefix:
  354. # origin default is "cockpit/", enterprise default is "openshift3/"
  355. #openshift_cockpit_deployer_prefix=registry.example.com/myrepo/
  356. # origin default is "kubernetes", enterprise default is "registry-console"
  357. #openshift_cockpit_deployer_basename=my-console
  358. # Override image version, defaults to latest for origin, vX.Y product version for enterprise
  359. #openshift_cockpit_deployer_version=1.4.1
  360. # Openshift Registry Options
  361. #
  362. # An OpenShift registry will be created during install if there are
  363. # nodes present with labels matching the default registry selector,
  364. # "node-role.kubernetes.io/infra=true".
  365. #
  366. # Example:
  367. # [nodes]
  368. # node.example.com openshift_node_group_name="node-config-infra"
  369. #
  370. # Registry selector (optional)
  371. # Registry will only be created if nodes matching this label are present.
  372. # Default value: 'node-role.kubernetes.io/infra=true'
  373. #openshift_hosted_registry_selector='node-role.kubernetes.io/infra=true'
  374. #
  375. # Registry replicas (optional)
  376. # Unless specified, openshift-ansible will calculate the replica count
  377. # based on the number of nodes matching the openshift registry selector.
  378. #openshift_hosted_registry_replicas=2
  379. #
  380. # Validity of the auto-generated certificate in days (optional)
  381. #openshift_hosted_registry_cert_expire_days=730
  382. #
  383. # Manage the OpenShift Registry (optional)
  384. #openshift_hosted_manage_registry=true
  385. # Manage the OpenShift Registry Console (optional)
  386. #openshift_hosted_manage_registry_console=true
  387. #
  388. # Registry Storage Options
  389. #
  390. # NFS Host Group
  391. # An NFS volume will be created with path "nfs_directory/volume_name"
  392. # on the host within the [nfs] host group. For example, the volume
  393. # path using these options would be "/exports/registry". "exports" is
  394. # is the name of the export served by the nfs server. "registry" is
  395. # the name of a directory inside of "/exports".
  396. #openshift_hosted_registry_storage_kind=nfs
  397. #openshift_hosted_registry_storage_access_modes=['ReadWriteMany']
  398. # nfs_directory must conform to DNS-1123 subdomain must consist of lower case
  399. # alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character
  400. #openshift_hosted_registry_storage_nfs_directory=/exports
  401. #openshift_hosted_registry_storage_nfs_options='*(rw,root_squash)'
  402. #openshift_hosted_registry_storage_volume_name=registry
  403. #openshift_hosted_registry_storage_volume_size=10Gi
  404. #
  405. # External NFS Host
  406. # NFS volume must already exist with path "nfs_directory/_volume_name" on
  407. # the storage_host. For example, the remote volume path using these
  408. # options would be "nfs.example.com:/exports/registry". "exports" is
  409. # is the name of the export served by the nfs server. "registry" is
  410. # the name of a directory inside of "/exports".
  411. #openshift_hosted_registry_storage_kind=nfs
  412. #openshift_hosted_registry_storage_access_modes=['ReadWriteMany']
  413. #openshift_hosted_registry_storage_host=nfs.example.com
  414. # nfs_directory must conform to DNS-1123 subdomain must consist of lower case
  415. # alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character
  416. #openshift_hosted_registry_storage_nfs_directory=/exports
  417. #openshift_hosted_registry_storage_volume_name=registry
  418. #openshift_hosted_registry_storage_volume_size=10Gi
  419. #
  420. # Openstack
  421. # Volume must already exist.
  422. #openshift_hosted_registry_storage_kind=openstack
  423. #openshift_hosted_registry_storage_access_modes=['ReadWriteOnce']
  424. #openshift_hosted_registry_storage_openstack_filesystem=ext4
  425. #openshift_hosted_registry_storage_openstack_volumeID=3a650b4f-c8c5-4e0a-8ca5-eaee11f16c57
  426. #openshift_hosted_registry_storage_volume_size=10Gi
  427. #
  428. # hostPath (local filesystem storage)
  429. # Suitable for "all-in-one" or proof of concept deployments
  430. # Must not be used for high-availability and production deployments
  431. #openshift_hosted_registry_storage_kind=hostpath
  432. #openshift_hosted_registry_storage_access_modes=['ReadWriteOnce']
  433. #openshift_hosted_registry_storage_hostpath_path=/var/lib/openshift_volumes
  434. #openshift_hosted_registry_storage_volume_size=10Gi
  435. #
  436. # AWS S3
  437. # S3 bucket must already exist.
  438. #openshift_hosted_registry_storage_kind=object
  439. #openshift_hosted_registry_storage_provider=s3
  440. #openshift_hosted_registry_storage_s3_encrypt=false
  441. #openshift_hosted_registry_storage_s3_kmskeyid=aws_kms_key_id
  442. #openshift_hosted_registry_storage_s3_accesskey=aws_access_key_id
  443. #openshift_hosted_registry_storage_s3_secretkey=aws_secret_access_key
  444. #openshift_hosted_registry_storage_s3_bucket=bucket_name
  445. #openshift_hosted_registry_storage_s3_region=bucket_region
  446. #openshift_hosted_registry_storage_s3_chunksize=26214400
  447. #openshift_hosted_registry_storage_s3_rootdirectory=/registry
  448. #openshift_hosted_registry_pullthrough=true
  449. #openshift_hosted_registry_acceptschema2=true
  450. #openshift_hosted_registry_enforcequota=true
  451. #
  452. # Any S3 service (Minio, ExoScale, ...): Basically the same as above
  453. # but with regionendpoint configured
  454. # S3 bucket must already exist.
  455. #openshift_hosted_registry_storage_kind=object
  456. #openshift_hosted_registry_storage_provider=s3
  457. #openshift_hosted_registry_storage_s3_accesskey=access_key_id
  458. #openshift_hosted_registry_storage_s3_secretkey=secret_access_key
  459. #openshift_hosted_registry_storage_s3_regionendpoint=https://myendpoint.example.com/
  460. #openshift_hosted_registry_storage_s3_bucket=bucket_name
  461. #openshift_hosted_registry_storage_s3_region=bucket_region
  462. #openshift_hosted_registry_storage_s3_chunksize=26214400
  463. #openshift_hosted_registry_storage_s3_rootdirectory=/registry
  464. #openshift_hosted_registry_pullthrough=true
  465. #openshift_hosted_registry_acceptschema2=true
  466. #openshift_hosted_registry_enforcequota=true
  467. #
  468. # Additional CloudFront Options. When using CloudFront all three
  469. # of the followingg variables must be defined.
  470. #openshift_hosted_registry_storage_s3_cloudfront_baseurl=https://myendpoint.cloudfront.net/
  471. #openshift_hosted_registry_storage_s3_cloudfront_privatekeyfile=/full/path/to/secret.pem
  472. #openshift_hosted_registry_storage_s3_cloudfront_keypairid=yourpairid
  473. # vSphere Volume with vSphere Cloud Provider
  474. # openshift_hosted_registry_storage_kind=vsphere
  475. # openshift_hosted_registry_storage_access_modes=['ReadWriteOnce']
  476. # openshift_hosted_registry_storage_annotations=['volume.beta.kubernetes.io/storage-provisioner: kubernetes.io/vsphere-volume']
  477. #
  478. # GCS Storage Bucket
  479. #openshift_hosted_registry_storage_provider=gcs
  480. #openshift_hosted_registry_storage_gcs_bucket=bucket01
  481. #openshift_hosted_registry_storage_gcs_keyfile=test.key
  482. #openshift_hosted_registry_storage_gcs_rootdirectory=/registry
  483. # Metrics deployment
  484. # See: https://docs.openshift.com/enterprise/latest/install_config/cluster_metrics.html
  485. #
  486. # By default metrics are not automatically deployed, set this to enable them
  487. #openshift_metrics_install_metrics=true
  488. #
  489. # Storage Options
  490. # If openshift_metrics_storage_kind is unset then metrics will be stored
  491. # in an EmptyDir volume and will be deleted when the cassandra pod terminates.
  492. # Storage options A & B currently support only one cassandra pod which is
  493. # generally enough for up to 1000 pods. Additional volumes can be created
  494. # manually after the fact and metrics scaled per the docs.
  495. #
  496. # Option A - NFS Host Group
  497. # An NFS volume will be created with path "nfs_directory/volume_name"
  498. # on the host within the [nfs] host group. For example, the volume
  499. # path using these options would be "/exports/metrics". "exports" is
  500. # is the name of the export served by the nfs server. "metrics" is
  501. # the name of a directory inside of "/exports".
  502. #openshift_metrics_storage_kind=nfs
  503. #openshift_metrics_storage_access_modes=['ReadWriteOnce']
  504. #openshift_metrics_storage_nfs_directory=/exports
  505. #openshift_metrics_storage_nfs_options='*(rw,root_squash)'
  506. #openshift_metrics_storage_volume_name=metrics
  507. #openshift_metrics_storage_volume_size=10Gi
  508. #openshift_metrics_storage_labels={'storage': 'metrics'}
  509. #
  510. # Option B - External NFS Host
  511. # NFS volume must already exist with path "nfs_directory/_volume_name" on
  512. # the storage_host. For example, the remote volume path using these
  513. # options would be "nfs.example.com:/exports/metrics". "exports" is
  514. # is the name of the export served by the nfs server. "metrics" is
  515. # the name of a directory inside of "/exports".
  516. #openshift_metrics_storage_kind=nfs
  517. #openshift_metrics_storage_access_modes=['ReadWriteOnce']
  518. #openshift_metrics_storage_host=nfs.example.com
  519. #openshift_metrics_storage_nfs_directory=/exports
  520. #openshift_metrics_storage_volume_name=metrics
  521. #openshift_metrics_storage_volume_size=10Gi
  522. #openshift_metrics_storage_labels={'storage': 'metrics'}
  523. #
  524. # Option C - Dynamic -- If openshift supports dynamic volume provisioning for
  525. # your cloud platform use this.
  526. #openshift_metrics_storage_kind=dynamic
  527. #
  528. # Other Metrics Options -- Common items you may wish to reconfigure, for the complete
  529. # list of options please see roles/openshift_metrics/README.md
  530. #
  531. # Override metricsPublicURL in the master config for cluster metrics
  532. # Defaults to https://hawkular-metrics.{{openshift_master_default_subdomain}}/hawkular/metrics
  533. # Currently, you may only alter the hostname portion of the url, alterting the
  534. # `/hawkular/metrics` path will break installation of metrics.
  535. #openshift_metrics_hawkular_hostname=hawkular-metrics.example.com
  536. # Configure the metrics component images # Note, these will be modified by oreg_url by default
  537. #openshift_metrics_cassandra_image="docker.io/openshift/origin-metrics-cassandra:{{ openshift_image_tag }}"
  538. #openshift_metrics_hawkular_agent_image="docker.io/openshift/origin-metrics-hawkular-openshift-agent:{{ openshift_image_tag }}"
  539. #openshift_metrics_hawkular_metrics_image="docker.io/openshift/origin-metrics-hawkular-metrics:{{ openshift_image_tag }}"
  540. #openshift_metrics_schema_installer_image="docker.io/openshift/origin-metrics-schema-installer:{{ openshift_image_tag }}"
  541. #openshift_metrics_heapster_image="docker.io/openshift/origin-metrics-heapster:{{ openshift_image_tag }}"
  542. # when openshift_deployment_type=='openshift-enterprise'
  543. #openshift_metrics_cassandra_image="registry.access.redhat.com/openshift3/metrics-cassandra:{{ openshift_image_tag }}"
  544. #openshift_metrics_hawkular_agent_image="registry.access.redhat.com/openshift3/metrics-hawkular-openshift-agent:{{ openshift_image_tag }}"
  545. #openshift_metrics_hawkular_metrics_image="registry.access.redhat.com/openshift3/metrics-hawkular-metrics:{{ openshift_image_tag }}"
  546. #openshift_metrics_schema_installer_image="registry.access.redhat.com/openshift3/metrics-schema-installer:{{ openshift_image_tag }}"
  547. #openshift_metrics_heapster_image="registry.access.redhat.com/openshift3/metrics-heapster:{{ openshift_image_tag }}"
  548. #
  549. # StorageClass
  550. # openshift_storageclass_name=gp2
  551. # openshift_storageclass_parameters={'type': 'gp2', 'encrypted': 'false'}
  552. # openshift_storageclass_mount_options=['dir_mode=0777', 'file_mode=0777']
  553. # openshift_storageclass_reclaim_policy="Delete"
  554. #
  555. # PersistentLocalStorage
  556. # If Persistent Local Storage is wanted, this boolean can be defined to True.
  557. # This will create all necessary configuration to use persistent storage on nodes.
  558. #openshift_persistentlocalstorage_enabled=False
  559. #openshift_persistentlocalstorage_classes=[]
  560. #openshift_persistentlocalstorage_path=/mnt/local-storage
  561. #openshift_persistentlocalstorage_provisionner_image=quay.io/external_storage/local-volume-provisioner:v1.0.1
  562. # Logging deployment
  563. #
  564. # Currently logging deployment is disabled by default, enable it by setting this
  565. #openshift_logging_install_logging=true
  566. #
  567. # Logging storage config
  568. # Option A - NFS Host Group
  569. # An NFS volume will be created with path "nfs_directory/volume_name"
  570. # on the host within the [nfs] host group. For example, the volume
  571. # path using these options would be "/exports/logging". "exports" is
  572. # is the name of the export served by the nfs server. "logging" is
  573. # the name of a directory inside of "/exports".
  574. #openshift_logging_storage_kind=nfs
  575. #openshift_logging_storage_access_modes=['ReadWriteOnce']
  576. #openshift_logging_storage_nfs_directory=/exports
  577. #openshift_logging_storage_nfs_options='*(rw,root_squash)'
  578. #openshift_logging_storage_volume_name=logging
  579. #openshift_logging_storage_volume_size=10Gi
  580. #openshift_logging_storage_labels={'storage': 'logging'}
  581. #
  582. # Option B - External NFS Host
  583. # NFS volume must already exist with path "nfs_directory/_volume_name" on
  584. # the storage_host. For example, the remote volume path using these
  585. # options would be "nfs.example.com:/exports/logging". "exports" is
  586. # is the name of the export served by the nfs server. "logging" is
  587. # the name of a directory inside of "/exports".
  588. #openshift_logging_storage_kind=nfs
  589. #openshift_logging_storage_access_modes=['ReadWriteOnce']
  590. #openshift_logging_storage_host=nfs.example.com
  591. #openshift_logging_storage_nfs_directory=/exports
  592. #openshift_logging_storage_volume_name=logging
  593. #openshift_logging_storage_volume_size=10Gi
  594. #openshift_logging_storage_labels={'storage': 'logging'}
  595. #
  596. # Option C - Dynamic -- If openshift supports dynamic volume provisioning for
  597. # your cloud platform use this.
  598. #openshift_logging_storage_kind=dynamic
  599. #
  600. # Option D - none -- Logging will use emptydir volumes which are destroyed when
  601. # pods are deleted
  602. #
  603. # Other Logging Options -- Common items you may wish to reconfigure, for the complete
  604. # list of options please see roles/openshift_logging/README.md
  605. #
  606. # Configure loggingPublicURL in the master config for aggregate logging, defaults
  607. # to kibana.{{ openshift_master_default_subdomain }}
  608. #openshift_logging_kibana_hostname=logging.apps.example.com
  609. # Configure the number of elastic search nodes, unless you're using dynamic provisioning
  610. # this value must be 1
  611. #openshift_logging_es_cluster_size=1
  612. # Prometheus deployment
  613. #
  614. # Currently prometheus deployment is disabled by default, enable it by setting this
  615. #openshift_hosted_prometheus_deploy=true
  616. #
  617. # Prometheus storage config
  618. # By default prometheus uses emptydir storage, if you want to persist you should
  619. # configure it to use pvc storage type. Each volume must be ReadWriteOnce.
  620. #openshift_prometheus_storage_type=emptydir
  621. #openshift_prometheus_alertmanager_storage_type=emptydir
  622. #openshift_prometheus_alertbuffer_storage_type=emptydir
  623. # Use PVCs for persistence
  624. #openshift_prometheus_storage_type=pvc
  625. #openshift_prometheus_alertmanager_storage_type=pvc
  626. #openshift_prometheus_alertbuffer_storage_type=pvc
  627. # Grafana deployment, requires Prometheus
  628. #openshift_hosted_grafana_deploy=true
  629. # Configure the multi-tenant SDN plugin (default is 'redhat/openshift-ovs-subnet')
  630. # os_sdn_network_plugin_name='redhat/openshift-ovs-multitenant'
  631. # Disable the OpenShift SDN plugin
  632. # openshift_use_openshift_sdn=False
  633. # Configure SDN cluster network and kubernetes service CIDR blocks. These
  634. # network blocks should be private and should not conflict with network blocks
  635. # in your infrastructure that pods may require access to. Can not be changed
  636. # after deployment.
  637. #
  638. # WARNING : Do not pick subnets that overlap with the default Docker bridge subnet of
  639. # 172.17.0.0/16. Your installation will fail and/or your configuration change will
  640. # cause the Pod SDN or Cluster SDN to fail.
  641. #
  642. # WORKAROUND : If you must use an overlapping subnet, you can configure a non conflicting
  643. # docker0 CIDR range by adding '--bip=192.168.2.1/24' to DOCKER_NETWORK_OPTIONS
  644. # environment variable located in /etc/sysconfig/docker-network.
  645. # When upgrading or scaling up the following must match whats in your master config!
  646. # Inventory: master yaml field
  647. # osm_cluster_network_cidr: clusterNetworkCIDR
  648. # openshift_portal_net: serviceNetworkCIDR
  649. # When installing osm_cluster_network_cidr and openshift_portal_net must be set.
  650. # Sane examples are provided below.
  651. #osm_cluster_network_cidr=10.128.0.0/14
  652. #openshift_portal_net=172.30.0.0/16
  653. # ExternalIPNetworkCIDRs controls what values are acceptable for the
  654. # service external IP field. If empty, no externalIP may be set. It
  655. # may contain a list of CIDRs which are checked for access. If a CIDR
  656. # is prefixed with !, IPs in that CIDR will be rejected. Rejections
  657. # will be applied first, then the IP checked against one of the
  658. # allowed CIDRs. You should ensure this range does not overlap with
  659. # your nodes, pods, or service CIDRs for security reasons.
  660. #openshift_master_external_ip_network_cidrs=['0.0.0.0/0']
  661. # IngressIPNetworkCIDR controls the range to assign ingress IPs from for
  662. # services of type LoadBalancer on bare metal. If empty, ingress IPs will not
  663. # be assigned. It may contain a single CIDR that will be allocated from. For
  664. # security reasons, you should ensure that this range does not overlap with
  665. # the CIDRs reserved for external IPs, nodes, pods, or services.
  666. #openshift_master_ingress_ip_network_cidr=172.46.0.0/16
  667. # Configure number of bits to allocate to each host's subnet e.g. 9
  668. # would mean a /23 network on the host.
  669. # When upgrading or scaling up the following must match whats in your master config!
  670. # Inventory: master yaml field
  671. # osm_host_subnet_length: hostSubnetLength
  672. # When installing osm_host_subnet_length must be set. A sane example is provided below.
  673. #osm_host_subnet_length=9
  674. # Configure master API and console ports.
  675. #openshift_master_api_port=8443
  676. #openshift_master_console_port=8443
  677. # set exact RPM version (include - prefix)
  678. #openshift_pkg_version=-3.9.0
  679. # you may also specify version and release, ie:
  680. #openshift_pkg_version=-3.9.0-0.126.0.git.0.9351aae.el7
  681. # Configure custom ca certificate
  682. #openshift_master_ca_certificate={'certfile': '/path/to/ca.crt', 'keyfile': '/path/to/ca.key'}
  683. #
  684. # NOTE: CA certificate will not be replaced with existing clusters.
  685. # This option may only be specified when creating a new cluster or
  686. # when redeploying cluster certificates with the redeploy-certificates
  687. # playbook.
  688. # Configure custom named certificates (SNI certificates)
  689. #
  690. # https://docs.openshift.org/latest/install_config/certificate_customization.html
  691. # https://docs.openshift.com/enterprise/latest/install_config/certificate_customization.html
  692. #
  693. # NOTE: openshift_master_named_certificates is cached on masters and is an
  694. # additive fact, meaning that each run with a different set of certificates
  695. # will add the newly provided certificates to the cached set of certificates.
  696. #
  697. # An optional CA may be specified for each named certificate. CAs will
  698. # be added to the OpenShift CA bundle which allows for the named
  699. # certificate to be served for internal cluster communication.
  700. #
  701. # If you would like openshift_master_named_certificates to be overwritten with
  702. # the provided value, specify openshift_master_overwrite_named_certificates.
  703. #openshift_master_overwrite_named_certificates=true
  704. #
  705. # Provide local certificate paths which will be deployed to masters
  706. #openshift_master_named_certificates=[{"certfile": "/path/to/custom1.crt", "keyfile": "/path/to/custom1.key", "cafile": "/path/to/custom-ca1.crt"}]
  707. #
  708. # Detected names may be overridden by specifying the "names" key
  709. #openshift_master_named_certificates=[{"certfile": "/path/to/custom1.crt", "keyfile": "/path/to/custom1.key", "names": ["public-master-host.com"], "cafile": "/path/to/custom-ca1.crt"}]
  710. #
  711. # Add a trusted CA to all pods, copies from the control host, may be multiple
  712. # certs in one file
  713. #openshift_additional_ca=/path/to/additional-ca.crt
  714. # Session options
  715. #openshift_master_session_name=ssn
  716. #openshift_master_session_max_seconds=3600
  717. # An authentication and encryption secret will be generated if secrets
  718. # are not provided. If provided, openshift_master_session_auth_secrets
  719. # and openshift_master_encryption_secrets must be equal length.
  720. #
  721. # Signing secrets, used to authenticate sessions using
  722. # HMAC. Recommended to use secrets with 32 or 64 bytes.
  723. #openshift_master_session_auth_secrets=['DONT+USE+THIS+SECRET+b4NV+pmZNSO']
  724. #
  725. # Encrypting secrets, used to encrypt sessions. Must be 16, 24, or 32
  726. # characters long, to select AES-128, AES-192, or AES-256.
  727. #openshift_master_session_encryption_secrets=['DONT+USE+THIS+SECRET+b4NV+pmZNSO']
  728. # configure how often node iptables rules are refreshed
  729. #openshift_node_iptables_sync_period=5s
  730. # Configure nodeIP in the node config
  731. # This is needed in cases where node traffic is desired to go over an
  732. # interface other than the default network interface.
  733. #openshift_set_node_ip=True
  734. #openshift_node_kubelet_args is deprecated, use node config edits instead
  735. # Configure logrotate scripts
  736. # See: https://github.com/nickhammond/ansible-logrotate
  737. #logrotate_scripts=[{"name": "syslog", "path": "/var/log/cron\n/var/log/maillog\n/var/log/messages\n/var/log/secure\n/var/log/spooler\n", "options": ["daily", "rotate 7", "compress", "sharedscripts", "missingok"], "scripts": {"postrotate": "/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true"}}]
  738. # The OpenShift-Ansible installer will fail when it detects that the
  739. # value of openshift_hostname resolves to an IP address not bound to any local
  740. # interfaces. This mis-configuration is problematic for any pod leveraging host
  741. # networking and liveness or readiness probes.
  742. # Setting this variable to false will override that check.
  743. #openshift_hostname_check=true
  744. # openshift_use_dnsmasq is deprecated. This must be true, or installs will fail
  745. # in versions >= 3.6
  746. #openshift_use_dnsmasq=False
  747. # Define an additional dnsmasq.conf file to deploy to /etc/dnsmasq.d/openshift-ansible.conf
  748. # This is useful for POC environments where DNS may not actually be available yet or to set
  749. # options like 'strict-order' to alter dnsmasq configuration.
  750. #openshift_node_dnsmasq_additional_config_file=/home/bob/ose-dnsmasq.conf
  751. # Global Proxy Configuration
  752. # These options configure HTTP_PROXY, HTTPS_PROXY, and NOPROXY environment
  753. # variables for docker and master services.
  754. #
  755. # Hosts in the openshift_no_proxy list will NOT use any globally
  756. # configured HTTP(S)_PROXYs. openshift_no_proxy accepts domains
  757. # (.example.com), hosts (example.com), and IP addresses.
  758. #openshift_http_proxy=http://USER:PASSWORD@IPADDR:PORT
  759. #openshift_https_proxy=https://USER:PASSWORD@IPADDR:PORT
  760. #openshift_no_proxy='.hosts.example.com,some-host.com'
  761. #
  762. # Most environments don't require a proxy between openshift masters, nodes, and
  763. # etcd hosts. So automatically add those hostnames to the openshift_no_proxy list.
  764. # If all of your hosts share a common domain you may wish to disable this and
  765. # specify that domain above instead.
  766. #
  767. # For example, having hosts with FQDNs: m1.ex.com, n1.ex.com, and
  768. # n2.ex.com, one would simply add '.ex.com' to the openshift_no_proxy
  769. # variable (above) and set this value to False
  770. #openshift_generate_no_proxy_hosts=True
  771. #
  772. # These options configure the BuildDefaults admission controller which injects
  773. # configuration into Builds. Proxy related values will default to the global proxy
  774. # config values. You only need to set these if they differ from the global proxy settings.
  775. # See BuildDefaults documentation at
  776. # https://docs.openshift.org/latest/admin_guide/build_defaults_overrides.html
  777. #openshift_builddefaults_http_proxy=http://USER:PASSWORD@HOST:PORT
  778. #openshift_builddefaults_https_proxy=https://USER:PASSWORD@HOST:PORT
  779. #openshift_builddefaults_no_proxy=mycorp.com
  780. #openshift_builddefaults_git_http_proxy=http://USER:PASSWORD@HOST:PORT
  781. #openshift_builddefaults_git_https_proxy=https://USER:PASSWORD@HOST:PORT
  782. #openshift_builddefaults_git_no_proxy=mycorp.com
  783. #openshift_builddefaults_image_labels=[{'name':'imagelabelname1','value':'imagelabelvalue1'}]
  784. #openshift_builddefaults_nodeselectors={'nodelabel1':'nodelabelvalue1'}
  785. #openshift_builddefaults_annotations={'annotationkey1':'annotationvalue1'}
  786. #openshift_builddefaults_resources_requests_cpu=100m
  787. #openshift_builddefaults_resources_requests_memory=256Mi
  788. #openshift_builddefaults_resources_limits_cpu=1000m
  789. #openshift_builddefaults_resources_limits_memory=512Mi
  790. # Or you may optionally define your own build defaults configuration serialized as json
  791. #openshift_builddefaults_json='{"BuildDefaults":{"configuration":{"apiVersion":"v1","env":[{"name":"HTTP_PROXY","value":"http://proxy.example.com.redhat.com:3128"},{"name":"NO_PROXY","value":"ose3-master.example.com"}],"gitHTTPProxy":"http://proxy.example.com:3128","gitNoProxy":"ose3-master.example.com","kind":"BuildDefaultsConfig"}}}'
  792. # These options configure the BuildOverrides admission controller which injects
  793. # configuration into Builds.
  794. # See BuildOverrides documentation at
  795. # https://docs.openshift.org/latest/admin_guide/build_defaults_overrides.html
  796. #openshift_buildoverrides_force_pull=true
  797. #openshift_buildoverrides_image_labels=[{'name':'imagelabelname1','value':'imagelabelvalue1'}]
  798. #openshift_buildoverrides_nodeselectors={'nodelabel1':'nodelabelvalue1'}
  799. #openshift_buildoverrides_annotations={'annotationkey1':'annotationvalue1'}
  800. #openshift_buildoverrides_tolerations=[{'key':'mykey1','value':'myvalue1','effect':'NoSchedule','operator':'Equal'}]
  801. # Or you may optionally define your own build overrides configuration serialized as json
  802. #openshift_buildoverrides_json='{"BuildOverrides":{"configuration":{"apiVersion":"v1","kind":"BuildDefaultsConfig","forcePull":"true"}}}'
  803. # Enable service catalog
  804. #openshift_enable_service_catalog=true
  805. # Enable template service broker (requires service catalog to be enabled, above)
  806. #template_service_broker_install=true
  807. # Specify an openshift_service_catalog image
  808. # (defaults for origin and openshift-enterprise, repsectively)
  809. #openshift_service_catalog_image="docker.io/openshift/origin-service-catalog:{{ openshift_image_tag }}""
  810. #openshift_service_catalog_image="registry.access.redhat.com/openshift3/ose-service-catalog:{{ openshift_image_tag }}"
  811. # TSB image tag
  812. #template_service_broker_version='v3.9'
  813. # Configure one of more namespaces whose templates will be served by the TSB
  814. #openshift_template_service_broker_namespaces=['openshift']
  815. # masterConfig.volumeConfig.dynamicProvisioningEnabled, configurable as of 1.2/3.2, enabled by default
  816. #openshift_master_dynamic_provisioning_enabled=True
  817. # Admission plugin config
  818. #openshift_master_admission_plugin_config={"ProjectRequestLimit":{"configuration":{"apiVersion":"v1","kind":"ProjectRequestLimitConfig","limits":[{"selector":{"admin":"true"}},{"maxProjects":"1"}]}},"PodNodeConstraints":{"configuration":{"apiVersion":"v1","kind":"PodNodeConstraintsConfig"}}}
  819. # Configure usage of openshift_clock role.
  820. #openshift_clock_enabled=true
  821. # OpenShift Per-Service Environment Variables
  822. # Environment variables are added to /etc/sysconfig files for
  823. # each OpenShift node.
  824. # API and controllers environment variables are merged in single
  825. # master environments.
  826. #openshift_node_env_vars={"ENABLE_HTTP2": "true"}
  827. # Enable API service auditing
  828. #openshift_master_audit_config={"enabled": "true"}
  829. #
  830. # In case you want more advanced setup for the auditlog you can
  831. # use this line.
  832. # The directory in "auditFilePath" will be created if it's not
  833. # exist
  834. #openshift_master_audit_config={"enabled": "true", "auditFilePath": "/var/lib/origin/openpaas-oscp-audit/openpaas-oscp-audit.log", "maximumFileRetentionDays": "14", "maximumFileSizeMegabytes": "500", "maximumRetainedFiles": "5"}
  835. # Enable origin repos that point at Centos PAAS SIG, defaults to true, only used
  836. # by openshift_deployment_type=origin
  837. #openshift_enable_origin_repo=false
  838. # Validity of the auto-generated OpenShift certificates in days.
  839. # See also openshift_hosted_registry_cert_expire_days above.
  840. #
  841. #openshift_ca_cert_expire_days=1825
  842. #openshift_node_cert_expire_days=730
  843. #openshift_master_cert_expire_days=730
  844. # Validity of the auto-generated external etcd certificates in days.
  845. # Controls validity for etcd CA, peer, server and client certificates.
  846. #
  847. #etcd_ca_default_days=1825
  848. #
  849. # ServiceAccountConfig:LimitSecretRefences rejects pods that reference secrets their service accounts do not reference
  850. # openshift_master_saconfig_limitsecretreferences=false
  851. # Upgrade Control
  852. #
  853. # By default nodes are upgraded in a serial manner one at a time and all failures
  854. # are fatal, one set of variables for normal nodes, one set of variables for
  855. # nodes that are part of control plane as the number of hosts may be different
  856. # in those two groups.
  857. #openshift_upgrade_nodes_serial=1
  858. #openshift_upgrade_nodes_max_fail_percentage=0
  859. #openshift_upgrade_control_plane_nodes_serial=1
  860. #openshift_upgrade_control_plane_nodes_max_fail_percentage=0
  861. #
  862. # You can specify the number of nodes to upgrade at once. We do not currently
  863. # attempt to verify that you have capacity to drain this many nodes at once
  864. # so please be careful when specifying these values. You should also verify that
  865. # the expected number of nodes are all schedulable and ready before starting an
  866. # upgrade. If it's not possible to drain the requested nodes the upgrade will
  867. # stall indefinitely until the drain is successful.
  868. #
  869. # If you're upgrading more than one node at a time you can specify the maximum
  870. # percentage of failure within the batch before the upgrade is aborted. Any
  871. # nodes that do fail are ignored for the rest of the playbook run and you should
  872. # take care to investigate the failure and return the node to service so that
  873. # your cluster.
  874. #
  875. # The percentage must exceed the value, this would fail on two failures
  876. # openshift_upgrade_nodes_serial=4 openshift_upgrade_nodes_max_fail_percentage=49
  877. # where as this would not
  878. # openshift_upgrade_nodes_serial=4 openshift_upgrade_nodes_max_fail_percentage=50
  879. #
  880. # A timeout to wait for nodes to drain pods can be specified to ensure that the
  881. # upgrade continues even if nodes fail to drain pods in the allowed time. The
  882. # default value of 0 will wait indefinitely allowing the admin to investigate
  883. # the root cause and ensuring that disruption budgets are respected. If the
  884. # a timeout of 0 is used there will also be one attempt to re-try draining the
  885. # node. If a non zero timeout is specified there will be no attempt to retry.
  886. #openshift_upgrade_nodes_drain_timeout=0
  887. #
  888. # Multiple data migrations take place and if they fail they will fail the upgrade
  889. # You may wish to disable these or make them non fatal
  890. #
  891. # openshift_upgrade_pre_storage_migration_enabled=true
  892. # openshift_upgrade_pre_storage_migration_fatal=true
  893. # openshift_upgrade_post_storage_migration_enabled=true
  894. # openshift_upgrade_post_storage_migration_fatal=false
  895. ######################################################################
  896. # CloudForms/ManageIQ (CFME/MIQ) Configuration
  897. # See the readme for full descriptions and getting started
  898. # instructions: ../../roles/openshift_management/README.md or go directly to
  899. # their definitions: ../../roles/openshift_management/defaults/main.yml
  900. # ../../roles/openshift_management/vars/main.yml
  901. #
  902. # Namespace for the CFME project
  903. #openshift_management_project: openshift-management
  904. # Namespace/project description
  905. #openshift_management_project_description: CloudForms Management Engine
  906. # Choose 'miq-template' for a podified database install
  907. # Choose 'miq-template-ext-db' for an external database install
  908. #
  909. # If you are using the miq-template-ext-db template then you must add
  910. # the required database parameters to the
  911. # openshift_management_template_parameters variable.
  912. #openshift_management_app_template: miq-template
  913. # Allowed options: nfs, nfs_external, preconfigured, cloudprovider.
  914. #openshift_management_storage_class: nfs
  915. # [OPTIONAL] - If you are using an EXTERNAL NFS server, such as a
  916. # netapp appliance, then you must set the hostname here. Leave the
  917. # value as 'false' if you are not using external NFS.
  918. #openshift_management_storage_nfs_external_hostname: false
  919. # [OPTIONAL] - If you are using external NFS then you must set the base
  920. # path to the exports location here.
  921. #
  922. # Additionally: EXTERNAL NFS REQUIRES that YOU CREATE the nfs exports
  923. # that will back the application PV and optionally the database
  924. # pv. Export path definitions, relative to
  925. # {{ openshift_management_storage_nfs_base_dir }}
  926. #
  927. # LOCAL NFS NOTE:
  928. #
  929. # You may may also change this value if you want to change the default
  930. # path used for local NFS exports.
  931. #openshift_management_storage_nfs_base_dir: /exports
  932. # LOCAL NFS NOTE:
  933. #
  934. # You may override the automatically selected LOCAL NFS server by
  935. # setting this variable. Useful for testing specific task files.
  936. #openshift_management_storage_nfs_local_hostname: false
  937. # These are the default values for the username and password of the
  938. # management app. Changing these values in your inventory will not
  939. # change your username or password. You should only need to change
  940. # these values in your inventory if you already changed the actual
  941. # name and password AND are trying to use integration scripts.
  942. #
  943. # For example, adding this cluster as a container provider,
  944. # playbooks/openshift-management/add_container_provider.yml
  945. #openshift_management_username: admin
  946. #openshift_management_password: smartvm
  947. # A hash of parameters you want to override or set in the
  948. # miq-template.yaml or miq-template-ext-db.yaml templates. Set this in
  949. # your inventory file as a simple hash. Acceptable values are defined
  950. # under the .parameters list in files/miq-template{-ext-db}.yaml
  951. # Example:
  952. #
  953. # openshift_management_template_parameters={'APPLICATION_MEM_REQ': '512Mi'}
  954. #openshift_management_template_parameters: {}
  955. # Firewall configuration
  956. # You can open additional firewall ports by defining them as a list. of service
  957. # names and ports/port ranges for either masters or nodes.
  958. #openshift_master_open_ports=[{"service":"svc1","port":"11/tcp"}]
  959. #openshift_node_open_ports=[{"service":"svc2","port":"12-13/tcp"},{"service":"svc3","port":"14/udp"}]
  960. # Service port node range
  961. #openshift_node_port_range=30000-32767
  962. # Enable unsupported configurations, things that will yield a partially
  963. # functioning cluster but would not be supported for production use
  964. #openshift_enable_unsupported_configurations=false