hosts.ose.example 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886
  1. # This is an example of a bring your own (byo) 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_ssh_user=root
  18. # If ansible_ssh_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=openshift-enterprise
  25. # Specify the generic release of OpenShift to install. This is used mainly just during installation, after which we
  26. # rely on the version running on the first master. Works best for containerized installs where we can usually
  27. # use this to lookup the latest exact version of the container images, which is the tag actually used to configure
  28. # the cluster. For RPM installations we just verify the version detected in your configured repos matches this
  29. # release.
  30. openshift_release=v3.6
  31. # Specify an exact container image tag to install or configure.
  32. # WARNING: This value will be used for all hosts in containerized environments, even those that have another version installed.
  33. # This could potentially trigger an upgrade and downtime, so be careful with modifying this value after the cluster is set up.
  34. #openshift_image_tag=v3.6.0
  35. # Specify an exact rpm version to install or configure.
  36. # WARNING: This value will be used for all hosts in RPM based environments, even those that have another version installed.
  37. # This could potentially trigger an upgrade and downtime, so be careful with modifying this value after the cluster is set up.
  38. #openshift_pkg_version=-3.6.0
  39. # This enables all the system containers except for docker:
  40. #openshift_use_system_containers=False
  41. #
  42. # But you can choose separately each component that must be a
  43. # system container:
  44. #
  45. #openshift_use_openvswitch_system_container=False
  46. #openshift_use_node_system_container=False
  47. #openshift_use_master_system_container=False
  48. #openshift_use_etcd_system_container=False
  49. # Install the openshift examples
  50. #openshift_install_examples=true
  51. # Configure logoutURL in the master config for console customization
  52. # See: https://docs.openshift.org/latest/install_config/web_console_customization.html#changing-the-logout-url
  53. #openshift_master_logout_url=http://example.com
  54. # Configure extensionScripts in the master config for console customization
  55. # See: https://docs.openshift.org/latest/install_config/web_console_customization.html#loading-custom-scripts-and-stylesheets
  56. #openshift_master_extension_scripts=['/path/to/script1.js','/path/to/script2.js']
  57. # Configure extensionStylesheets in the master config for console customization
  58. # See: https://docs.openshift.org/latest/install_config/web_console_customization.html#loading-custom-scripts-and-stylesheets
  59. #openshift_master_extension_stylesheets=['/path/to/stylesheet1.css','/path/to/stylesheet2.css']
  60. # Configure extensions in the master config for console customization
  61. # See: https://docs.openshift.org/latest/install_config/web_console_customization.html#serving-static-files
  62. #openshift_master_extensions=[{'name': 'images', 'sourceDirectory': '/path/to/my_images'}]
  63. # Configure extensions in the master config for console customization
  64. # See: https://docs.openshift.org/latest/install_config/web_console_customization.html#serving-static-files
  65. #openshift_master_oauth_template=/path/to/login-template.html
  66. # Configure imagePolicyConfig in the master config
  67. # See: https://godoc.org/github.com/openshift/origin/pkg/cmd/server/api#ImagePolicyConfig
  68. #openshift_master_image_policy_config={"maxImagesBulkImportedPerRepository": 3, "disableScheduledImport": true}
  69. # Configure master API rate limits for external clients
  70. #openshift_master_external_ratelimit_qps=200
  71. #openshift_master_external_ratelimit_burst=400
  72. # Configure master API rate limits for loopback clients
  73. #openshift_master_loopback_ratelimit_qps=300
  74. #openshift_master_loopback_ratelimit_burst=600
  75. # Docker Configuration
  76. # Add additional, insecure, and blocked registries to global docker configuration
  77. # For enterprise deployment types we ensure that registry.access.redhat.com is
  78. # included if you do not include it
  79. #openshift_docker_additional_registries=registry.example.com
  80. #openshift_docker_insecure_registries=registry.example.com
  81. #openshift_docker_blocked_registries=registry.hacker.com
  82. # Disable pushing to dockerhub
  83. #openshift_docker_disable_push_dockerhub=True
  84. # Use Docker inside a System Container. Note that this is a tech preview and should
  85. # not be used to upgrade!
  86. # The following options for docker are ignored:
  87. # - docker_version
  88. # - docker_upgrade
  89. # The following options must not be used
  90. # - openshift_docker_options
  91. #openshift_docker_use_system_container=False
  92. # Force the registry to use for the system container. By default the registry
  93. # will be built off of the deployment type and ansible_distribution. Only
  94. # use this option if you are sure you know what you are doing!
  95. #openshift_docker_systemcontainer_image_registry_override="registry.example.com"
  96. # Items added, as is, to end of /etc/sysconfig/docker OPTIONS
  97. # Default value: "--log-driver=journald"
  98. #openshift_docker_options="-l warn --ipv6=false"
  99. # Specify exact version of Docker to configure or upgrade to.
  100. # Downgrades are not supported and will error out. Be careful when upgrading docker from < 1.10 to > 1.10.
  101. # docker_version="1.12.1"
  102. # Skip upgrading Docker during an OpenShift upgrade, leaves the current Docker version alone.
  103. # docker_upgrade=False
  104. # Specify exact version of etcd to configure or upgrade to.
  105. # etcd_version="3.1.0"
  106. # Enable etcd debug logging, defaults to false
  107. # etcd_debug=true
  108. # Set etcd log levels by package
  109. # etcd_log_package_levels="etcdserver=WARNING,security=DEBUG"
  110. # Upgrade Hooks
  111. #
  112. # Hooks are available to run custom tasks at various points during a cluster
  113. # upgrade. Each hook should point to a file with Ansible tasks defined. Suggest using
  114. # absolute paths, if not the path will be treated as relative to the file where the
  115. # hook is actually used.
  116. #
  117. # Tasks to run before each master is upgraded.
  118. # openshift_master_upgrade_pre_hook=/usr/share/custom/pre_master.yml
  119. #
  120. # Tasks to run to upgrade the master. These tasks run after the main openshift-ansible
  121. # upgrade steps, but before we restart system/services.
  122. # openshift_master_upgrade_hook=/usr/share/custom/master.yml
  123. #
  124. # Tasks to run after each master is upgraded and system/services have been restarted.
  125. # openshift_master_upgrade_post_hook=/usr/share/custom/post_master.yml
  126. # Alternate image format string, useful if you've got your own registry mirror
  127. # Configure this setting just on node or master
  128. #oreg_url_master=example.com/openshift3/ose-${component}:${version}
  129. #oreg_url_node=example.com/openshift3/ose-${component}:${version}
  130. # For setting the configuration globally
  131. #oreg_url=example.com/openshift3/ose-${component}:${version}
  132. # If oreg_url points to a registry other than registry.access.redhat.com we can
  133. # modify image streams to point at that registry by setting the following to true
  134. #openshift_examples_modify_imagestreams=true
  135. # Additional yum repos to install
  136. #openshift_additional_repos=[{'id': 'ose-devel', 'name': 'ose-devel', 'baseurl': 'http://example.com/puddle/build/AtomicOpenShift/3.1/latest/RH7-RHOSE-3.0/$basearch/os', 'enabled': 1, 'gpgcheck': 0}]
  137. # htpasswd auth
  138. openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/etc/origin/master/htpasswd'}]
  139. # Defining htpasswd users
  140. #openshift_master_htpasswd_users={'user1': '<pre-hashed password>', 'user2': '<pre-hashed password>'}
  141. # or
  142. #openshift_master_htpasswd_file=<path to local pre-generated htpasswd file>
  143. # Allow all auth
  144. #openshift_master_identity_providers=[{'name': 'allow_all', 'login': 'true', 'challenge': 'true', 'kind': 'AllowAllPasswordIdentityProvider'}]
  145. # LDAP auth
  146. #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'}]
  147. #
  148. # Configure LDAP CA certificate
  149. # Specify either the ASCII contents of the certificate or the path to
  150. # the local file that will be copied to the remote host. CA
  151. # certificate contents will be copied to master systems and saved
  152. # within /etc/origin/master/ with a filename matching the "ca" key set
  153. # within the LDAPPasswordIdentityProvider.
  154. #
  155. #openshift_master_ldap_ca=<ca text>
  156. # or
  157. #openshift_master_ldap_ca_file=<path to local ca file to use>
  158. # OpenID auth
  159. #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"}]
  160. #
  161. # Configure OpenID CA certificate
  162. # Specify either the ASCII contents of the certificate or the path to
  163. # the local file that will be copied to the remote host. CA
  164. # certificate contents will be copied to master systems and saved
  165. # within /etc/origin/master/ with a filename matching the "ca" key set
  166. # within the OpenIDIdentityProvider.
  167. #
  168. #openshift_master_openid_ca=<ca text>
  169. # or
  170. #openshift_master_openid_ca_file=<path to local ca file to use>
  171. # Request header auth
  172. #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"]}]
  173. #
  174. # Configure request header CA certificate
  175. # Specify either the ASCII contents of the certificate or the path to
  176. # the local file that will be copied to the remote host. CA
  177. # certificate contents will be copied to master systems and saved
  178. # within /etc/origin/master/ with a filename matching the "clientCA"
  179. # key set within the RequestHeaderIdentityProvider.
  180. #
  181. #openshift_master_request_header_ca=<ca text>
  182. # or
  183. #openshift_master_request_header_ca_file=<path to local ca file to use>
  184. # CloudForms Management Engine (ManageIQ) App Install
  185. #
  186. # Enables installation of MIQ server. Recommended for dedicated
  187. # clusters only. See roles/openshift_cfme/README.md for instructions
  188. # and requirements.
  189. #openshift_cfme_install_app=False
  190. # Cloud Provider Configuration
  191. #
  192. # Note: You may make use of environment variables rather than store
  193. # sensitive configuration within the ansible inventory.
  194. # For example:
  195. #openshift_cloudprovider_aws_access_key="{{ lookup('env','AWS_ACCESS_KEY_ID') }}"
  196. #openshift_cloudprovider_aws_secret_key="{{ lookup('env','AWS_SECRET_ACCESS_KEY') }}"
  197. #
  198. # AWS
  199. #openshift_cloudprovider_kind=aws
  200. # Note: IAM profiles may be used instead of storing API credentials on disk.
  201. #openshift_cloudprovider_aws_access_key=aws_access_key_id
  202. #openshift_cloudprovider_aws_secret_key=aws_secret_access_key
  203. #
  204. # Openstack
  205. #openshift_cloudprovider_kind=openstack
  206. #openshift_cloudprovider_openstack_auth_url=http://openstack.example.com:35357/v2.0/
  207. #openshift_cloudprovider_openstack_username=username
  208. #openshift_cloudprovider_openstack_password=password
  209. #openshift_cloudprovider_openstack_domain_id=domain_id
  210. #openshift_cloudprovider_openstack_domain_name=domain_name
  211. #openshift_cloudprovider_openstack_tenant_id=tenant_id
  212. #openshift_cloudprovider_openstack_tenant_name=tenant_name
  213. #openshift_cloudprovider_openstack_region=region
  214. #openshift_cloudprovider_openstack_lb_subnet_id=subnet_id
  215. #
  216. # GCE
  217. #openshift_cloudprovider_kind=gce
  218. # Project Configuration
  219. #osm_project_request_message=''
  220. #osm_project_request_template=''
  221. #osm_mcs_allocator_range='s0:/2'
  222. #osm_mcs_labels_per_project=5
  223. #osm_uid_allocator_range='1000000000-1999999999/10000'
  224. # Configure additional projects
  225. #openshift_additional_projects={'my-project': {'default_node_selector': 'label=value'}}
  226. # Enable cockpit
  227. #osm_use_cockpit=true
  228. #
  229. # Set cockpit plugins
  230. #osm_cockpit_plugins=['cockpit-kubernetes']
  231. # Native high availability cluster method with optional load balancer.
  232. # If no lb group is defined, the installer assumes that a load balancer has
  233. # been preconfigured. For installation the value of
  234. # openshift_master_cluster_hostname must resolve to the load balancer
  235. # or to one or all of the masters defined in the inventory if no load
  236. # balancer is present.
  237. #openshift_master_cluster_method=native
  238. #openshift_master_cluster_hostname=openshift-ansible.test.example.com
  239. #openshift_master_cluster_public_hostname=openshift-ansible.test.example.com
  240. # Pacemaker high availability cluster method.
  241. # Pacemaker HA environment must be able to self provision the
  242. # configured VIP. For installation openshift_master_cluster_hostname
  243. # must resolve to the configured VIP.
  244. #openshift_master_cluster_method=pacemaker
  245. #openshift_master_cluster_password=openshift_cluster
  246. #openshift_master_cluster_vip=192.168.133.25
  247. #openshift_master_cluster_public_vip=192.168.133.25
  248. #openshift_master_cluster_hostname=openshift-ansible.test.example.com
  249. #openshift_master_cluster_public_hostname=openshift-ansible.test.example.com
  250. # Override the default controller lease ttl
  251. #osm_controller_lease_ttl=30
  252. # Configure controller arguments
  253. #osm_controller_args={'resource-quota-sync-period': ['10s']}
  254. # Configure api server arguments
  255. #osm_api_server_args={'max-requests-inflight': ['400']}
  256. # default subdomain to use for exposed routes
  257. #openshift_master_default_subdomain=apps.test.example.com
  258. # additional cors origins
  259. #osm_custom_cors_origins=['foo.example.com', 'bar.example.com']
  260. # default project node selector
  261. #osm_default_node_selector='region=primary'
  262. # Override the default pod eviction timeout
  263. #openshift_master_pod_eviction_timeout=5m
  264. # Override the default oauth tokenConfig settings:
  265. # openshift_master_access_token_max_seconds=86400
  266. # openshift_master_auth_token_max_seconds=500
  267. # Override master servingInfo.maxRequestsInFlight
  268. #openshift_master_max_requests_inflight=500
  269. # Override master and node servingInfo.minTLSVersion and .cipherSuites
  270. # valid TLS versions are VersionTLS10, VersionTLS11, VersionTLS12
  271. # example cipher suites override, valid cipher suites are https://golang.org/pkg/crypto/tls/#pkg-constants
  272. #openshift_master_min_tls_version=VersionTLS12
  273. #openshift_master_cipher_suites=['TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256', '...']
  274. #
  275. #openshift_node_min_tls_version=VersionTLS12
  276. #openshift_node_cipher_suites=['TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256', '...']
  277. # default storage plugin dependencies to install, by default the ceph and
  278. # glusterfs plugin dependencies will be installed, if available.
  279. #osn_storage_plugin_deps=['ceph','glusterfs']
  280. # OpenShift Router Options
  281. #
  282. # An OpenShift router will be created during install if there are
  283. # nodes present with labels matching the default router selector,
  284. # "region=infra". Set openshift_node_labels per node as needed in
  285. # order to label nodes.
  286. #
  287. # Example:
  288. # [nodes]
  289. # node.example.com openshift_node_labels="{'region': 'infra'}"
  290. #
  291. # Router selector (optional)
  292. # Router will only be created if nodes matching this label are present.
  293. # Default value: 'region=infra'
  294. #openshift_hosted_router_selector='region=infra'
  295. #
  296. # Router replicas (optional)
  297. # Unless specified, openshift-ansible will calculate the replica count
  298. # based on the number of nodes matching the openshift router selector.
  299. #openshift_hosted_router_replicas=2
  300. #
  301. # Router force subdomain (optional)
  302. # A router path format to force on all routes used by this router
  303. # (will ignore the route host value)
  304. #openshift_hosted_router_force_subdomain='${name}-${namespace}.apps.example.com'
  305. #
  306. # Router certificate (optional)
  307. # Provide local certificate paths which will be configured as the
  308. # router's default certificate.
  309. #openshift_hosted_router_certificate={"certfile": "/path/to/router.crt", "keyfile": "/path/to/router.key", "cafile": "/path/to/router-ca.crt"}
  310. #
  311. # Manage the OpenShift Router (optional)
  312. #openshift_hosted_manage_router=true
  313. #
  314. # Router sharding support has been added and can be achieved by supplying the correct
  315. # data to the inventory. The variable to house the data is openshift_hosted_routers
  316. # and is in the form of a list. If no data is passed then a default router will be
  317. # created. There are multiple combinations of router sharding. The one described
  318. # below supports routers on separate nodes.
  319. #openshift_hosted_routers:
  320. #- name: router1
  321. # stats_port: 1936
  322. # ports:
  323. # - 80:80
  324. # - 443:443
  325. # replicas: 1
  326. # namespace: default
  327. # serviceaccount: router
  328. # selector: type=router1
  329. # images: "openshift3/ose-${component}:${version}"
  330. # edits: []
  331. # certificate:
  332. # certfile: /path/to/certificate/abc.crt
  333. # keyfile: /path/to/certificate/abc.key
  334. # cafile: /path/to/certificate/ca.crt
  335. #- name: router2
  336. # stats_port: 1936
  337. # ports:
  338. # - 80:80
  339. # - 443:443
  340. # replicas: 1
  341. # namespace: default
  342. # serviceaccount: router
  343. # selector: type=router2
  344. # images: "openshift3/ose-${component}:${version}"
  345. # certificate:
  346. # certfile: /path/to/certificate/xyz.crt
  347. # keyfile: /path/to/certificate/xyz.key
  348. # cafile: /path/to/certificate/ca.crt
  349. # edits:
  350. # # ROUTE_LABELS sets the router to listen for routes
  351. # # tagged with the provided values
  352. # - key: spec.template.spec.containers[0].env
  353. # value:
  354. # name: ROUTE_LABELS
  355. # value: "route=external"
  356. # action: append
  357. # OpenShift Registry Console Options
  358. # Override the console image prefix for enterprise deployments, not used in origin
  359. # default is "registry.access.redhat.com/openshift3/" and the image appended is "registry-console"
  360. #openshift_cockpit_deployer_prefix=registry.example.com/myrepo/
  361. # Override image version, defaults to latest for origin, matches the product version for enterprise
  362. #openshift_cockpit_deployer_version=1.4.1
  363. # Openshift Registry Options
  364. #
  365. # An OpenShift registry will be created during install if there are
  366. # nodes present with labels matching the default registry selector,
  367. # "region=infra". Set openshift_node_labels per node as needed in
  368. # order to label nodes.
  369. #
  370. # Example:
  371. # [nodes]
  372. # node.example.com openshift_node_labels="{'region': 'infra'}"
  373. #
  374. # Registry selector (optional)
  375. # Registry will only be created if nodes matching this label are present.
  376. # Default value: 'region=infra'
  377. #openshift_hosted_registry_selector='region=infra'
  378. #
  379. # Registry replicas (optional)
  380. # Unless specified, openshift-ansible will calculate the replica count
  381. # based on the number of nodes matching the openshift registry selector.
  382. #openshift_hosted_registry_replicas=2
  383. #
  384. # Validity of the auto-generated certificate in days (optional)
  385. #openshift_hosted_registry_cert_expire_days=730
  386. #
  387. # Manage the OpenShift Registry (optional)
  388. #openshift_hosted_manage_registry=true
  389. # Registry Storage Options
  390. #
  391. # NFS Host Group
  392. # An NFS volume will be created with path "nfs_directory/volume_name"
  393. # on the host within the [nfs] host group. For example, the volume
  394. # path using these options would be "/exports/registry"
  395. #openshift_hosted_registry_storage_kind=nfs
  396. #openshift_hosted_registry_storage_access_modes=['ReadWriteMany']
  397. #openshift_hosted_registry_storage_nfs_directory=/exports
  398. #openshift_hosted_registry_storage_nfs_options='*(rw,root_squash)'
  399. #openshift_hosted_registry_storage_volume_name=registry
  400. #openshift_hosted_registry_storage_volume_size=10Gi
  401. #
  402. # External NFS Host
  403. # NFS volume must already exist with path "nfs_directory/_volume_name" on
  404. # the storage_host. For example, the remote volume path using these
  405. # options would be "nfs.example.com:/exports/registry"
  406. #openshift_hosted_registry_storage_kind=nfs
  407. #openshift_hosted_registry_storage_access_modes=['ReadWriteMany']
  408. #openshift_hosted_registry_storage_host=nfs.example.com
  409. #openshift_hosted_registry_storage_nfs_directory=/exports
  410. #openshift_hosted_registry_storage_volume_name=registry
  411. #openshift_hosted_registry_storage_volume_size=10Gi
  412. #
  413. # Openstack
  414. # Volume must already exist.
  415. #openshift_hosted_registry_storage_kind=openstack
  416. #openshift_hosted_registry_storage_access_modes=['ReadWriteOnce']
  417. #openshift_hosted_registry_storage_openstack_filesystem=ext4
  418. #openshift_hosted_registry_storage_openstack_volumeID=3a650b4f-c8c5-4e0a-8ca5-eaee11f16c57
  419. #openshift_hosted_registry_storage_volume_size=10Gi
  420. #
  421. # AWS S3
  422. #
  423. # S3 bucket must already exist.
  424. #openshift_hosted_registry_storage_kind=object
  425. #openshift_hosted_registry_storage_provider=s3
  426. #openshift_hosted_registry_storage_s3_accesskey=aws_access_key_id
  427. #openshift_hosted_registry_storage_s3_secretkey=aws_secret_access_key
  428. #openshift_hosted_registry_storage_s3_bucket=bucket_name
  429. #openshift_hosted_registry_storage_s3_region=bucket_region
  430. #openshift_hosted_registry_storage_s3_chunksize=26214400
  431. #openshift_hosted_registry_storage_s3_rootdirectory=/registry
  432. #openshift_hosted_registry_pullthrough=true
  433. #openshift_hosted_registry_acceptschema2=true
  434. #openshift_hosted_registry_enforcequota=true
  435. #
  436. # Any S3 service (Minio, ExoScale, ...): Basically the same as above
  437. # but with regionendpoint configured
  438. # S3 bucket must already exist.
  439. #openshift_hosted_registry_storage_kind=object
  440. #openshift_hosted_registry_storage_provider=s3
  441. #openshift_hosted_registry_storage_s3_accesskey=access_key_id
  442. #openshift_hosted_registry_storage_s3_secretkey=secret_access_key
  443. #openshift_hosted_registry_storage_s3_regionendpoint=https://myendpoint.example.com/
  444. #openshift_hosted_registry_storage_s3_bucket=bucket_name
  445. #openshift_hosted_registry_storage_s3_region=bucket_region
  446. #openshift_hosted_registry_storage_s3_chunksize=26214400
  447. #openshift_hosted_registry_storage_s3_rootdirectory=/registry
  448. #openshift_hosted_registry_pullthrough=true
  449. #openshift_hosted_registry_acceptschema2=true
  450. #openshift_hosted_registry_enforcequota=true
  451. #
  452. # Additional CloudFront Options. When using CloudFront all three
  453. # of the followingg variables must be defined.
  454. #openshift_hosted_registry_storage_s3_cloudfront_baseurl=https://myendpoint.cloudfront.net/
  455. #openshift_hosted_registry_storage_s3_cloudfront_privatekeyfile=/full/path/to/secret.pem
  456. #openshift_hosted_registry_storage_s3_cloudfront_keypairid=yourpairid
  457. # Metrics deployment
  458. # See: https://docs.openshift.com/enterprise/latest/install_config/cluster_metrics.html
  459. #
  460. # By default metrics are not automatically deployed, set this to enable them
  461. # openshift_hosted_metrics_deploy=true
  462. #
  463. # Storage Options
  464. # If openshift_hosted_metrics_storage_kind is unset then metrics will be stored
  465. # in an EmptyDir volume and will be deleted when the cassandra pod terminates.
  466. # Storage options A & B currently support only one cassandra pod which is
  467. # generally enough for up to 1000 pods. Additional volumes can be created
  468. # manually after the fact and metrics scaled per the docs.
  469. #
  470. # Option A - NFS Host Group
  471. # An NFS volume will be created with path "nfs_directory/volume_name"
  472. # on the host within the [nfs] host group. For example, the volume
  473. # path using these options would be "/exports/metrics"
  474. #openshift_hosted_metrics_storage_kind=nfs
  475. #openshift_hosted_metrics_storage_access_modes=['ReadWriteOnce']
  476. #openshift_hosted_metrics_storage_nfs_directory=/exports
  477. #openshift_hosted_metrics_storage_nfs_options='*(rw,root_squash)'
  478. #openshift_hosted_metrics_storage_volume_name=metrics
  479. #openshift_hosted_metrics_storage_volume_size=10Gi
  480. #openshift_hosted_metrics_storage_labels={'storage': 'metrics'}
  481. #
  482. # Option B - External NFS Host
  483. # NFS volume must already exist with path "nfs_directory/_volume_name" on
  484. # the storage_host. For example, the remote volume path using these
  485. # options would be "nfs.example.com:/exports/metrics"
  486. #openshift_hosted_metrics_storage_kind=nfs
  487. #openshift_hosted_metrics_storage_access_modes=['ReadWriteOnce']
  488. #openshift_hosted_metrics_storage_host=nfs.example.com
  489. #openshift_hosted_metrics_storage_nfs_directory=/exports
  490. #openshift_hosted_metrics_storage_volume_name=metrics
  491. #openshift_hosted_metrics_storage_volume_size=10Gi
  492. #openshift_hosted_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_hosted_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_hosted_metrics_public_url=https://hawkular-metrics.example.com/hawkular/metrics
  506. # Configure the prefix and version for the component images
  507. #openshift_hosted_metrics_deployer_prefix=registry.example.com:8888/openshift3/
  508. #openshift_hosted_metrics_deployer_version=3.6.0
  509. # Logging deployment
  510. #
  511. # Currently logging deployment is disabled by default, enable it by setting this
  512. #openshift_hosted_logging_deploy=true
  513. #
  514. # Logging storage config
  515. # Option A - NFS Host Group
  516. # An NFS volume will be created with path "nfs_directory/volume_name"
  517. # on the host within the [nfs] host group. For example, the volume
  518. # path using these options would be "/exports/logging"
  519. #openshift_hosted_logging_storage_kind=nfs
  520. #openshift_hosted_logging_storage_access_modes=['ReadWriteOnce']
  521. #openshift_hosted_logging_storage_nfs_directory=/exports
  522. #openshift_hosted_logging_storage_nfs_options='*(rw,root_squash)'
  523. #openshift_hosted_logging_storage_volume_name=logging
  524. #openshift_hosted_logging_storage_volume_size=10Gi
  525. #openshift_hosted_logging_storage_labels={'storage': 'logging'}
  526. #
  527. # Option B - External NFS Host
  528. # NFS volume must already exist with path "nfs_directory/_volume_name" on
  529. # the storage_host. For example, the remote volume path using these
  530. # options would be "nfs.example.com:/exports/logging"
  531. #openshift_hosted_logging_storage_kind=nfs
  532. #openshift_hosted_logging_storage_access_modes=['ReadWriteOnce']
  533. #openshift_hosted_logging_storage_host=nfs.example.com
  534. #openshift_hosted_logging_storage_nfs_directory=/exports
  535. #openshift_hosted_logging_storage_volume_name=logging
  536. #openshift_hosted_logging_storage_volume_size=10Gi
  537. #openshift_hosted_logging_storage_labels={'storage': 'logging'}
  538. #
  539. # Option C - Dynamic -- If openshift supports dynamic volume provisioning for
  540. # your cloud platform use this.
  541. #openshift_hosted_logging_storage_kind=dynamic
  542. #
  543. # Option D - none -- Logging will use emptydir volumes which are destroyed when
  544. # pods are deleted
  545. #
  546. # Other Logging Options -- Common items you may wish to reconfigure, for the complete
  547. # list of options please see roles/openshift_logging/README.md
  548. #
  549. # Configure loggingPublicURL in the master config for aggregate logging, defaults
  550. # to kibana.{{ openshift_master_default_subdomain }}
  551. #openshift_hosted_logging_hostname=logging.apps.example.com
  552. # Configure the number of elastic search nodes, unless you're using dynamic provisioning
  553. # this value must be 1
  554. #openshift_hosted_logging_elasticsearch_cluster_size=1
  555. # Configure the prefix and version for the component images
  556. #openshift_hosted_logging_deployer_prefix=registry.example.com:8888/openshift3/
  557. #openshift_hosted_logging_deployer_version=3.6.0
  558. # Configure the multi-tenant SDN plugin (default is 'redhat/openshift-ovs-subnet')
  559. # os_sdn_network_plugin_name='redhat/openshift-ovs-multitenant'
  560. # Disable the OpenShift SDN plugin
  561. # openshift_use_openshift_sdn=False
  562. # Configure SDN cluster network and kubernetes service CIDR blocks. These
  563. # network blocks should be private and should not conflict with network blocks
  564. # in your infrastructure that pods may require access to. Can not be changed
  565. # after deployment.
  566. #
  567. # WARNING : Do not pick subnets that overlap with the default Docker bridge subnet of
  568. # 172.17.0.0/16. Your installation will fail and/or your configuration change will
  569. # cause the Pod SDN or Cluster SDN to fail.
  570. #
  571. # WORKAROUND : If you must use an overlapping subnet, you can configure a non conflicting
  572. # docker0 CIDR range by adding '--bip=192.168.2.1/24' to DOCKER_NETWORK_OPTIONS
  573. # environment variable located in /etc/sysconfig/docker-network.
  574. #osm_cluster_network_cidr=10.128.0.0/14
  575. #openshift_portal_net=172.30.0.0/16
  576. # ExternalIPNetworkCIDRs controls what values are acceptable for the
  577. # service external IP field. If empty, no externalIP may be set. It
  578. # may contain a list of CIDRs which are checked for access. If a CIDR
  579. # is prefixed with !, IPs in that CIDR will be rejected. Rejections
  580. # will be applied first, then the IP checked against one of the
  581. # allowed CIDRs. You should ensure this range does not overlap with
  582. # your nodes, pods, or service CIDRs for security reasons.
  583. #openshift_master_external_ip_network_cidrs=['0.0.0.0/0']
  584. # IngressIPNetworkCIDR controls the range to assign ingress IPs from for
  585. # services of type LoadBalancer on bare metal. If empty, ingress IPs will not
  586. # be assigned. It may contain a single CIDR that will be allocated from. For
  587. # security reasons, you should ensure that this range does not overlap with
  588. # the CIDRs reserved for external IPs, nodes, pods, or services.
  589. #openshift_master_ingress_ip_network_cidr=172.46.0.0/16
  590. # Configure number of bits to allocate to each host’s subnet e.g. 9
  591. # would mean a /23 network on the host.
  592. #osm_host_subnet_length=9
  593. # Configure master API and console ports.
  594. #openshift_master_api_port=8443
  595. #openshift_master_console_port=8443
  596. # set RPM version for debugging purposes
  597. #openshift_pkg_version=-3.1.0.0
  598. # Configure custom ca certificate
  599. #openshift_master_ca_certificate={'certfile': '/path/to/ca.crt', 'keyfile': '/path/to/ca.key'}
  600. #
  601. # NOTE: CA certificate will not be replaced with existing clusters.
  602. # This option may only be specified when creating a new cluster or
  603. # when redeploying cluster certificates with the redeploy-certificates
  604. # playbook.
  605. # Configure custom named certificates (SNI certificates)
  606. #
  607. # https://docs.openshift.com/enterprise/latest/install_config/certificate_customization.html
  608. #
  609. # NOTE: openshift_master_named_certificates is cached on masters and is an
  610. # additive fact, meaning that each run with a different set of certificates
  611. # will add the newly provided certificates to the cached set of certificates.
  612. #
  613. # An optional CA may be specified for each named certificate. CAs will
  614. # be added to the OpenShift CA bundle which allows for the named
  615. # certificate to be served for internal cluster communication.
  616. #
  617. # If you would like openshift_master_named_certificates to be overwritten with
  618. # the provided value, specify openshift_master_overwrite_named_certificates.
  619. #openshift_master_overwrite_named_certificates=true
  620. #
  621. # Provide local certificate paths which will be deployed to masters
  622. #openshift_master_named_certificates=[{"certfile": "/path/to/custom1.crt", "keyfile": "/path/to/custom1.key", "cafile": "/path/to/custom-ca1.crt"}]
  623. #
  624. # Detected names may be overridden by specifying the "names" key
  625. #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"}]
  626. # Session options
  627. #openshift_master_session_name=ssn
  628. #openshift_master_session_max_seconds=3600
  629. # An authentication and encryption secret will be generated if secrets
  630. # are not provided. If provided, openshift_master_session_auth_secrets
  631. # and openshift_master_encryption_secrets must be equal length.
  632. #
  633. # Signing secrets, used to authenticate sessions using
  634. # HMAC. Recommended to use secrets with 32 or 64 bytes.
  635. #openshift_master_session_auth_secrets=['DONT+USE+THIS+SECRET+b4NV+pmZNSO']
  636. #
  637. # Encrypting secrets, used to encrypt sessions. Must be 16, 24, or 32
  638. # characters long, to select AES-128, AES-192, or AES-256.
  639. #openshift_master_session_encryption_secrets=['DONT+USE+THIS+SECRET+b4NV+pmZNSO']
  640. # configure how often node iptables rules are refreshed
  641. #openshift_node_iptables_sync_period=5s
  642. # Configure nodeIP in the node config
  643. # This is needed in cases where node traffic is desired to go over an
  644. # interface other than the default network interface.
  645. #openshift_set_node_ip=True
  646. # Force setting of system hostname when configuring OpenShift
  647. # This works around issues related to installations that do not have valid dns
  648. # entries for the interfaces attached to the host.
  649. #openshift_set_hostname=True
  650. # Configure dnsIP in the node config
  651. #openshift_dns_ip=172.30.0.1
  652. # Configure node kubelet arguments. pods-per-core is valid in OpenShift Origin 1.3 or OpenShift Container Platform 3.3 and later.
  653. #openshift_node_kubelet_args={'pods-per-core': ['10'], 'max-pods': ['250'], 'image-gc-high-threshold': ['90'], 'image-gc-low-threshold': ['80']}
  654. # Configure logrotate scripts
  655. # See: https://github.com/nickhammond/ansible-logrotate
  656. #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"}}]
  657. # openshift-ansible will wait indefinitely for your input when it detects that the
  658. # value of openshift_hostname resolves to an IP address not bound to any local
  659. # interfaces. This mis-configuration is problematic for any pod leveraging host
  660. # networking and liveness or readiness probes.
  661. # Setting this variable to true will override that check.
  662. #openshift_override_hostname_check=true
  663. # Configure dnsmasq for cluster dns, switch the host's local resolver to use dnsmasq
  664. # and configure node's dnsIP to point at the node's local dnsmasq instance. Defaults
  665. # to True for Origin 1.2 and OSE 3.2. False for 1.1 / 3.1 installs, this cannot
  666. # be used with 1.0 and 3.0.
  667. #openshift_use_dnsmasq=False
  668. # Define an additional dnsmasq.conf file to deploy to /etc/dnsmasq.d/openshift-ansible.conf
  669. # This is useful for POC environments where DNS may not actually be available yet or to set
  670. # options like 'strict-order' to alter dnsmasq configuration.
  671. #openshift_node_dnsmasq_additional_config_file=/home/bob/ose-dnsmasq.conf
  672. # Global Proxy Configuration
  673. # These options configure HTTP_PROXY, HTTPS_PROXY, and NOPROXY environment
  674. # variables for docker and master services.
  675. #openshift_http_proxy=http://USER:PASSWORD@IPADDR:PORT
  676. #openshift_https_proxy=https://USER:PASSWORD@IPADDR:PORT
  677. #openshift_no_proxy='.hosts.example.com,some-host.com'
  678. #
  679. # Most environments don't require a proxy between openshift masters, nodes, and
  680. # etcd hosts. So automatically add those hostnames to the openshift_no_proxy list.
  681. # If all of your hosts share a common domain you may wish to disable this and
  682. # specify that domain above.
  683. #openshift_generate_no_proxy_hosts=True
  684. #
  685. # These options configure the BuildDefaults admission controller which injects
  686. # configuration into Builds. Proxy related values will default to the global proxy
  687. # config values. You only need to set these if they differ from the global proxy settings.
  688. # See BuildDefaults documentation at
  689. # https://docs.openshift.org/latest/admin_guide/build_defaults_overrides.html
  690. #openshift_builddefaults_http_proxy=http://USER:PASSWORD@HOST:PORT
  691. #openshift_builddefaults_https_proxy=https://USER:PASSWORD@HOST:PORT
  692. #openshift_builddefaults_no_proxy=mycorp.com
  693. #openshift_builddefaults_git_http_proxy=http://USER:PASSWORD@HOST:PORT
  694. #openshift_builddefaults_git_https_proxy=https://USER:PASSWORD@HOST:PORT
  695. #openshift_builddefaults_git_no_proxy=mycorp.com
  696. #openshift_builddefaults_image_labels=[{'name':'imagelabelname1','value':'imagelabelvalue1'}]
  697. #openshift_builddefaults_nodeselectors={'nodelabel1':'nodelabelvalue1'}
  698. #openshift_builddefaults_annotations={'annotationkey1':'annotationvalue1'}
  699. #openshift_builddefaults_resources_requests_cpu=100m
  700. #openshift_builddefaults_resources_requests_memory=256m
  701. #openshift_builddefaults_resources_limits_cpu=1000m
  702. #openshift_builddefaults_resources_limits_memory=512m
  703. # Or you may optionally define your own build defaults configuration serialized as json
  704. #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"}}}'
  705. # These options configure the BuildOverrides admission controller which injects
  706. # configuration into Builds.
  707. # See BuildOverrides documentation at
  708. # https://docs.openshift.org/latest/admin_guide/build_defaults_overrides.html
  709. #openshift_buildoverrides_force_pull=true
  710. #openshift_buildoverrides_image_labels=[{'name':'imagelabelname1','value':'imagelabelvalue1'}]
  711. #openshift_buildoverrides_nodeselectors={'nodelabel1':'nodelabelvalue1'}
  712. #openshift_buildoverrides_annotations={'annotationkey1':'annotationvalue1'}
  713. # Or you may optionally define your own build overrides configuration serialized as json
  714. #openshift_buildoverrides_json='{"BuildOverrides":{"configuration":{"apiVersion":"v1","kind":"BuildDefaultsConfig","forcePull":"true"}}}'
  715. # Enable template service broker by specifying one of more namespaces whose
  716. # templates will be served by the broker
  717. #openshift_template_service_broker_namespaces=['openshift']
  718. # masterConfig.volumeConfig.dynamicProvisioningEnabled, configurable as of 1.2/3.2, enabled by default
  719. #openshift_master_dynamic_provisioning_enabled=False
  720. # Admission plugin config
  721. #openshift_master_admission_plugin_config={"ProjectRequestLimit":{"configuration":{"apiVersion":"v1","kind":"ProjectRequestLimitConfig","limits":[{"selector":{"admin":"true"}},{"maxProjects":"1"}]}},"PodNodeConstraints":{"configuration":{"apiVersion":"v1","kind":"PodNodeConstraintsConfig"}}}
  722. # Configure usage of openshift_clock role.
  723. #openshift_clock_enabled=true
  724. # OpenShift Per-Service Environment Variables
  725. # Environment variables are added to /etc/sysconfig files for
  726. # each OpenShift service: node, master (api and controllers).
  727. # API and controllers environment variables are merged in single
  728. # master environments.
  729. #openshift_master_api_env_vars={"ENABLE_HTTP2": "true"}
  730. #openshift_master_controllers_env_vars={"ENABLE_HTTP2": "true"}
  731. #openshift_node_env_vars={"ENABLE_HTTP2": "true"}
  732. # Enable API service auditing, available as of 3.2
  733. #openshift_master_audit_config={"enabled": true}
  734. #
  735. # In case you want more advanced setup for the auditlog you can
  736. # use this line.
  737. # The directory in "auditFilePath" will be created if it's not
  738. # exist
  739. #openshift_master_audit_config={"enabled": true, "auditFilePath": "/var/log/openpaas-oscp-audit/openpaas-oscp-audit.log", "maximumFileRetentionDays": 14, "maximumFileSizeMegabytes": 500, "maximumRetainedFiles": 5}
  740. # Validity of the auto-generated OpenShift certificates in days.
  741. # See also openshift_hosted_registry_cert_expire_days above.
  742. #
  743. #openshift_ca_cert_expire_days=1825
  744. #openshift_node_cert_expire_days=730
  745. #openshift_master_cert_expire_days=730
  746. # Validity of the auto-generated external etcd certificates in days.
  747. # Controls validity for etcd CA, peer, server and client certificates.
  748. #
  749. #etcd_ca_default_days=1825
  750. #
  751. # ServiceAccountConfig:LimitSecretRefences rejects pods that reference secrets their service accounts do not reference
  752. # openshift_master_saconfig_limitsecretreferences=false
  753. # Upgrade Control
  754. #
  755. # By default nodes are upgraded in a serial manner one at a time and all failures
  756. # are fatal, one set of variables for normal nodes, one set of variables for
  757. # nodes that are part of control plane as the number of hosts may be different
  758. # in those two groups.
  759. #openshift_upgrade_nodes_serial=1
  760. #openshift_upgrade_nodes_max_fail_percentage=0
  761. #openshift_upgrade_control_plane_nodes_serial=1
  762. #openshift_upgrade_control_plane_nodes_max_fail_percentage=0
  763. #
  764. # You can specify the number of nodes to upgrade at once. We do not currently
  765. # attempt to verify that you have capacity to drain this many nodes at once
  766. # so please be careful when specifying these values. You should also verify that
  767. # the expected number of nodes are all schedulable and ready before starting an
  768. # upgrade. If it's not possible to drain the requested nodes the upgrade will
  769. # stall indefinitely until the drain is successful.
  770. #
  771. # If you're upgrading more than one node at a time you can specify the maximum
  772. # percentage of failure within the batch before the upgrade is aborted. Any
  773. # nodes that do fail are ignored for the rest of the playbook run and you should
  774. # take care to investigate the failure and return the node to service so that
  775. # your cluster.
  776. #
  777. # The percentage must exceed the value, this would fail on two failures
  778. # openshift_upgrade_nodes_serial=4 openshift_upgrade_nodes_max_fail_percentage=49
  779. # where as this would not
  780. # openshift_upgrade_nodes_serial=4 openshift_upgrade_nodes_max_fail_percentage=50
  781. # host group for masters
  782. [masters]
  783. ose3-master[1:3]-ansible.test.example.com
  784. [etcd]
  785. ose3-etcd[1:3]-ansible.test.example.com
  786. # NOTE: Containerized load balancer hosts are not yet supported, if using a global
  787. # containerized=true host variable we must set to false.
  788. [lb]
  789. ose3-lb-ansible.test.example.com containerized=false
  790. # NOTE: Currently we require that masters be part of the SDN which requires that they also be nodes
  791. # However, in order to ensure that your masters are not burdened with running pods you should
  792. # make them unschedulable by adding openshift_schedulable=False any node that's also a master.
  793. [nodes]
  794. ose3-master[1:3]-ansible.test.example.com
  795. ose3-node[1:2]-ansible.test.example.com openshift_node_labels="{'region': 'primary', 'zone': 'default'}"