hosts.example 57 KB

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