upgrade_facts.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. ---
  2. # This file exists because we call systemd_units.yml from outside of the role
  3. # during upgrades. When we remove this pattern, we can probably
  4. # eliminate most of these set_fact items.
  5. - name: Set openshift_master_config_dir if unset
  6. set_fact:
  7. openshift_master_config_dir: '/etc/origin/master'
  8. when: openshift_master_config_dir is not defined
  9. - name: Set r_openshift_master_data_dir if unset
  10. set_fact:
  11. r_openshift_master_data_dir: "{{ openshift_data_dir | default('/var/lib/origin') }}"
  12. when: r_openshift_master_data_dir is not defined
  13. - set_fact:
  14. oreg_auth_credentials_path: "{{ r_openshift_master_data_dir }}/.docker"
  15. when: oreg_auth_credentials_path is not defined
  16. - set_fact:
  17. oreg_host: "{{ oreg_url.split('/')[0] if (oreg_url is defined and '.' in oreg_url.split('/')[0]) else '' }}"
  18. when: oreg_host is not defined
  19. - set_fact:
  20. oreg_auth_credentials_replace: False
  21. when: oreg_auth_credentials_replace is not defined
  22. - name: Set openshift_master_debug_level
  23. set_fact:
  24. openshift_master_debug_level: "{{ debug_level | default(2) }}"
  25. when:
  26. - openshift_master_debug_level is not defined
  27. - name: Init HA Service Info
  28. set_fact:
  29. containerized_svc_dir: "{{ containerized_svc_dir | default('/usr/lib/systemd/system') }}"
  30. ha_svc_template_path: "{{ ha_svc_template_path | default('native-cluster') }}"