hosts.origin.example 12 KB

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