hosts.example 54 KB

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