main.yml 6.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. ---
  2. openshift_storage_glusterfs_timeout: 300
  3. openshift_storage_glusterfs_is_native: True
  4. openshift_storage_glusterfs_name: 'storage'
  5. openshift_storage_glusterfs_nodeselector: "glusterfs={{ openshift_storage_glusterfs_name }}-host"
  6. openshift_storage_glusterfs_use_default_selector: False
  7. openshift_storage_glusterfs_storageclass: True
  8. openshift_storage_glusterfs_image: "{{ 'rhgs3/rhgs-server-rhel7' | quote if deployment_type == 'openshift-enterprise' else 'gluster/gluster-centos' | quote }}"
  9. openshift_storage_glusterfs_version: 'latest'
  10. openshift_storage_glusterfs_block_deploy: True
  11. openshift_storage_glusterfs_block_image: "{{ 'rhgs3/rhgs-gluster-block-prov-rhel7' | quote if deployment_type == 'openshift-enterprise' else 'gluster/glusterblock-provisioner' | quote }}"
  12. openshift_storage_glusterfs_block_version: 'latest'
  13. openshift_storage_glusterfs_block_max_host_vol: 15
  14. openshift_storage_glusterfs_wipe: False
  15. openshift_storage_glusterfs_heketi_is_native: "{{ openshift_storage_glusterfs_is_native }}"
  16. openshift_storage_glusterfs_heketi_is_missing: True
  17. openshift_storage_glusterfs_heketi_deploy_is_missing: True
  18. openshift_storage_glusterfs_heketi_cli: 'heketi-cli'
  19. openshift_storage_glusterfs_heketi_image: "{{ 'rhgs3/rhgs-volmanager-rhel7' | quote if deployment_type == 'openshift-enterprise' else 'heketi/heketi' | quote }}"
  20. openshift_storage_glusterfs_heketi_version: 'latest'
  21. openshift_storage_glusterfs_heketi_admin_key: "{{ omit }}"
  22. openshift_storage_glusterfs_heketi_user_key: "{{ omit }}"
  23. openshift_storage_glusterfs_heketi_topology_load: True
  24. openshift_storage_glusterfs_heketi_wipe: "{{ openshift_storage_glusterfs_wipe }}"
  25. openshift_storage_glusterfs_heketi_url: "{{ omit }}"
  26. openshift_storage_glusterfs_heketi_port: 8080
  27. openshift_storage_glusterfs_heketi_executor: 'kubernetes'
  28. openshift_storage_glusterfs_heketi_ssh_port: 22
  29. openshift_storage_glusterfs_heketi_ssh_user: 'root'
  30. openshift_storage_glusterfs_heketi_ssh_sudo: False
  31. openshift_storage_glusterfs_heketi_ssh_keyfile: "{{ omit }}"
  32. openshift_storage_glusterfs_heketi_fstab: "{{ '/var/lib/heketi/fstab' | quote if openshift_storage_glusterfs_heketi_executor == 'kubernetes' else '/etc/fstab' | quote }}"
  33. openshift_storage_glusterfs_namespace: "{{ 'glusterfs' | quote if openshift_storage_glusterfs_is_native or openshift_storage_glusterfs_heketi_is_native else 'default' | quote }}"
  34. openshift_storage_glusterfs_registry_timeout: "{{ openshift_storage_glusterfs_timeout }}"
  35. openshift_storage_glusterfs_registry_namespace: "{{ openshift.hosted.registry.namespace | default(openshift_storage_glusterfs_namespace) }}"
  36. openshift_storage_glusterfs_registry_is_native: "{{ openshift_storage_glusterfs_is_native }}"
  37. openshift_storage_glusterfs_registry_name: 'registry'
  38. openshift_storage_glusterfs_registry_nodeselector: "glusterfs={{ openshift_storage_glusterfs_registry_name }}-host"
  39. openshift_storage_glusterfs_registry_use_default_selector: "{{ openshift_storage_glusterfs_use_default_selector }}"
  40. openshift_storage_glusterfs_registry_storageclass: False
  41. openshift_storage_glusterfs_registry_image: "{{ openshift_storage_glusterfs_image }}"
  42. openshift_storage_glusterfs_registry_version: "{{ openshift_storage_glusterfs_version }}"
  43. openshift_storage_glusterfs_registry_block_deploy: "{{ openshift_storage_glusterfs_block_deploy }}"
  44. openshift_storage_glusterfs_registry_block_image: "{{ openshift_storage_glusterfs_block_image }}"
  45. openshift_storage_glusterfs_registry_block_version: "{{ openshift_storage_glusterfs_block_version }}"
  46. openshift_storage_glusterfs_registry_block_max_host_vol: "{{ openshift_storage_glusterfs_block_max_host_vol }}"
  47. openshift_storage_glusterfs_registry_wipe: "{{ openshift_storage_glusterfs_wipe }}"
  48. openshift_storage_glusterfs_registry_heketi_is_native: "{{ openshift_storage_glusterfs_registry_is_native }}"
  49. openshift_storage_glusterfs_registry_heketi_is_missing: "{{ openshift_storage_glusterfs_heketi_is_missing }}"
  50. openshift_storage_glusterfs_registry_heketi_deploy_is_missing: "{{ openshift_storage_glusterfs_heketi_deploy_is_missing }}"
  51. openshift_storage_glusterfs_registry_heketi_cli: "{{ openshift_storage_glusterfs_heketi_cli }}"
  52. openshift_storage_glusterfs_registry_heketi_image: "{{ openshift_storage_glusterfs_heketi_image }}"
  53. openshift_storage_glusterfs_registry_heketi_version: "{{ openshift_storage_glusterfs_heketi_version }}"
  54. openshift_storage_glusterfs_registry_heketi_admin_key: "{{ omit }}"
  55. openshift_storage_glusterfs_registry_heketi_user_key: "{{ omit }}"
  56. openshift_storage_glusterfs_registry_heketi_topology_load: "{{ openshift_storage_glusterfs_heketi_topology_load }}"
  57. openshift_storage_glusterfs_registry_heketi_wipe: "{{ openshift_storage_glusterfs_heketi_wipe }}"
  58. openshift_storage_glusterfs_registry_heketi_url: "{{ openshift_storage_glusterfs_heketi_url | default(omit) }}"
  59. openshift_storage_glusterfs_registry_heketi_port: "{{ openshift_storage_glusterfs_heketi_port }}"
  60. openshift_storage_glusterfs_registry_heketi_executor: "{{ openshift_storage_glusterfs_heketi_executor }}"
  61. openshift_storage_glusterfs_registry_heketi_ssh_port: "{{ openshift_storage_glusterfs_heketi_ssh_port }}"
  62. openshift_storage_glusterfs_registry_heketi_ssh_user: "{{ openshift_storage_glusterfs_heketi_ssh_user }}"
  63. openshift_storage_glusterfs_registry_heketi_ssh_sudo: "{{ openshift_storage_glusterfs_heketi_ssh_sudo }}"
  64. openshift_storage_glusterfs_registry_heketi_ssh_keyfile: "{{ openshift_storage_glusterfs_heketi_ssh_keyfile | default(omit) }}"
  65. openshift_storage_glusterfs_registry_heketi_fstab: "{{ '/var/lib/heketi/fstab' | quote if openshift_storage_glusterfs_registry_heketi_executor == 'kubernetes' else '/etc/fstab' | quote }}"
  66. r_openshift_storage_glusterfs_firewall_enabled: "{{ os_firewall_enabled | default(True) }}"
  67. r_openshift_storage_glusterfs_use_firewalld: "{{ os_firewall_use_firewalld | default(False) }}"
  68. r_openshift_storage_glusterfs_os_firewall_deny: []
  69. r_openshift_storage_glusterfs_os_firewall_allow:
  70. - service: glusterfs_sshd
  71. port: "2222/tcp"
  72. - service: glusterfs_management
  73. port: "24007/tcp"
  74. - service: glusterfs_rdma
  75. port: "24008/tcp"
  76. - service: glusterfs_bricks
  77. port: "49152-49251/tcp"