hosts.origin.example 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  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_sudo must be set to true and the
  16. # user must be configured for passwordless sudo
  17. #ansible_sudo=true
  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=origin
  22. # Install the openshift examples
  23. #openshift_install_examples=true
  24. # Enable cluster metrics
  25. #use_cluster_metrics=true
  26. # Configure logoutURL in the master config for console customization
  27. # See: https://docs.openshift.org/latest/install_config/web_console_customization.html#changing-the-logout-url
  28. #openshift_master_logout_url=http://example.com
  29. # Configure extensionScripts in the master config for console customization
  30. # See: https://docs.openshift.org/latest/install_config/web_console_customization.html#loading-custom-scripts-and-stylesheets
  31. #openshift_master_extension_scripts=['/path/to/script1.js','/path/to/script2.js']
  32. # Configure extensionStylesheets in the master config for console customization
  33. # See: https://docs.openshift.org/latest/install_config/web_console_customization.html#loading-custom-scripts-and-stylesheets
  34. #openshift_master_extension_stylesheets=['/path/to/stylesheet1.css','/path/to/stylesheet2.css']
  35. # Configure extensions in the master config for console customization
  36. # See: https://docs.openshift.org/latest/install_config/web_console_customization.html#serving-static-files
  37. #openshift_master_extensions=[{'name': 'images', 'sourceDirectory': '/path/to/my_images'}]
  38. # Configure extensions in the master config for console customization
  39. # See: https://docs.openshift.org/latest/install_config/web_console_customization.html#serving-static-files
  40. #openshift_master_oauth_template=/path/to/login-template.html
  41. # Configure metricsPublicURL in the master config for cluster metrics
  42. # See: https://docs.openshift.org/latest/install_config/cluster_metrics.html
  43. #openshift_master_metrics_public_url=https://hawkular-metrics.example.com/hawkular/metrics
  44. # Configure loggingPublicURL in the master config for aggregate logging
  45. # See: https://docs.openshift.org/latest/install_config/aggregate_logging.html
  46. #openshift_master_logging_public_url=https://kibana.example.com
  47. # Add additional, insecure, and blocked registries to global docker configuration
  48. # For enterprise deployment types we ensure that registry.access.redhat.com is
  49. # included if you do not include it
  50. #cli_docker_additional_registries=registry.example.com
  51. #cli_docker_insecure_registries=registry.example.com
  52. #cli_docker_blocked_registries=registry.hacker.com
  53. # Alternate image format string. If you're not modifying the format string and
  54. # only need to inject your own registry you may want to consider
  55. # cli_docker_additional_registries instead
  56. #oreg_url=example.com/openshift3/ose-${component}:${version}
  57. # Origin copr repo
  58. #openshift_additional_repos=[{'id': 'openshift-origin-copr', 'name': 'OpenShift Origin COPR', 'baseurl': 'https://copr-be.cloud.fedoraproject.org/results/maxamillion/origin-next/epel-7-$basearch/', 'enabled': 1, 'gpgcheck': 1, gpgkey: 'https://copr-be.cloud.fedoraproject.org/results/maxamillion/origin-next/pubkey.gpg'}]
  59. # Origin Fedora copr repo
  60. # Use this if you are installing on Fedora
  61. #openshift_additional_repos=[{'id': 'fedora-openshift-origin-copr', 'name': 'OpenShift Origin COPR for Fedora', 'baseurl': 'https://copr-be.cloud.fedoraproject.org/results/maxamillion/fedora-openshift/fedora-$releasever-$basearch/', 'enabled': 1, 'gpgcheck': 1, gpgkey: 'https://copr-be.cloud.fedoraproject.org/results/maxamillion/fedora-openshift/pubkey.gpg'}]
  62. # htpasswd auth
  63. openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/etc/origin/master/htpasswd'}]
  64. # Allow all auth
  65. #openshift_master_identity_providers=[{'name': 'allow_all', 'login': 'true', 'challenge': 'true', 'kind': 'AllowAllPasswordIdentityProvider'}]
  66. # LDAP auth
  67. #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'}]
  68. # Project Configuration
  69. #osm_project_request_message=''
  70. #osm_project_request_template=''
  71. #osm_mcs_allocator_range='s0:/2'
  72. #osm_mcs_labels_per_project=5
  73. #osm_uid_allocator_range='1000000000-1999999999/10000'
  74. # Enable cockpit
  75. #osm_use_cockpit=true
  76. #
  77. # Set cockpit plugins
  78. #osm_cockpit_plugins=['cockpit-kubernetes']
  79. # Native high availability cluster method with optional load balancer.
  80. # If no lb group is defined, the installer assumes that a load balancer has
  81. # been preconfigured. For installation the value of
  82. # openshift_master_cluster_hostname must resolve to the load balancer
  83. # or to one or all of the masters defined in the inventory if no load
  84. # balancer is present.
  85. #openshift_master_cluster_method=native
  86. #openshift_master_cluster_hostname=openshift-ansible.test.example.com
  87. #openshift_master_cluster_public_hostname=openshift-ansible.test.example.com
  88. # Pacemaker high availability cluster method.
  89. # Pacemaker HA environment must be able to self provision the
  90. # configured VIP. For installation openshift_master_cluster_hostname
  91. # must resolve to the configured VIP.
  92. #openshift_master_cluster_method=pacemaker
  93. #openshift_master_cluster_password=openshift_cluster
  94. #openshift_master_cluster_vip=192.168.133.25
  95. #openshift_master_cluster_public_vip=192.168.133.25
  96. #openshift_master_cluster_hostname=openshift-ansible.test.example.com
  97. #openshift_master_cluster_public_hostname=openshift-ansible.test.example.com
  98. # Override the default controller lease ttl
  99. #osm_controller_lease_ttl=30
  100. # Configure controller arguments
  101. #osm_controller_args={'resource-quota-sync-period': ['10s']}
  102. # Configure api server arguments
  103. #osm_api_server_args={'max-requests-inflight': ['400']}
  104. # default subdomain to use for exposed routes
  105. #osm_default_subdomain=apps.test.example.com
  106. # additional cors origins
  107. #osm_custom_cors_origins=['foo.example.com', 'bar.example.com']
  108. # default project node selector
  109. #osm_default_node_selector='region=primary'
  110. # Override the default pod eviction timeout
  111. #openshift_master_pod_eviction_timeout=5m
  112. # default storage plugin dependencies to install, by default the ceph and
  113. # glusterfs plugin dependencies will be installed, if available.
  114. #osn_storage_plugin_deps=['ceph','glusterfs','iscsi']
  115. # default selectors for router and registry services
  116. # openshift_router_selector='region=infra'
  117. # openshift_registry_selector='region=infra'
  118. # Configure the multi-tenant SDN plugin (default is 'redhat/openshift-ovs-subnet')
  119. # os_sdn_network_plugin_name='redhat/openshift-ovs-multitenant'
  120. # Disable the OpenShift SDN plugin
  121. # openshift_use_openshift_sdn=False
  122. # set RPM version for debugging purposes
  123. #openshift_pkg_version=-1.1
  124. # Configure custom named certificates
  125. # NOTE: openshift_master_named_certificates is cached on masters and is an
  126. # additive fact, meaning that each run with a different set of certificates
  127. # will add the newly provided certificates to the cached set of certificates.
  128. # If you would like openshift_master_named_certificates to be overwritten with
  129. # the provided value, specify openshift_master_overwrite_named_certificates.
  130. #openshift_master_overwrite_named_certificates: true
  131. #
  132. # Provide local certificate paths which will be deployed to masters
  133. #openshift_master_named_certificates=[{"certfile": "/path/to/custom1.crt", "keyfile": "/path/to/custom1.key"}]
  134. #
  135. # Detected names may be overridden by specifying the "names" key
  136. #openshift_master_named_certificates=[{"certfile": "/path/to/custom1.crt", "keyfile": "/path/to/custom1.key", "names": ["public-master-host.com"]}]
  137. # Session options
  138. #openshift_master_session_name=ssn
  139. #openshift_master_session_max_seconds=3600
  140. # An authentication and encryption secret will be generated if secrets
  141. # are not provided. If provided, openshift_master_session_auth_secrets
  142. # and openshift_master_encryption_secrets must be equal length.
  143. #
  144. # Signing secrets, used to authenticate sessions using
  145. # HMAC. Recommended to use secrets with 32 or 64 bytes.
  146. #openshift_master_session_auth_secrets=['DONT+USE+THIS+SECRET+b4NV+pmZNSO']
  147. #
  148. # Encrypting secrets, used to encrypt sessions. Must be 16, 24, or 32
  149. # characters long, to select AES-128, AES-192, or AES-256.
  150. #openshift_master_session_encryption_secrets=['DONT+USE+THIS+SECRET+b4NV+pmZNSO']
  151. # configure how often node iptables rules are refreshed
  152. #openshift_node_iptables_sync_period=5s
  153. # Configure nodeIP in the node config
  154. # This is needed in cases where node traffic is desired to go over an
  155. # interface other than the default network interface.
  156. #openshift_node_set_node_ip=True
  157. # Force setting of system hostname when configuring OpenShift
  158. # This works around issues related to installations that do not have valid dns
  159. # entries for the interfaces attached to the host.
  160. #openshift_set_hostname=True
  161. # Configure dnsIP in the node config
  162. #openshift_dns_ip=172.30.0.1
  163. # Persistent Storage Options
  164. #
  165. ## Registry Storage Options
  166. ##
  167. ## Storage Kind
  168. ## Specifies which storage kind will be used for the registry.
  169. ## nfs is the only supported kind at this time.
  170. ##openshift_hosted_registry_storage_kind=nfs
  171. ##
  172. ## Storage Host
  173. ## This variable can be used to identify a pre-existing storage host
  174. ## if a storage host group corresponding to the storage kind (such as
  175. ## [nfs]) is not specified,
  176. ##openshift_hosted_registry_storage_host=nfs.example.com
  177. ##
  178. ## NFS Export Options
  179. ##openshift_hosted_registry_storage_nfs_options='*(rw,root_squash)'
  180. ##
  181. ## NFS Export Directory
  182. ## Specify the root exports directory. This directory will be created
  183. ## if specifying an [nfs] host group.
  184. ## This variable must be supplied if using a pre-existing nfs server.
  185. ##openshift_hosted_registry_storage_nfs_directory=/exports
  186. ##
  187. ## Registry Volume Name
  188. ## Specify the storage volume name. This directory will be created
  189. ## within openshift_hosted_registry_storage_nfs_directory if
  190. ## specifying an [nfs] group. Ex: /exports/registry
  191. ## This variable must be supplied if using a pre-existing nfs server.
  192. ##openshift_hosted_registry_storage_volume_name=registry
  193. ##
  194. ## Persistent Volume Access Mode
  195. ##openshift_hosted_registry_storage_access_modes=['ReadWriteMany']
  196. # Configure node kubelet arguments
  197. #openshift_node_kubelet_args={'max-pods': ['40'], 'image-gc-high-threshold': ['90'], 'image-gc-low-threshold': ['80']}
  198. # Configure logrotate scripts
  199. # See: https://github.com/nickhammond/ansible-logrotate
  200. #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"}}]
  201. # openshift-ansible will wait indefinitely for your input when it detects that the
  202. # value of openshift_hostname resolves to an IP address not bound to any local
  203. # interfaces. This mis-configuration is problematic for any pod leveraging host
  204. # networking and liveness or readiness probes.
  205. # Setting this variable to true will override that check.
  206. #openshift_override_hostname_check=true
  207. # host group for masters
  208. [masters]
  209. ose3-master[1:3]-ansible.test.example.com
  210. [etcd]
  211. ose3-etcd[1:3]-ansible.test.example.com
  212. [lb]
  213. ose3-lb-ansible.test.example.com
  214. # NOTE: Currently we require that masters be part of the SDN which requires that they also be nodes
  215. # However, in order to ensure that your masters are not burdened with running pods you should
  216. # make them unschedulable by adding openshift_schedulable=False any node that's also a master.
  217. [nodes]
  218. ose3-master[1:3]-ansible.test.example.com
  219. ose3-node[1:2]-ansible.test.example.com openshift_node_labels="{'region': 'primary', 'zone': 'default'}"