hosts.example 53 KB

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