hosts.ose.example 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547
  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.2
  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 loggingPublicURL in the master config for aggregate logging
  54. # See: https://docs.openshift.com/enterprise/latest/install_config/aggregate_logging.html
  55. #openshift_master_logging_public_url=https://kibana.example.com
  56. #
  57. # Configure imagePolicyConfig in the master config
  58. # See: https://godoc.org/github.com/openshift/origin/pkg/cmd/server/api#ImagePolicyConfig
  59. #openshift_master_image_policy_config={"maxImagesBulkImportedPerRepository": 3, "disableScheduledImport": true}
  60. # Docker Configuration
  61. # Add additional, insecure, and blocked registries to global docker configuration
  62. # For enterprise deployment types we ensure that registry.access.redhat.com is
  63. # included if you do not include it
  64. #openshift_docker_additional_registries=registry.example.com
  65. #openshift_docker_insecure_registries=registry.example.com
  66. #openshift_docker_blocked_registries=registry.hacker.com
  67. # Disable pushing to dockerhub
  68. #openshift_docker_disable_push_dockerhub=True
  69. # Items added, as is, to end of /etc/sysconfig/docker OPTIONS
  70. # Default value: "--log-driver=json-file --log-opt max-size=50m"
  71. #openshift_docker_options="-l warn --ipv6=false"
  72. # Specify exact version of Docker to configure or upgrade to.
  73. # Downgrades are not supported and will error out. Be careful when upgrading docker from < 1.10 to > 1.10.
  74. # docker_version="1.10.3"
  75. # Skip upgrading Docker during an OpenShift upgrade, leaves the current Docker version alone.
  76. # docker_upgrade=False
  77. # Alternate image format string, useful if you've got your own registry mirror
  78. #oreg_url=example.com/openshift3/ose-${component}:${version}
  79. # If oreg_url points to a registry other than registry.access.redhat.com we can
  80. # modify image streams to point at that registry by setting the following to true
  81. #openshift_examples_modify_imagestreams=true
  82. # Additional yum repos to install
  83. #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}]
  84. # htpasswd auth
  85. openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/etc/origin/master/htpasswd'}]
  86. # Defining htpasswd users
  87. #openshift_master_htpasswd_users={'user1': '<pre-hashed password>', 'user2': '<pre-hashed password>'}
  88. # or
  89. #openshift_master_htpasswd_file=<path to local pre-generated htpasswd file>
  90. # Allow all auth
  91. #openshift_master_identity_providers=[{'name': 'allow_all', 'login': 'true', 'challenge': 'true', 'kind': 'AllowAllPasswordIdentityProvider'}]
  92. # LDAP auth
  93. #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': '', 'insecure': 'false', 'url': 'ldap://ldap.example.com:389/ou=users,dc=example,dc=com?uid'}]
  94. # Configuring the ldap ca certificate
  95. #openshift_master_ldap_ca=<ca text>
  96. # or
  97. #openshift_master_ldap_ca_file=<path to local ca file to use>
  98. # Available variables for configuring certificates for other identity providers:
  99. #openshift_master_openid_ca
  100. #openshift_master_openid_ca_file
  101. #openshift_master_request_header_ca
  102. #openshift_master_request_header_ca_file
  103. # Cloud Provider Configuration
  104. #
  105. # Note: You may make use of environment variables rather than store
  106. # sensitive configuration within the ansible inventory.
  107. # For example:
  108. #openshift_cloudprovider_aws_access_key="{{ lookup('env','AWS_ACCESS_KEY_ID') }}"
  109. #openshift_cloudprovider_aws_secret_key="{{ lookup('env','AWS_SECRET_ACCESS_KEY') }}"
  110. #
  111. # AWS
  112. #openshift_cloudprovider_kind=aws
  113. # Note: IAM profiles may be used instead of storing API credentials on disk.
  114. #openshift_cloudprovider_aws_access_key=aws_access_key_id
  115. #openshift_cloudprovider_aws_secret_key=aws_secret_access_key
  116. #
  117. # Openstack
  118. #openshift_cloudprovider_kind=openstack
  119. #openshift_cloudprovider_openstack_auth_url=http://openstack.example.com:35357/v2.0/
  120. #openshift_cloudprovider_openstack_username=username
  121. #openshift_cloudprovider_openstack_password=password
  122. #openshift_cloudprovider_openstack_tenant_id=tenant_id
  123. #openshift_cloudprovider_openstack_tenant_name=tenant_name
  124. #openshift_cloudprovider_openstack_region=region
  125. #openshift_cloudprovider_openstack_lb_subnet_id=subnet_id
  126. # Project Configuration
  127. #osm_project_request_message=''
  128. #osm_project_request_template=''
  129. #osm_mcs_allocator_range='s0:/2'
  130. #osm_mcs_labels_per_project=5
  131. #osm_uid_allocator_range='1000000000-1999999999/10000'
  132. # Configure additional projects
  133. #openshift_additional_projects={'my-project': {'default_node_selector': 'label=value'}}
  134. # Enable cockpit
  135. #osm_use_cockpit=true
  136. #
  137. # Set cockpit plugins
  138. #osm_cockpit_plugins=['cockpit-kubernetes']
  139. # Native high availability cluster method with optional load balancer.
  140. # If no lb group is defined, the installer assumes that a load balancer has
  141. # been preconfigured. For installation the value of
  142. # openshift_master_cluster_hostname must resolve to the load balancer
  143. # or to one or all of the masters defined in the inventory if no load
  144. # balancer is present.
  145. #openshift_master_cluster_method=native
  146. #openshift_master_cluster_hostname=openshift-ansible.test.example.com
  147. #openshift_master_cluster_public_hostname=openshift-ansible.test.example.com
  148. # Pacemaker high availability cluster method.
  149. # Pacemaker HA environment must be able to self provision the
  150. # configured VIP. For installation openshift_master_cluster_hostname
  151. # must resolve to the configured VIP.
  152. #openshift_master_cluster_method=pacemaker
  153. #openshift_master_cluster_password=openshift_cluster
  154. #openshift_master_cluster_vip=192.168.133.25
  155. #openshift_master_cluster_public_vip=192.168.133.25
  156. #openshift_master_cluster_hostname=openshift-ansible.test.example.com
  157. #openshift_master_cluster_public_hostname=openshift-ansible.test.example.com
  158. # Override the default controller lease ttl
  159. #osm_controller_lease_ttl=30
  160. # Configure controller arguments
  161. #osm_controller_args={'resource-quota-sync-period': ['10s']}
  162. # Configure api server arguments
  163. #osm_api_server_args={'max-requests-inflight': ['400']}
  164. # default subdomain to use for exposed routes
  165. #openshift_master_default_subdomain=apps.test.example.com
  166. # additional cors origins
  167. #osm_custom_cors_origins=['foo.example.com', 'bar.example.com']
  168. # default project node selector
  169. #osm_default_node_selector='region=primary'
  170. # Override the default pod eviction timeout
  171. #openshift_master_pod_eviction_timeout=5m
  172. # Override the default oauth tokenConfig settings:
  173. # openshift_master_access_token_max_seconds=86400
  174. # openshift_master_auth_token_max_seconds=500
  175. # Override master servingInfo.maxRequestsInFlight
  176. #openshift_master_max_requests_inflight=500
  177. # default storage plugin dependencies to install, by default the ceph and
  178. # glusterfs plugin dependencies will be installed, if available.
  179. #osn_storage_plugin_deps=['ceph','glusterfs']
  180. # OpenShift Router Options
  181. #
  182. # An OpenShift router will be created during install if there are
  183. # nodes present with labels matching the default router selector,
  184. # "region=infra". Set openshift_node_labels per node as needed in
  185. # order to label nodes.
  186. #
  187. # Example:
  188. # [nodes]
  189. # node.example.com openshift_node_labels="{'region': 'infra'}"
  190. #
  191. # Router selector (optional)
  192. # Router will only be created if nodes matching this label are present.
  193. # Default value: 'region=infra'
  194. #openshift_hosted_router_selector='region=infra'
  195. #
  196. # Router replicas (optional)
  197. # Unless specified, openshift-ansible will calculate the replica count
  198. # based on the number of nodes matching the openshift router selector.
  199. #openshift_hosted_router_replicas=2
  200. #
  201. # Router force subdomain (optional)
  202. # A router path format to force on all routes used by this router
  203. # (will ignore the route host value)
  204. #openshift_hosted_router_force_subdomain='${name}-${namespace}.apps.example.com'
  205. #
  206. # Router certificate (optional)
  207. # Provide local certificate paths which will be configured as the
  208. # router's default certificate.
  209. #openshift_hosted_router_certificate={"certfile": "/path/to/router.crt", "keyfile": "/path/to/router.key", "cafile": "/path/to/router-ca.crt"}
  210. #
  211. # Disable management of the OpenShift Router
  212. #openshift_hosted_manage_router=false
  213. # Openshift Registry Options
  214. #
  215. # An OpenShift registry will be created during install if there are
  216. # nodes present with labels matching the default registry selector,
  217. # "region=infra". Set openshift_node_labels per node as needed in
  218. # order to label nodes.
  219. #
  220. # Example:
  221. # [nodes]
  222. # node.example.com openshift_node_labels="{'region': 'infra'}"
  223. #
  224. # Registry selector (optional)
  225. # Registry will only be created if nodes matching this label are present.
  226. # Default value: 'region=infra'
  227. #openshift_hosted_registry_selector='region=infra'
  228. #
  229. # Registry replicas (optional)
  230. # Unless specified, openshift-ansible will calculate the replica count
  231. # based on the number of nodes matching the openshift registry selector.
  232. #openshift_hosted_registry_replicas=2
  233. #
  234. # Disable management of the OpenShift Registry
  235. #openshift_hosted_manage_registry=false
  236. # Registry Storage Options
  237. #
  238. # NFS Host Group
  239. # An NFS volume will be created with path "nfs_directory/volume_name"
  240. # on the host within the [nfs] host group. For example, the volume
  241. # path using these options would be "/exports/registry"
  242. #openshift_hosted_registry_storage_kind=nfs
  243. #openshift_hosted_registry_storage_access_modes=['ReadWriteMany']
  244. #openshift_hosted_registry_storage_nfs_directory=/exports
  245. #openshift_hosted_registry_storage_nfs_options='*(rw,root_squash)'
  246. #openshift_hosted_registry_storage_volume_name=registry
  247. #openshift_hosted_registry_storage_volume_size=10Gi
  248. #
  249. # External NFS Host
  250. # NFS volume must already exist with path "nfs_directory/_volume_name" on
  251. # the storage_host. For example, the remote volume path using these
  252. # options would be "nfs.example.com:/exports/registry"
  253. #openshift_hosted_registry_storage_kind=nfs
  254. #openshift_hosted_registry_storage_access_modes=['ReadWriteMany']
  255. #openshift_hosted_registry_storage_host=nfs.example.com
  256. #openshift_hosted_registry_storage_nfs_directory=/exports
  257. #openshift_hosted_registry_storage_volume_name=registry
  258. #openshift_hosted_registry_storage_volume_size=10Gi
  259. #
  260. # Openstack
  261. # Volume must already exist.
  262. #openshift_hosted_registry_storage_kind=openstack
  263. #openshift_hosted_registry_storage_access_modes=['ReadWriteOnce']
  264. #openshift_hosted_registry_storage_openstack_filesystem=ext4
  265. #openshift_hosted_registry_storage_openstack_volumeID=3a650b4f-c8c5-4e0a-8ca5-eaee11f16c57
  266. #openshift_hosted_registry_storage_volume_size=10Gi
  267. #
  268. # AWS S3
  269. # S3 bucket must already exist.
  270. #openshift_hosted_registry_storage_kind=object
  271. #openshift_hosted_registry_storage_provider=s3
  272. #openshift_hosted_registry_storage_s3_accesskey=aws_access_key_id
  273. #openshift_hosted_registry_storage_s3_secretkey=aws_secret_access_key
  274. #openshift_hosted_registry_storage_s3_bucket=bucket_name
  275. #openshift_hosted_registry_storage_s3_region=bucket_region
  276. #openshift_hosted_registry_storage_s3_chunksize=26214400
  277. #openshift_hosted_registry_pullthrough=true
  278. # Metrics deployment
  279. # See: https://docs.openshift.com/enterprise/latest/install_config/cluster_metrics.html
  280. #
  281. # By default metrics are not automatically deployed, set this to enable them
  282. # openshift_hosted_metrics_deploy=true
  283. #
  284. # Storage Options
  285. # If openshift_hosted_metrics_storage_kind is unset then metrics will be stored
  286. # in an EmptyDir volume and will be deleted when the cassandra pod terminates.
  287. # Storage options A & B currently support only one cassandra pod which is
  288. # generally enough for up to 1000 pods. Additional volumes can be created
  289. # manually after the fact and metrics scaled per the docs.
  290. #
  291. # Option A - NFS Host Group
  292. # An NFS volume will be created with path "nfs_directory/volume_name"
  293. # on the host within the [nfs] host group. For example, the volume
  294. # path using these options would be "/exports/metrics"
  295. #openshift_hosted_metrics_storage_kind=nfs
  296. #openshift_hosted_metrics_storage_access_modes=['ReadWriteOnce']
  297. #openshift_hosted_metrics_storage_nfs_directory=/exports
  298. #openshift_hosted_metrics_storage_nfs_options='*(rw,root_squash)'
  299. #openshift_hosted_metrics_storage_volume_name=metrics
  300. #openshift_hosted_metrics_storage_volume_size=10Gi
  301. #
  302. # Option B - External NFS Host
  303. # NFS volume must already exist with path "nfs_directory/_volume_name" on
  304. # the storage_host. For example, the remote volume path using these
  305. # options would be "nfs.example.com:/exports/metrics"
  306. #openshift_hosted_metrics_storage_kind=nfs
  307. #openshift_hosted_metrics_storage_access_modes=['ReadWriteOnce']
  308. #openshift_hosted_metrics_storage_host=nfs.example.com
  309. #openshift_hosted_metrics_storage_nfs_directory=/exports
  310. #openshift_hosted_metrics_storage_volume_name=metrics
  311. #openshift_hosted_metrics_storage_volume_size=10Gi
  312. #
  313. # Option C - Dynamic -- If openshift supports dynamic volume provisioning for
  314. # your cloud platform use this.
  315. #openshift_hosted_metrics_storage_kind=dynamic
  316. #
  317. # Override metricsPublicURL in the master config for cluster metrics
  318. # Defaults to https://hawkular-metrics.{{openshift_master_default_subdomain}}/hawkular/metrics
  319. #openshift_hosted_metrics_public_url=https://hawkular-metrics.example.com/hawkular/metrics
  320. # Configure the multi-tenant SDN plugin (default is 'redhat/openshift-ovs-subnet')
  321. # os_sdn_network_plugin_name='redhat/openshift-ovs-multitenant'
  322. # Disable the OpenShift SDN plugin
  323. # openshift_use_openshift_sdn=False
  324. # Configure SDN cluster network and kubernetes service CIDR blocks. These
  325. # network blocks should be private and should not conflict with network blocks
  326. # in your infrastructure that pods may require access to. Can not be changed
  327. # after deployment.
  328. #osm_cluster_network_cidr=10.1.0.0/16
  329. #openshift_portal_net=172.30.0.0/16
  330. # ExternalIPNetworkCIDRs controls what values are acceptable for the
  331. # service external IP field. If empty, no externalIP may be set. It
  332. # may contain a list of CIDRs which are checked for access. If a CIDR
  333. # is prefixed with !, IPs in that CIDR will be rejected. Rejections
  334. # will be applied first, then the IP checked against one of the
  335. # allowed CIDRs. You should ensure this range does not overlap with
  336. # your nodes, pods, or service CIDRs for security reasons.
  337. #openshift_master_external_ip_network_cidrs=['0.0.0.0/0']
  338. # Configure number of bits to allocate to each host’s subnet e.g. 8
  339. # would mean a /24 network on the host.
  340. #osm_host_subnet_length=8
  341. # Configure master API and console ports.
  342. #openshift_master_api_port=8443
  343. #openshift_master_console_port=8443
  344. # set RPM version for debugging purposes
  345. #openshift_pkg_version=-3.1.0.0
  346. # Configure custom ca certificate
  347. #openshift_master_ca_certificate={'certfile': '/path/to/ca.crt', 'keyfile': '/path/to/ca.key'}
  348. #
  349. # NOTE: CA certificate will not be replaced with existing clusters.
  350. # This option may only be specified when creating a new cluster or
  351. # when redeploying cluster certificates with the redeploy-certificates
  352. # playbook. If replacing the CA certificate in an existing cluster
  353. # with a custom ca certificate, the following variable must also be
  354. # set.
  355. #openshift_certificates_redeploy_ca=true
  356. # Configure custom named certificates (SNI certificates)
  357. #
  358. # https://docs.openshift.com/enterprise/latest/install_config/certificate_customization.html
  359. #
  360. # NOTE: openshift_master_named_certificates is cached on masters and is an
  361. # additive fact, meaning that each run with a different set of certificates
  362. # will add the newly provided certificates to the cached set of certificates.
  363. #
  364. # An optional CA may be specified for each named certificate. CAs will
  365. # be added to the OpenShift CA bundle which allows for the named
  366. # certificate to be served for internal cluster communication.
  367. #
  368. # If you would like openshift_master_named_certificates to be overwritten with
  369. # the provided value, specify openshift_master_overwrite_named_certificates.
  370. #openshift_master_overwrite_named_certificates=true
  371. #
  372. # Provide local certificate paths which will be deployed to masters
  373. #openshift_master_named_certificates=[{"certfile": "/path/to/custom1.crt", "keyfile": "/path/to/custom1.key", "cafile": "/path/to/custom-ca1.crt"}]
  374. #
  375. # Detected names may be overridden by specifying the "names" key
  376. #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"}]
  377. # Session options
  378. #openshift_master_session_name=ssn
  379. #openshift_master_session_max_seconds=3600
  380. # An authentication and encryption secret will be generated if secrets
  381. # are not provided. If provided, openshift_master_session_auth_secrets
  382. # and openshift_master_encryption_secrets must be equal length.
  383. #
  384. # Signing secrets, used to authenticate sessions using
  385. # HMAC. Recommended to use secrets with 32 or 64 bytes.
  386. #openshift_master_session_auth_secrets=['DONT+USE+THIS+SECRET+b4NV+pmZNSO']
  387. #
  388. # Encrypting secrets, used to encrypt sessions. Must be 16, 24, or 32
  389. # characters long, to select AES-128, AES-192, or AES-256.
  390. #openshift_master_session_encryption_secrets=['DONT+USE+THIS+SECRET+b4NV+pmZNSO']
  391. # configure how often node iptables rules are refreshed
  392. #openshift_node_iptables_sync_period=5s
  393. # Configure nodeIP in the node config
  394. # This is needed in cases where node traffic is desired to go over an
  395. # interface other than the default network interface.
  396. #openshift_node_set_node_ip=True
  397. # Force setting of system hostname when configuring OpenShift
  398. # This works around issues related to installations that do not have valid dns
  399. # entries for the interfaces attached to the host.
  400. #openshift_set_hostname=True
  401. # Configure dnsIP in the node config
  402. #openshift_dns_ip=172.30.0.1
  403. # Configure node kubelet arguments. pods-per-core is valid in OpenShift Origin 1.3 or OpenShift Container Platform 3.3 and later.
  404. #openshift_node_kubelet_args={'pods-per-core': ['10'], 'max-pods': ['250'], 'image-gc-high-threshold': ['90'], 'image-gc-low-threshold': ['80']}
  405. # Configure logrotate scripts
  406. # See: https://github.com/nickhammond/ansible-logrotate
  407. #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"}}]
  408. # openshift-ansible will wait indefinitely for your input when it detects that the
  409. # value of openshift_hostname resolves to an IP address not bound to any local
  410. # interfaces. This mis-configuration is problematic for any pod leveraging host
  411. # networking and liveness or readiness probes.
  412. # Setting this variable to true will override that check.
  413. #openshift_override_hostname_check=true
  414. # Configure dnsmasq for cluster dns, switch the host's local resolver to use dnsmasq
  415. # and configure node's dnsIP to point at the node's local dnsmasq instance. Defaults
  416. # to True for Origin 1.2 and OSE 3.2. False for 1.1 / 3.1 installs, this cannot
  417. # be used with 1.0 and 3.0.
  418. #openshift_use_dnsmasq=False
  419. # Define an additional dnsmasq.conf file to deploy to /etc/dnsmasq.d/openshift-ansible.conf
  420. # This is useful for POC environments where DNS may not actually be available yet.
  421. #openshift_node_dnsmasq_additional_config_file=/home/bob/ose-dnsmasq.conf
  422. # Global Proxy Configuration
  423. # These options configure HTTP_PROXY, HTTPS_PROXY, and NOPROXY environment
  424. # variables for docker and master services.
  425. #openshift_http_proxy=http://USER:PASSWORD@IPADDR:PORT
  426. #openshift_https_proxy=https://USER:PASSWORD@IPADDR:PORT
  427. #openshift_no_proxy='.hosts.example.com,some-host.com'
  428. #
  429. # Most environments don't require a proxy between openshift masters, nodes, and
  430. # etcd hosts. So automatically add those hostnames to the openshift_no_proxy list.
  431. # If all of your hosts share a common domain you may wish to disable this and
  432. # specify that domain above.
  433. #openshift_generate_no_proxy_hosts=True
  434. #
  435. # These options configure the BuildDefaults admission controller which injects
  436. # environment variables into Builds. These values will default to the global proxy
  437. # config values. You only need to set these if they differ from the global settings
  438. # above. See BuildDefaults
  439. # documentation at https://docs.openshift.org/latest/admin_guide/build_defaults_overrides.html
  440. #openshift_builddefaults_http_proxy=http://USER:PASSWORD@HOST:PORT
  441. #openshift_builddefaults_https_proxy=https://USER:PASSWORD@HOST:PORT
  442. #openshift_builddefaults_no_proxy=build_defaults
  443. #openshift_builddefaults_git_http_proxy=http://USER:PASSWORD@HOST:PORT
  444. #openshift_builddefaults_git_https_proxy=https://USER:PASSWORD@HOST:PORT
  445. # Or you may optionally define your own serialized as json
  446. #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","kind":"BuildDefaultsConfig"}}}'
  447. # masterConfig.volumeConfig.dynamicProvisioningEnabled, configurable as of 1.2/3.2, enabled by default
  448. #openshift_master_dynamic_provisioning_enabled=False
  449. # Configure usage of openshift_clock role.
  450. #openshift_clock_enabled=true
  451. # OpenShift Per-Service Environment Variables
  452. # Environment variables are added to /etc/sysconfig files for
  453. # each OpenShift service: node, master (api and controllers).
  454. # API and controllers environment variables are merged in single
  455. # master environments.
  456. #openshift_master_api_env_vars={"ENABLE_HTTP2": "true"}
  457. #openshift_master_controllers_env_vars={"ENABLE_HTTP2": "true"}
  458. #openshift_node_env_vars={"ENABLE_HTTP2": "true"}
  459. # Enable API service auditing, available as of 3.2
  460. #openshift_master_audit_config={"basicAuditEnabled": true}
  461. # host group for masters
  462. [masters]
  463. ose3-master[1:3]-ansible.test.example.com
  464. [etcd]
  465. ose3-etcd[1:3]-ansible.test.example.com
  466. [lb]
  467. ose3-lb-ansible.test.example.com
  468. # NOTE: Currently we require that masters be part of the SDN which requires that they also be nodes
  469. # However, in order to ensure that your masters are not burdened with running pods you should
  470. # make them unschedulable by adding openshift_schedulable=False any node that's also a master.
  471. [nodes]
  472. ose3-master[1:3]-ansible.test.example.com
  473. ose3-node[1:2]-ansible.test.example.com openshift_node_labels="{'region': 'primary', 'zone': 'default'}"