hosts.example 55 KB

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