main.yml 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. ---
  2. # lib_utils_oo_oreg_image is a custom filter defined in roles/lib_utils/filter_plugins/oo_filters.py
  3. # This filter attempts to combine oreg_url host with project/component from l_gluster*_image_dict.
  4. # "oreg.example.com/openshift3/ose-${component}:${version}"
  5. # becomes "oreg.example.com/rhgs3/rhgs-server-rhel7:latest"
  6. l_gluster_image_dict:
  7. origin: "docker.io/gluster/gluster-centos:latest"
  8. openshift-enterprise: "registry.access.redhat.com/rhgs3/rhgs-server-rhel7:latest"
  9. openshift_storage_glusterfs_image: "{{ l_gluster_image_dict[openshift_deployment_type] | lib_utils_oo_oreg_image((oreg_url | default('None'))) }}"
  10. l_gluster_block_image_dict:
  11. origin: "docker.io/gluster/glusterblock-provisioner:latest"
  12. openshift-enterprise: "registry.access.redhat.com/rhgs3/rhgs-gluster-block-prov-rhel7:latest"
  13. openshift_storage_glusterfs_block_image: "{{ l_gluster_block_image_dict[openshift_deployment_type] | lib_utils_oo_oreg_image((oreg_url | default('None'))) }}"
  14. l_gluster_s3_image_dict:
  15. origin: "docker.io/gluster/gluster-object:latest"
  16. openshift-enterprise: "registry.access.redhat.com/rhgs3/rhgs-s3-server-rhel7:latest"
  17. openshift_storage_glusterfs_s3_image: "{{ l_gluster_s3_image_dict[openshift_deployment_type] | lib_utils_oo_oreg_image((oreg_url | default('None'))) }}"
  18. l_gluster_heketi_image_dict:
  19. origin: "docker.io/heketi/heketi:latest"
  20. openshift-enterprise: "registry.access.redhat.com/rhgs3/rhgs-volmanager-rhel7:latest"
  21. openshift_storage_glusterfs_heketi_image: "{{ l_gluster_heketi_image_dict[openshift_deployment_type] | lib_utils_oo_oreg_image((oreg_url | default('None'))) }}"
  22. openshift_storage_glusterfs_timeout: 300
  23. openshift_storage_glusterfs_is_native: True
  24. openshift_storage_glusterfs_name: 'storage'
  25. openshift_storage_glusterfs_nodeselector: "glusterfs={{ openshift_storage_glusterfs_name }}-host"
  26. openshift_storage_glusterfs_use_default_selector: False
  27. openshift_storage_glusterfs_storageclass: True
  28. openshift_storage_glusterfs_storageclass_default: False
  29. openshift_storage_glusterfs_block_deploy: True
  30. openshift_storage_glusterfs_block_host_vol_create: True
  31. openshift_storage_glusterfs_block_host_vol_size: 100
  32. openshift_storage_glusterfs_block_host_vol_max: 15
  33. openshift_storage_glusterfs_block_storageclass: False
  34. openshift_storage_glusterfs_block_storageclass_default: False
  35. openshift_storage_glusterfs_s3_deploy: True
  36. openshift_storage_glusterfs_s3_account: "{{ omit }}"
  37. openshift_storage_glusterfs_s3_user: "{{ omit }}"
  38. openshift_storage_glusterfs_s3_password: "{{ omit }}"
  39. openshift_storage_glusterfs_s3_pvc: "gluster-s3-{{ openshift_storage_glusterfs_name }}-{{ openshift_storage_glusterfs_s3_account }}-claim"
  40. openshift_storage_glusterfs_s3_pvc_size: "2Gi"
  41. openshift_storage_glusterfs_s3_meta_pvc: "gluster-s3-{{ openshift_storage_glusterfs_name }}-{{ openshift_storage_glusterfs_s3_account }}-meta-claim"
  42. openshift_storage_glusterfs_s3_meta_pvc_size: "1Gi"
  43. openshift_storage_glusterfs_wipe: False
  44. openshift_storage_glusterfs_heketi_is_native: "{{ openshift_storage_glusterfs_is_native }}"
  45. openshift_storage_glusterfs_heketi_is_missing: True
  46. openshift_storage_glusterfs_heketi_deploy_is_missing: True
  47. openshift_storage_glusterfs_heketi_cli: 'heketi-cli'
  48. openshift_storage_glusterfs_heketi_admin_key: "{{ omit }}"
  49. openshift_storage_glusterfs_heketi_user_key: "{{ omit }}"
  50. openshift_storage_glusterfs_heketi_topology_load: True
  51. openshift_storage_glusterfs_heketi_wipe: "{{ openshift_storage_glusterfs_wipe }}"
  52. openshift_storage_glusterfs_heketi_url: "{{ omit }}"
  53. openshift_storage_glusterfs_heketi_port: 8080
  54. openshift_storage_glusterfs_heketi_executor: 'kubernetes'
  55. openshift_storage_glusterfs_heketi_ssh_port: 22
  56. openshift_storage_glusterfs_heketi_ssh_user: 'root'
  57. openshift_storage_glusterfs_heketi_ssh_sudo: False
  58. openshift_storage_glusterfs_heketi_ssh_keyfile: "{{ omit }}"
  59. openshift_storage_glusterfs_heketi_fstab: "{{ '/var/lib/heketi/fstab' | quote if openshift_storage_glusterfs_heketi_executor == 'kubernetes' else '/etc/fstab' | quote }}"
  60. openshift_storage_glusterfs_namespace: "{{ 'glusterfs' | quote if openshift_storage_glusterfs_is_native or openshift_storage_glusterfs_heketi_is_native else 'default' | quote }}"
  61. openshift_storage_glusterfs_registry_timeout: "{{ openshift_storage_glusterfs_timeout }}"
  62. openshift_storage_glusterfs_registry_namespace: "{{ openshift_hosted_registry_namespace | default(openshift_storage_glusterfs_namespace) }}"
  63. openshift_storage_glusterfs_registry_is_native: "{{ openshift_storage_glusterfs_is_native }}"
  64. openshift_storage_glusterfs_registry_name: 'registry'
  65. openshift_storage_glusterfs_registry_nodeselector: "glusterfs={{ openshift_storage_glusterfs_registry_name }}-host"
  66. openshift_storage_glusterfs_registry_use_default_selector: "{{ openshift_storage_glusterfs_use_default_selector }}"
  67. openshift_storage_glusterfs_registry_storageclass: False
  68. openshift_storage_glusterfs_registry_storageclass_default: False
  69. openshift_storage_glusterfs_registry_image: "{{ openshift_storage_glusterfs_image }}"
  70. openshift_storage_glusterfs_registry_block_deploy: "{{ openshift_storage_glusterfs_block_deploy }}"
  71. openshift_storage_glusterfs_registry_block_image: "{{ openshift_storage_glusterfs_block_image }}"
  72. openshift_storage_glusterfs_registry_block_host_vol_create: "{{ openshift_storage_glusterfs_block_host_vol_create }}"
  73. openshift_storage_glusterfs_registry_block_host_vol_size: "{{ openshift_storage_glusterfs_block_host_vol_size }}"
  74. openshift_storage_glusterfs_registry_block_host_vol_max: "{{ openshift_storage_glusterfs_block_host_vol_max }}"
  75. openshift_storage_glusterfs_registry_block_storageclass: False
  76. openshift_storage_glusterfs_registry_block_storageclass_default: False
  77. openshift_storage_glusterfs_registry_s3_deploy: "{{ openshift_storage_glusterfs_s3_deploy }}"
  78. openshift_storage_glusterfs_registry_s3_image: "{{ openshift_storage_glusterfs_s3_image }}"
  79. openshift_storage_glusterfs_registry_s3_account: "{{ openshift_storage_glusterfs_s3_account }}"
  80. openshift_storage_glusterfs_registry_s3_user: "{{ openshift_storage_glusterfs_s3_user }}"
  81. openshift_storage_glusterfs_registry_s3_password: "{{ openshift_storage_glusterfs_s3_password }}"
  82. openshift_storage_glusterfs_registry_s3_pvc: "gluster-s3-{{ openshift_storage_glusterfs_registry_name }}-{{ openshift_storage_glusterfs_registry_s3_account }}-claim"
  83. openshift_storage_glusterfs_registry_s3_pvc_size: "{{ openshift_storage_glusterfs_s3_pvc_size }}"
  84. openshift_storage_glusterfs_registry_s3_meta_pvc: "gluster-s3-{{ openshift_storage_glusterfs_registry_name }}-{{ openshift_storage_glusterfs_registry_s3_account }}-meta-claim"
  85. openshift_storage_glusterfs_registry_s3_meta_pvc_size: "{{ openshift_storage_glusterfs_s3_meta_pvc_size }}"
  86. openshift_storage_glusterfs_registry_wipe: "{{ openshift_storage_glusterfs_wipe }}"
  87. openshift_storage_glusterfs_registry_heketi_is_native: "{{ openshift_storage_glusterfs_registry_is_native }}"
  88. openshift_storage_glusterfs_registry_heketi_is_missing: "{{ openshift_storage_glusterfs_heketi_is_missing }}"
  89. openshift_storage_glusterfs_registry_heketi_deploy_is_missing: "{{ openshift_storage_glusterfs_heketi_deploy_is_missing }}"
  90. openshift_storage_glusterfs_registry_heketi_cli: "{{ openshift_storage_glusterfs_heketi_cli }}"
  91. openshift_storage_glusterfs_registry_heketi_image: "{{ openshift_storage_glusterfs_heketi_image }}"
  92. openshift_storage_glusterfs_registry_heketi_admin_key: "{{ omit }}"
  93. openshift_storage_glusterfs_registry_heketi_user_key: "{{ omit }}"
  94. openshift_storage_glusterfs_registry_heketi_topology_load: "{{ openshift_storage_glusterfs_heketi_topology_load }}"
  95. openshift_storage_glusterfs_registry_heketi_wipe: "{{ openshift_storage_glusterfs_heketi_wipe }}"
  96. openshift_storage_glusterfs_registry_heketi_url: "{{ openshift_storage_glusterfs_heketi_url | default(omit) }}"
  97. openshift_storage_glusterfs_registry_heketi_port: "{{ openshift_storage_glusterfs_heketi_port }}"
  98. openshift_storage_glusterfs_registry_heketi_executor: "{{ openshift_storage_glusterfs_heketi_executor }}"
  99. openshift_storage_glusterfs_registry_heketi_ssh_port: "{{ openshift_storage_glusterfs_heketi_ssh_port }}"
  100. openshift_storage_glusterfs_registry_heketi_ssh_user: "{{ openshift_storage_glusterfs_heketi_ssh_user }}"
  101. openshift_storage_glusterfs_registry_heketi_ssh_sudo: "{{ openshift_storage_glusterfs_heketi_ssh_sudo }}"
  102. openshift_storage_glusterfs_registry_heketi_ssh_keyfile: "{{ openshift_storage_glusterfs_heketi_ssh_keyfile | default(omit) }}"
  103. openshift_storage_glusterfs_registry_heketi_fstab: "{{ '/var/lib/heketi/fstab' | quote if openshift_storage_glusterfs_registry_heketi_executor == 'kubernetes' else '/etc/fstab' | quote }}"
  104. r_openshift_storage_glusterfs_firewall_enabled: "{{ os_firewall_enabled | default(True) }}"
  105. r_openshift_storage_glusterfs_use_firewalld: "{{ os_firewall_use_firewalld | default(False) }}"
  106. r_openshift_storage_glusterfs_os_firewall_deny: []
  107. r_openshift_storage_glusterfs_os_firewall_allow:
  108. - service: glusterfs_sshd
  109. port: "2222/tcp"
  110. - service: glusterfs_management
  111. port: "24007/tcp"
  112. - service: glusterfs_rdma
  113. port: "24008/tcp"
  114. - service: glusterfs_bricks
  115. port: "49152-49251/tcp"
  116. - service: glusterblockd
  117. port: "24010/tcp"
  118. - service: iscsi-targets
  119. port: "3260/tcp"
  120. - service: rpcbind
  121. port: "111/tcp"