hosts.byo.glusterfs.registry-only.example 2.3 KB

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