upgrade_scheduler.yml 802 B

123456789101112131415161718192021222324
  1. ---
  2. # Upgrade predicates
  3. - include_tasks: upgrade_predicates.yml
  4. # Upgrade priorities
  5. - include_tasks: upgrade_priorities.yml
  6. # Update scheduler
  7. - name: Update scheduler config
  8. copy:
  9. content: "{{ upgrade_scheduler_config | to_nice_json }}"
  10. dest: "{{ openshift_master_scheduler_conf }}"
  11. backup: true
  12. when: >
  13. openshift_upgrade_scheduler_predicates is defined or
  14. openshift_upgrade_scheduler_priorities is defined
  15. vars:
  16. upgrade_scheduler_config:
  17. kind: Policy
  18. apiVersion: v1
  19. predicates: "{{ openshift_upgrade_scheduler_predicates
  20. | default(openshift_master_scheduler_current_predicates) }}"
  21. priorities: "{{ openshift_upgrade_scheduler_priorities
  22. | default(openshift_master_scheduler_current_priorities) }}"