system_container.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132
  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 + '/' }}{{ osm_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 + '/' }}{{ osm_image }}:{{ openshift_image_tag }}"
  15. state: latest
  16. values:
  17. - COMMAND=api
  18. - "NODE_SERVICE={{ openshift_service_type }}-node.service"
  19. - "DOCKER_SERVICE={{ openshift_docker_service_name }}.service"
  20. - name: Install or Update HA controller master system container
  21. oc_atomic_container:
  22. name: "{{ openshift_service_type }}-master-controllers"
  23. image: "{{ 'docker:' if system_images_registry == 'docker' else system_images_registry + '/' }}{{ osm_image }}:{{ openshift_image_tag }}"
  24. state: latest
  25. values:
  26. - COMMAND=controllers
  27. - "NODE_SERVICE={{ openshift_service_type }}-node.service"
  28. - "DOCKER_SERVICE={{ openshift_docker_service_name }}.service"