hosts.aep.example 7.4 KB

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