hosts.aep.example 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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. # Set variables common for all OSEv3 hosts
  9. [OSEv3:vars]
  10. # SSH user, this user should allow ssh based auth without requiring a
  11. # password. If using ssh key based auth, then the key should be managed by an
  12. # ssh agent.
  13. ansible_ssh_user=root
  14. # If ansible_ssh_user is not root, ansible_sudo must be set to true and the
  15. # user must be configured for passwordless sudo
  16. #ansible_sudo=true
  17. # deployment type valid values are origin, online, atomic-enterprise, and openshift-enterprise
  18. deployment_type=atomic-enterprise
  19. # Install the openshift examples
  20. #openshift_install_examples=true
  21. # Enable cluster metrics
  22. #use_cluster_metrics=true
  23. # Configure metricsPublicURL in the master config for cluster metrics
  24. # See: https://docs.openshift.com/enterprise/latest/install_config/cluster_metrics.html
  25. #openshift_master_metrics_public_url=https://hawkular-metrics.example.com/hawkular/metrics
  26. # Configure loggingPublicURL in the master config for aggregate logging
  27. # See: https://docs.openshift.com/enterprise/latest/install_config/aggregate_logging.html
  28. #openshift_master_logging_public_url=https://kibana.example.com
  29. # Add additional, insecure, and blocked registries to global docker configuration
  30. # For enterprise deployment types we ensure that registry.access.redhat.com is
  31. # included if you do not include it
  32. #cli_docker_additional_registries=registry.example.com
  33. #cli_docker_insecure_registries=registry.example.com
  34. #cli_docker_blocked_registries=registry.hacker.com
  35. # Alternate image format string. If you're not modifying the format string and
  36. # only need to inject your own registry you may want to consider
  37. # cli_docker_additional_registries instead
  38. #oreg_url=example.com/aep3/aep-${component}:${version}
  39. # Additional yum repos to install
  40. #openshift_additional_repos=[{'id': 'aep-devel', 'name': 'aep-devel', 'baseurl': 'http://example.com/puddle/build/AtomicOpenShift/3.1/latest/RH7-RHOSE-3.0/$basearch/os', 'enabled': 1, 'gpgcheck': 0}]
  41. # htpasswd auth
  42. openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/etc/origin/htpasswd'}]
  43. # Allow all auth
  44. #openshift_master_identity_providers=[{'name': 'allow_all', 'login': 'true', 'challenge': 'true', 'kind': 'AllowAllPasswordIdentityProvider'}]
  45. # LDAP auth
  46. #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'}]
  47. # Project Configuration
  48. #osm_project_request_message=''
  49. #osm_project_request_template=''
  50. #osm_mcs_allocator_range='s0:/2'
  51. #osm_mcs_labels_per_project=5
  52. #osm_uid_allocator_range='1000000000-1999999999/10000'
  53. # Configure Fluentd
  54. #use_fluentd=true
  55. # Enable cockpit
  56. #osm_use_cockpit=true
  57. #
  58. # Set cockpit plugins
  59. #osm_cockpit_plugins=['cockpit-kubernetes']
  60. # Native high availbility cluster method with optional load balancer.
  61. # If no lb group is defined installer assumes that a load balancer has
  62. # been preconfigured. For installation the value of
  63. # openshift_master_cluster_hostname must resolve to the load balancer
  64. # or to one or all of the masters defined in the inventory if no load
  65. # balancer is present.
  66. #openshift_master_cluster_method=native
  67. #openshift_master_cluster_hostname=openshift-ansible.test.example.com
  68. #openshift_master_cluster_public_hostname=openshift-ansible.test.example.com
  69. # Pacemaker high availability cluster method.
  70. # Pacemaker HA environment must be able to self provision the
  71. # configured VIP. For installation openshift_master_cluster_hostname
  72. # must resolve to the configured VIP.
  73. #openshift_master_cluster_method=pacemaker
  74. #openshift_master_cluster_password=openshift_cluster
  75. #openshift_master_cluster_vip=192.168.133.25
  76. #openshift_master_cluster_public_vip=192.168.133.25
  77. #openshift_master_cluster_hostname=openshift-ansible.test.example.com
  78. #openshift_master_cluster_public_hostname=openshift-ansible.test.example.com
  79. # Override the default controller lease ttl
  80. #osm_controller_lease_ttl=30
  81. # default subdomain to use for exposed routes
  82. #osm_default_subdomain=apps.test.example.com
  83. # additional cors origins
  84. #osm_custom_cors_origins=['foo.example.com', 'bar.example.com']
  85. # default project node selector
  86. #osm_default_node_selector='region=primary'
  87. # default storage plugin dependencies to install, by default the ceph and
  88. # glusterfs plugin dependencies will be installed, if available.
  89. #osn_storage_plugin_deps=['ceph','glusterfs']
  90. # default selectors for router and registry services
  91. # openshift_router_selector='region=infra'
  92. # openshift_registry_selector='region=infra'
  93. # Configure the multi-tenant SDN plugin (default is 'redhat/openshift-ovs-subnet')
  94. # os_sdn_network_plugin_name='redhat/openshift-ovs-multitenant'
  95. # Disable the OpenShift SDN plugin
  96. # openshift_use_openshift_sdn=False
  97. # set RPM version for debugging purposes
  98. #openshift_pkg_version=-3.1.0.0
  99. # Configure custom named certificates
  100. # NOTE: openshift_master_named_certificates is cached on masters and is an
  101. # additive fact, meaning that each run with a different set of certificates
  102. # will add the newly provided certificates to the cached set of certificates.
  103. # If you would like openshift_master_named_certificates to be overwritten with
  104. # the provided value, specify openshift_master_overwrite_named_certificates.
  105. #openshift_master_overwrite_named_certificates: true
  106. #
  107. # Provide local certificate paths which will be deployed to masters
  108. #openshift_master_named_certificates=[{"certfile": "/path/to/custom1.crt", "keyfile": "/path/to/custom1.key"}]
  109. #
  110. # Detected names may be overridden by specifying the "names" key
  111. #openshift_master_named_certificates=[{"certfile": "/path/to/custom1.crt", "keyfile": "/path/to/custom1.key", "names": ["public-master-host.com"]}]
  112. # Session options
  113. #openshift_master_session_name=ssn
  114. #openshift_master_session_max_seconds=3600
  115. # An authentication and encryption secret will be generated if secrets
  116. # are not provided. If provided, openshift_master_session_auth_secrets
  117. # and openshift_master_encryption_secrets must be equal length.
  118. #
  119. # Signing secrets, used to authenticate sessions using
  120. # HMAC. Recommended to use secrets with 32 or 64 bytes.
  121. #openshift_master_session_auth_secrets=['DONT+USE+THIS+SECRET+b4NV+pmZNSO']
  122. #
  123. # Encrypting secrets, used to encrypt sessions. Must be 16, 24, or 32
  124. # characters long, to select AES-128, AES-192, or AES-256.
  125. #openshift_master_session_encryption_secrets=['DONT+USE+THIS+SECRET+b4NV+pmZNSO']
  126. # configure how often node iptables rules are refreshed
  127. #openshift_node_iptables_sync_period=5s
  128. # Configure nodeIP in the node config
  129. # This is needed in cases where node traffic is desired to go over an
  130. # interface other than the default network interface.
  131. #openshift_node_set_node_ip=True
  132. # Force setting of system hostname when configuring OpenShift
  133. # This works around issues related to installations that do not have valid dns
  134. # entries for the interfaces attached to the host.
  135. #openshift_set_hostname=True
  136. # Configure dnsIP in the node config
  137. #openshift_dns_ip=172.30.0.1
  138. # Configure node kubelet arguments
  139. #openshift_node_kubelet_args={'max-pods': ['40'], 'image-gc-high-threshold': ['90'], 'image-gc-low-threshold': ['80']}
  140. # host group for masters
  141. [masters]
  142. aep3-master[1:3]-ansible.test.example.com
  143. [etcd]
  144. aep3-etcd[1:3]-ansible.test.example.com
  145. [lb]
  146. aep3-lb-ansible.test.example.com
  147. # NOTE: Currently we require that masters be part of the SDN which requires that they also be nodes
  148. # However, in order to ensure that your masters are not burdened with running pods you should
  149. # make them unschedulable by adding openshift_schedulable=False any node that's also a master.
  150. [nodes]
  151. aep3-master[1:3]-ansible.test.example.com
  152. aep3-node[1:2]-ansible.test.example.com openshift_node_labels="{'region': 'primary', 'zone': 'default'}"