Advertisement
Guest User

Untitled

a guest
Jun 25th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. # Create an OSEv3 group that contains the masters and nodes groups
  2. [OSEv3:children]
  3. masters
  4. etcd
  5. glusterfs
  6. nodes
  7.  
  8. # Set variables common for all OSEv3 hosts
  9. [OSEv3:vars]
  10. # Admin user created in previous section
  11. ansible_ssh_user=origin
  12. ansible_become=true
  13. openshift_deployment_type=origin
  14. os_firewall_use_firewalld=true
  15. openshift_disable_check=disk_availability,memory_availability
  16. # Enable CNS (glusterfs) as default storage provider
  17. openshift_storage_glusterfs_namespace=glusterfs
  18. openshift_storage_glusterfs_name=storage
  19. openshift_storage_glusterfs_storageclass_default=true
  20.  
  21. # Use HTPasswd for authentication
  22. openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/etc/origin/master/.htpasswd'}]
  23. openshift_master_default_subdomain=cnsc.net
  24.  
  25. # Allow unencrypted connection within cluster
  26. openshift_docker_insecure_registries=172.30.0.0/16
  27.  
  28. # Host group for masters
  29. [masters]
  30. openshiftpruebas.cnsc.net openshift_schedulable=true containerized=false
  31.  
  32. # Host group for etcd
  33. [etcd]
  34. openshiftpruebas.cnsc.net
  35.  
  36. # Host group for glusterfs
  37. [glusterfs]
  38. osonode01.cnsc.net glusterfs_ip=192.168.52.61 glusterfs_devices="[ '/dev/vdc' ]"
  39. osonode02.cnsc.net glusterfs_ip=192.168.52.62 glusterfs_devices="[ '/dev/vdc' ]"
  40. osonode03.cnsc.net glusterfs_ip=192.168.52.63 glusterfs_devices="[ '/dev/vdc' ]"
  41.  
  42. # Host group for nodes, includes region info
  43. [nodes]
  44. # Set labels [region: ***, zone: ***] (any name you like)
  45. openshiftpruebas.cnsc.net openshift_node_labels="{'region': 'infra', 'zone': 'default'}"
  46. osonode01.cnsc.net storage=true openshift_node_labels="{'region': 'primary', 'zone': 'east'}" openshift_schedulable=true
  47. osonode02.cnsc.net storage=true openshift_node_labels="{'region': 'primary', 'zone': 'west'}" openshift_schedulable=true
  48. osonode03.cnsc.net storage=true openshift_node_labels="{'region': 'primary', 'zone': 'south'}" openshift_schedulable=true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement