hosts.ose.example 36 KB

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