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.

67 lines
2.4 KiB

  1. ---
  2. - name: "OCI Cloud Controller | Credentials Check | oci_private_key"
  3. fail:
  4. msg: "oci_private_key is missing"
  5. when:
  6. - not oci_use_instance_principals
  7. - oci_private_key is not defined or not oci_private_key
  8. - name: "OCI Cloud Controller | Credentials Check | oci_region_id"
  9. fail:
  10. msg: "oci_region_id is missing"
  11. when:
  12. - not oci_use_instance_principals
  13. - oci_region_id is not defined or not oci_region_id
  14. - name: "OCI Cloud Controller | Credentials Check | oci_tenancy_id"
  15. fail:
  16. msg: "oci_tenancy_id is missing"
  17. when:
  18. - not oci_use_instance_principals
  19. - oci_tenancy_id is not defined or not oci_tenancy_id
  20. - name: "OCI Cloud Controller | Credentials Check | oci_user_id"
  21. fail:
  22. msg: "oci_user_id is missing"
  23. when:
  24. - not oci_use_instance_principals
  25. - oci_user_id is not defined or not oci_user_id
  26. - name: "OCI Cloud Controller | Credentials Check | oci_user_fingerprint"
  27. fail:
  28. msg: "oci_user_fingerprint is missing"
  29. when:
  30. - not oci_use_instance_principals
  31. - oci_user_fingerprint is not defined or not oci_user_fingerprint
  32. - name: "OCI Cloud Controller | Credentials Check | oci_compartment_id"
  33. fail:
  34. msg: "oci_compartment_id is missing. This is the compartment in which the cluster resides"
  35. when:
  36. - oci_compartment_id is not defined or not oci_compartment_id
  37. - name: "OCI Cloud Controller | Credentials Check | oci_vnc_id"
  38. fail:
  39. msg: "oci_vnc_id is missing. This is the Virtual Cloud Network in which the cluster resides"
  40. when:
  41. - oci_vnc_id is not defined or not oci_vnc_id
  42. - name: "OCI Cloud Controller | Credentials Check | oci_subnet1_id"
  43. fail:
  44. msg: "oci_subnet1_id is missingg. This is the first subnet to which loadbalancers will be added"
  45. when:
  46. - oci_subnet1_id is not defined or not oci_subnet1_id
  47. - name: "OCI Cloud Controller | Credentials Check | oci_subnet2_id"
  48. fail:
  49. msg: "oci_subnet2_id is missing. Two subnets are required for load balancer high availability"
  50. when:
  51. - oci_cloud_controller_version is version_compare('0.7.0', '<')
  52. - oci_subnet2_id is not defined or not oci_subnet2_id
  53. - name: "OCI Cloud Controller | Credentials Check | oci_security_list_management"
  54. fail:
  55. msg: "oci_security_list_management is missing, or not defined correctly. Valid options are (All, Frontend, None)."
  56. when:
  57. - oci_security_list_management is not defined or oci_security_list_management not in ["All", "Frontend", "None"]