system_container.yml 1.2 KB

12345678910111213141516171819202122232425262728
  1. ---
  2. - name: Pre-pull master system container image
  3. command: >
  4. atomic pull --storage=ostree {{ 'docker:' if system_images_registry == 'docker' else system_images_registry + '/' }}{{ openshift.master.master_system_image }}:{{ openshift_image_tag }}
  5. register: l_pull_result
  6. changed_when: "'Pulling layer' in l_pull_result.stdout"
  7. - name: Check Master system container package
  8. command: >
  9. atomic containers list --no-trunc -a -f container={{ openshift_service_type }}-master
  10. # HA
  11. - name: Install or Update HA api master system container
  12. oc_atomic_container:
  13. name: "{{ openshift_service_type }}-master-api"
  14. image: "{{ 'docker:' if system_images_registry == 'docker' else system_images_registry + '/' }}{{ openshift.master.master_system_image }}:{{ openshift_image_tag }}"
  15. state: latest
  16. values:
  17. - COMMAND=api
  18. - name: Install or Update HA controller master system container
  19. oc_atomic_container:
  20. name: "{{ openshift_service_type }}-master-controllers"
  21. image: "{{ 'docker:' if system_images_registry == 'docker' else system_images_registry + '/' }}{{ openshift.master.master_system_image }}:{{ openshift_image_tag }}"
  22. state: latest
  23. values:
  24. - COMMAND=controllers