Advertisement
Guest User

Untitled

a guest
May 3rd, 2017
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.90 KB | None | 0 0
  1. # Create an OSEv3 group that contains the master, nodes, etcd, and lb groups.
  2. # The lb group lets Ansible configure HAProxy as the load balancing solution.
  3. # Comment lb out if your load balancer is pre-configured.
  4. [OSEv3:children]
  5. masters
  6. nodes
  7. etcd
  8. lb
  9. #nfs
  10.  
  11. # Set variables common for all OSEv3 hosts
  12. [OSEv3:vars]
  13. ansible_ssh_user=root
  14. openshift_release=1.4.1
  15. deployment_type=origin
  16. #deployment_subtype=registry
  17. ansible_python_interpreter=/usr/bin/python3
  18. osm_cluster_network_cidr=192.168.0.0/16
  19.  
  20.  
  21. # Uncomment the following to enable htpasswd authentication; defaults to
  22. # DenyAllPasswordIdentityProvider.
  23. #openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/etc/origin/master/htpasswd'}]
  24.  
  25. # Enable cockpit
  26. #osm_use_cockpit=true
  27.  
  28. # Set cockpit plugins
  29. #osm_cockpit_plugins=['cockpit-kubernetes']
  30.  
  31. # Native high availbility cluster method with optional load balancer.
  32. # If no lb group is defined installer assumes that a load balancer has
  33. # been preconfigured. For installation the value of
  34. # openshift_master_cluster_hostname must resolve to the load balancer
  35. # or to one or all of the masters defined in the inventory if no load
  36. # balancer is present.
  37. openshift_master_cluster_method=native
  38. openshift_master_cluster_password=password
  39. openshift_master_cluster_hostname=openshift.domain.com
  40. openshift_master_cluster_public_hostname=openshift.domain.com
  41.  
  42. # apply updated node defaults
  43. openshift_node_kubelet_args={'pods-per-core': ['10'], 'max-pods': ['250'], 'image-gc-high-threshold': ['90'], 'image-gc-low-threshold': ['80']}
  44.  
  45. # override the default controller lease ttl
  46. #osm_controller_lease_ttl=30
  47.  
  48. # enable ntp on masters to ensure proper failover
  49. openshift_clock_enabled=true
  50.  
  51. # host group for masters
  52. [masters]
  53. host000osm100.domain.com openshift_ip=10.131.6.102
  54. host000osm101.domain.com openshift_ip=10.131.6.103
  55. host000osm102.domain.com openshift_ip=10.131.6.104
  56.  
  57. # host group for etcd
  58. [etcd]
  59. host000ose100.domain.com openshift_ip=10.131.6.108
  60. host000ose101.domain.com openshift_ip=10.131.6.109
  61. host000ose102.domain.com openshift_ip=10.131.6.110
  62.  
  63. # Specify load balancer host
  64. [lb]
  65. host000oha100.domain.com openshift_ip=10.131.6.111 --openshift_public_hostname=openshift.domain.com containerized=false
  66.  
  67. # host group for nodes, includes region info
  68. [nodes]
  69. host000osm100.domain.com openshift_node_labels="{'region': 'infra', 'zone': 'default'}"
  70. host000osm101.domain.com openshift_node_labels="{'region': 'infra', 'zone': 'default'}"
  71. host000osm102.domain.com openshift_node_labels="{'region': 'infra', 'zone': 'default'}"
  72. host000osn100.domain.com openshift_node_labels="{'region': 'primary', 'zone': 'east'}"
  73. host000osn101.domain.com openshift_node_labels="{'region': 'primary', 'zone': 'west'}"
  74. host000osn102.domain.com openshift_node_labels="{'region': 'primary', 'zone': 'east'}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement