hosts.example 52 KB

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