main.yml 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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_storageclass_default: False
  9. openshift_storage_glusterfs_image: "{{ 'rhgs3/rhgs-server-rhel7' | quote if openshift_deployment_type == 'openshift-enterprise' else 'gluster/gluster-centos' | quote }}"
  10. openshift_storage_glusterfs_version: 'latest'
  11. openshift_storage_glusterfs_block_deploy: True
  12. openshift_storage_glusterfs_block_image: "{{ 'rhgs3/rhgs-gluster-block-prov-rhel7' | quote if openshift_deployment_type == 'openshift-enterprise' else 'gluster/glusterblock-provisioner' | quote }}"
  13. openshift_storage_glusterfs_block_version: 'latest'
  14. openshift_storage_glusterfs_block_host_vol_create: True
  15. openshift_storage_glusterfs_block_host_vol_size: 100
  16. openshift_storage_glusterfs_block_host_vol_max: 15
  17. openshift_storage_glusterfs_s3_deploy: True
  18. openshift_storage_glusterfs_s3_image: "{{ 'rhgs3/rhgs-gluster-s3-server-rhel7' | quote if openshift_deployment_type == 'openshift-enterprise' else 'gluster/gluster-object' | quote }}"
  19. openshift_storage_glusterfs_s3_version: 'latest'
  20. openshift_storage_glusterfs_s3_account: "{{ omit }}"
  21. openshift_storage_glusterfs_s3_user: "{{ omit }}"
  22. openshift_storage_glusterfs_s3_password: "{{ omit }}"
  23. openshift_storage_glusterfs_s3_pvc: "gluster-s3-{{ openshift_storage_glusterfs_name }}-{{ openshift_storage_glusterfs_s3_account }}-claim"
  24. openshift_storage_glusterfs_s3_pvc_size: "2Gi"
  25. openshift_storage_glusterfs_s3_meta_pvc: "gluster-s3-{{ openshift_storage_glusterfs_name }}-{{ openshift_storage_glusterfs_s3_account }}-meta-claim"
  26. openshift_storage_glusterfs_s3_meta_pvc_size: "1Gi"
  27. openshift_storage_glusterfs_wipe: False
  28. openshift_storage_glusterfs_heketi_is_native: "{{ openshift_storage_glusterfs_is_native }}"
  29. openshift_storage_glusterfs_heketi_is_missing: True
  30. openshift_storage_glusterfs_heketi_deploy_is_missing: True
  31. openshift_storage_glusterfs_heketi_cli: 'heketi-cli'
  32. openshift_storage_glusterfs_heketi_image: "{{ 'rhgs3/rhgs-volmanager-rhel7' | quote if openshift_deployment_type == 'openshift-enterprise' else 'heketi/heketi' | quote }}"
  33. openshift_storage_glusterfs_heketi_version: 'latest'
  34. openshift_storage_glusterfs_heketi_admin_key: "{{ omit }}"
  35. openshift_storage_glusterfs_heketi_user_key: "{{ omit }}"
  36. openshift_storage_glusterfs_heketi_topology_load: True
  37. openshift_storage_glusterfs_heketi_wipe: "{{ openshift_storage_glusterfs_wipe }}"
  38. openshift_storage_glusterfs_heketi_url: "{{ omit }}"
  39. openshift_storage_glusterfs_heketi_port: 8080
  40. openshift_storage_glusterfs_heketi_executor: 'kubernetes'
  41. openshift_storage_glusterfs_heketi_ssh_port: 22
  42. openshift_storage_glusterfs_heketi_ssh_user: 'root'
  43. openshift_storage_glusterfs_heketi_ssh_sudo: False
  44. openshift_storage_glusterfs_heketi_ssh_keyfile: "{{ omit }}"
  45. openshift_storage_glusterfs_heketi_fstab: "{{ '/var/lib/heketi/fstab' | quote if openshift_storage_glusterfs_heketi_executor == 'kubernetes' else '/etc/fstab' | quote }}"
  46. openshift_storage_glusterfs_namespace: "{{ 'glusterfs' | quote if openshift_storage_glusterfs_is_native or openshift_storage_glusterfs_heketi_is_native else 'default' | quote }}"
  47. openshift_storage_glusterfs_registry_timeout: "{{ openshift_storage_glusterfs_timeout }}"
  48. openshift_storage_glusterfs_registry_namespace: "{{ openshift_hosted_registry_namespace | default(openshift_storage_glusterfs_namespace) }}"
  49. openshift_storage_glusterfs_registry_is_native: "{{ openshift_storage_glusterfs_is_native }}"
  50. openshift_storage_glusterfs_registry_name: 'registry'
  51. openshift_storage_glusterfs_registry_nodeselector: "glusterfs={{ openshift_storage_glusterfs_registry_name }}-host"
  52. openshift_storage_glusterfs_registry_use_default_selector: "{{ openshift_storage_glusterfs_use_default_selector }}"
  53. openshift_storage_glusterfs_registry_storageclass: False
  54. openshift_storage_glusterfs_registry_storageclass_default: False
  55. openshift_storage_glusterfs_registry_image: "{{ openshift_storage_glusterfs_image }}"
  56. openshift_storage_glusterfs_registry_version: "{{ openshift_storage_glusterfs_version }}"
  57. openshift_storage_glusterfs_registry_block_deploy: "{{ openshift_storage_glusterfs_block_deploy }}"
  58. openshift_storage_glusterfs_registry_block_image: "{{ openshift_storage_glusterfs_block_image }}"
  59. openshift_storage_glusterfs_registry_block_version: "{{ openshift_storage_glusterfs_block_version }}"
  60. openshift_storage_glusterfs_registry_block_host_vol_create: "{{ openshift_storage_glusterfs_block_host_vol_create }}"
  61. openshift_storage_glusterfs_registry_block_host_vol_size: "{{ openshift_storage_glusterfs_block_host_vol_size }}"
  62. openshift_storage_glusterfs_registry_block_host_vol_max: "{{ openshift_storage_glusterfs_block_host_vol_max }}"
  63. openshift_storage_glusterfs_registry_s3_deploy: "{{ openshift_storage_glusterfs_s3_deploy }}"
  64. openshift_storage_glusterfs_registry_s3_image: "{{ openshift_storage_glusterfs_s3_image }}"
  65. openshift_storage_glusterfs_registry_s3_version: "{{ openshift_storage_glusterfs_s3_version }}"
  66. openshift_storage_glusterfs_registry_s3_account: "{{ openshift_storage_glusterfs_s3_account }}"
  67. openshift_storage_glusterfs_registry_s3_user: "{{ openshift_storage_glusterfs_s3_user }}"
  68. openshift_storage_glusterfs_registry_s3_password: "{{ openshift_storage_glusterfs_s3_password }}"
  69. openshift_storage_glusterfs_registry_s3_pvc: "gluster-s3-{{ openshift_storage_glusterfs_registry_name }}-{{ openshift_storage_glusterfs_registry_s3_account }}-claim"
  70. openshift_storage_glusterfs_registry_s3_pvc_size: "{{ openshift_storage_glusterfs_s3_pvc_size }}"
  71. openshift_storage_glusterfs_registry_s3_meta_pvc: "gluster-s3-{{ openshift_storage_glusterfs_registry_name }}-{{ openshift_storage_glusterfs_registry_s3_account }}-meta-claim"
  72. openshift_storage_glusterfs_registry_s3_meta_pvc_size: "{{ openshift_storage_glusterfs_s3_meta_pvc_size }}"
  73. openshift_storage_glusterfs_registry_wipe: "{{ openshift_storage_glusterfs_wipe }}"
  74. openshift_storage_glusterfs_registry_heketi_is_native: "{{ openshift_storage_glusterfs_registry_is_native }}"
  75. openshift_storage_glusterfs_registry_heketi_is_missing: "{{ openshift_storage_glusterfs_heketi_is_missing }}"
  76. openshift_storage_glusterfs_registry_heketi_deploy_is_missing: "{{ openshift_storage_glusterfs_heketi_deploy_is_missing }}"
  77. openshift_storage_glusterfs_registry_heketi_cli: "{{ openshift_storage_glusterfs_heketi_cli }}"
  78. openshift_storage_glusterfs_registry_heketi_image: "{{ openshift_storage_glusterfs_heketi_image }}"
  79. openshift_storage_glusterfs_registry_heketi_version: "{{ openshift_storage_glusterfs_heketi_version }}"
  80. openshift_storage_glusterfs_registry_heketi_admin_key: "{{ omit }}"
  81. openshift_storage_glusterfs_registry_heketi_user_key: "{{ omit }}"
  82. openshift_storage_glusterfs_registry_heketi_topology_load: "{{ openshift_storage_glusterfs_heketi_topology_load }}"
  83. openshift_storage_glusterfs_registry_heketi_wipe: "{{ openshift_storage_glusterfs_heketi_wipe }}"
  84. openshift_storage_glusterfs_registry_heketi_url: "{{ openshift_storage_glusterfs_heketi_url | default(omit) }}"
  85. openshift_storage_glusterfs_registry_heketi_port: "{{ openshift_storage_glusterfs_heketi_port }}"
  86. openshift_storage_glusterfs_registry_heketi_executor: "{{ openshift_storage_glusterfs_heketi_executor }}"
  87. openshift_storage_glusterfs_registry_heketi_ssh_port: "{{ openshift_storage_glusterfs_heketi_ssh_port }}"
  88. openshift_storage_glusterfs_registry_heketi_ssh_user: "{{ openshift_storage_glusterfs_heketi_ssh_user }}"
  89. openshift_storage_glusterfs_registry_heketi_ssh_sudo: "{{ openshift_storage_glusterfs_heketi_ssh_sudo }}"
  90. openshift_storage_glusterfs_registry_heketi_ssh_keyfile: "{{ openshift_storage_glusterfs_heketi_ssh_keyfile | default(omit) }}"
  91. openshift_storage_glusterfs_registry_heketi_fstab: "{{ '/var/lib/heketi/fstab' | quote if openshift_storage_glusterfs_registry_heketi_executor == 'kubernetes' else '/etc/fstab' | quote }}"
  92. r_openshift_storage_glusterfs_firewall_enabled: "{{ os_firewall_enabled | default(True) }}"
  93. r_openshift_storage_glusterfs_use_firewalld: "{{ os_firewall_use_firewalld | default(False) }}"
  94. r_openshift_storage_glusterfs_os_firewall_deny: []
  95. r_openshift_storage_glusterfs_os_firewall_allow:
  96. - service: glusterfs_sshd
  97. port: "2222/tcp"
  98. - service: glusterfs_management
  99. port: "24007/tcp"
  100. - service: glusterfs_rdma
  101. port: "24008/tcp"
  102. - service: glusterfs_bricks
  103. port: "49152-49251/tcp"