validate_base_vars.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # Copyright 2022 Dell Inc. or its subsidiaries. All Rights Reserved.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. ---
  15. - name: Include telemetry_base_vars.yml file
  16. include_vars: "{{ base_vars_file }}"
  17. no_log: true
  18. - name: Include control_plane base_vars.yml file
  19. include_vars: "{{ control_plane_base_vars_file }}"
  20. no_log: true
  21. - name: Assert idrac telemetry support
  22. assert:
  23. that:
  24. - idrac_telemetry_support == true or idrac_telemetry_support == false
  25. quiet: true
  26. success_msg: "{{ idrac_telemetry_support_success_msg }}"
  27. fail_msg: "{{ idrac_telemetry_support_fail_msg }}"
  28. - name: Assert slurm telemetry support
  29. assert:
  30. that:
  31. - slurm_telemetry_support == true or slurm_telemetry_support == false
  32. quiet: true
  33. success_msg: "{{ slurm_telemetry_support_success_msg }}"
  34. fail_msg: "{{ slurm_telemetry_support_fail_msg }}"
  35. - name: Assert slurm telemetry support
  36. assert:
  37. that:
  38. - idrac_telemetry_support == true
  39. quiet: true
  40. success_msg: "{{ slurm_telemetry_idrac_support_success_msg }}"
  41. fail_msg: "{{ slurm_telemetry_idrac_support_fail_msg }}"
  42. when: slurm_telemetry_support is true
  43. - name: Assert timescale db name
  44. assert:
  45. that: timescaledb_name | length > 1
  46. success_msg: "{{ timescaledb_success_msg }}"
  47. fail_msg: "{{ timescaledb_fail_msg }}"
  48. - name: Assert mysql db name
  49. assert:
  50. that: mysqldb_name | length > 1
  51. success_msg: "{{ mysqldb_success_msg }}"
  52. fail_msg: "{{ mysqldb_fail_msg }}"