hosts.byo.native-glusterfs.example 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # This is an example of a bring your own (byo) host inventory for a cluster
  2. # with natively hosted, containerized GlusterFS storage.
  3. #
  4. # This inventory may be used with the byo/config.yml playbook to deploy a new
  5. # cluster with GlusterFS storage, which will use that storage to create a
  6. # volume that will provide backend storage for a hosted Docker registry.
  7. #
  8. # This inventory may also be used with byo/openshift-glusterfs/config.yml to
  9. # deploy GlusterFS storage on an existing cluster. With this playbook, the
  10. # registry backend volume will be created but the administrator must then
  11. # either deploy a hosted registry or change an existing hosted registry to use
  12. # that volume.
  13. #
  14. # There are additional configuration parameters that can be specified to
  15. # control the deployment and state of a GlusterFS cluster. Please see the
  16. # documentation in playbooks/byo/openshift-glusterfs/README.md and
  17. # roles/openshift_storage_glusterfs/README.md for additional details.
  18. [OSEv3:children]
  19. masters
  20. nodes
  21. # Specify there will be GlusterFS nodes
  22. glusterfs
  23. [OSEv3:vars]
  24. ansible_ssh_user=root
  25. deployment_type=origin
  26. # Specify that we want to use GlusterFS storage for a hosted registry
  27. openshift_hosted_registry_storage_kind=glusterfs
  28. [masters]
  29. master node=True storage=True master=True
  30. [nodes]
  31. master node=True storage=True master=True openshift_schedulable=False
  32. # A hosted registry, by default, will only be deployed on nodes labeled
  33. # "region=infra".
  34. node0 node=True openshift_node_labels="{'region': 'infra'}" openshift_schedulable=True
  35. node1 node=True openshift_node_labels="{'region': 'infra'}" openshift_schedulable=True
  36. node2 node=True openshift_node_labels="{'region': 'infra'}" openshift_schedulable=True
  37. # Specify the glusterfs group, which contains the nodes that will host
  38. # GlusterFS storage pods. At a minimum, each node must have a
  39. # "glusterfs_devices" variable defined. This variable is a list of block
  40. # devices the node will have access to that is intended solely for use as
  41. # GlusterFS storage. These block devices must be bare (e.g. have no data, not
  42. # be marked as LVM PVs), and will be formatted.
  43. [glusterfs]
  44. node0 glusterfs_devices='[ "/dev/vdb", "/dev/vdc", "/dev/vdd" ]'
  45. node1 glusterfs_devices='[ "/dev/vdb", "/dev/vdc", "/dev/vdd" ]'
  46. node2 glusterfs_devices='[ "/dev/vdb", "/dev/vdc", "/dev/vdd" ]'