A collection of Ansible playbooks to detect and report potential issues during TripleO deployments
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.
 
 
 
 

40 lines
1.2 KiB

  1. ---
  2. - hosts: undercloud
  3. vars:
  4. metadata:
  5. name: Check the number of IP addresses available for the overcloud nodes
  6. description: >
  7. Verify that the number of IP addresses defined in `dhcp_start` and
  8. `dhcp_end` fields in `undercloud.conf` is not too low.
  9. groups:
  10. - pre-introspection
  11. ctlplane_iprange_min_size: 20
  12. tasks:
  13. - name: Get the path of tripleo undercloud config file
  14. become: true
  15. hiera: name="tripleo_undercloud_conf_file"
  16. - name: Get dhcp_start value from the undercloud.conf file
  17. become: true
  18. ini:
  19. path: "{{ tripleo_undercloud_conf_file }}"
  20. section: ctlplane-subnet
  21. key: dhcp_start
  22. ignore_missing_file: True
  23. register: dhcp_start
  24. - name: Get dhcp_end value from the undercloud.conf file
  25. become: true
  26. ini:
  27. path: "{{ tripleo_undercloud_conf_file }}"
  28. section: ctlplane-subnet
  29. key: dhcp_end
  30. ignore_missing_file: True
  31. register: dhcp_end
  32. - name: Check the size of the DHCP range for overcloud nodes
  33. ip_range:
  34. start: "{{ dhcp_start.value|default('192.0.2.5') }}"
  35. end: "{{ dhcp_end.value|default('192.0.2.24') }}"
  36. min_size: "{{ ctlplane_iprange_min_size }}"