You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
2.5 KiB

  1. ---
  2. - name: Cinder CSI Driver | check cinder_auth_url value
  3. fail:
  4. msg: "cinder_auth_url is missing"
  5. when: cinder_auth_url is not defined or not cinder_auth_url
  6. - name: Cinder CSI Driver | check cinder_username value cinder_application_credential_name value
  7. fail:
  8. msg: "you must either set cinder_username or cinder_application_credential_name"
  9. when:
  10. - cinder_username is not defined or not cinder_username
  11. - cinder_application_credential_name is not defined or not cinder_application_credential_name
  12. - name: Cinder CSI Driver | check cinder_application_credential_id value
  13. fail:
  14. msg: "cinder_application_credential_id is missing"
  15. when:
  16. - cinder_application_credential_name is defined
  17. - cinder_application_credential_name|length > 0
  18. - cinder_application_credential_id is not defined or not cinder_application_credential_id
  19. - name: Cinder CSI Driver | check cinder_application_credential_secret value
  20. fail:
  21. msg: "cinder_application_credential_secret is missing"
  22. when:
  23. - cinder_application_credential_name is defined
  24. - cinder_application_credential_name|length > 0
  25. - cinder_application_credential_secret is not defined or not cinder_application_credential_secret
  26. - name: Cinder CSI Driver | check cinder_password value
  27. fail:
  28. msg: "cinder_password is missing"
  29. when:
  30. - cinder_username is defined
  31. - cinder_username|length > 0
  32. - cinder_application_credential_name is not defined or not cinder_application_credential_name
  33. - cinder_application_credential_secret is not defined or not cinder_application_credential_secret
  34. - cinder_password is not defined or not cinder_password
  35. - name: Cinder CSI Driver | check cinder_region value
  36. fail:
  37. msg: "cinder_region is missing"
  38. when: cinder_region is not defined or not cinder_region
  39. - name: Cinder CSI Driver | check cinder_tenant_id value
  40. fail:
  41. msg: "one of cinder_tenant_id or cinder_tenant_name must be specified"
  42. when:
  43. - cinder_tenant_id is not defined or not cinder_tenant_id
  44. - cinder_tenant_name is not defined or not cinder_tenant_name
  45. - cinder_application_credential_name is not defined or not cinder_application_credential_name
  46. - name: Cinder CSI Driver | check cinder_domain_id value
  47. fail:
  48. msg: "one of cinder_domain_id or cinder_domain_name must be specified"
  49. when:
  50. - cinder_domain_id is not defined or not cinder_domain_id
  51. - cinder_domain_name is not defined or not cinder_domain_name
  52. - cinder_application_credential_name is not defined or not cinder_application_credential_name