config.yml 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. - hosts: localhost
  2. gather_facts: no
  3. become: no
  4. connection: local
  5. vars_files:
  6. - vars.yml
  7. - cluster_hosts.yml
  8. tasks:
  9. - set_fact:
  10. g_ssh_user_tmp: "{{ deployment_vars[deployment_type].ssh_user }}"
  11. g_sudo_tmp: "{{ deployment_vars[deployment_type].sudo }}"
  12. g_etcd_hosts: "{{ etcd_hosts }}"
  13. g_lb_hosts: "{{ lb_hosts }}"
  14. g_master_hosts: "{{ master_hosts }}"
  15. g_node_hosts: "{{ node_hosts }}"
  16. g_nfs_hosts: "{{ nfs_hosts }}"
  17. - include: ../../common/openshift-cluster/config.yml
  18. vars:
  19. g_etcd_hosts: "{{ hostvars.localhost.g_etcd_hosts }}"
  20. g_lb_hosts: "{{ hostvars.localhost.g_lb_hosts }}"
  21. g_master_hosts: "{{ hostvars.localhost.g_master_hosts }}"
  22. g_node_hosts: "{{ hostvars.localhost.g_node_hosts }}"
  23. g_nfs_hosts: "{{ hostvars.localhost.g_nfs_hosts }}"
  24. g_ssh_user: "{{ hostvars.localhost.g_ssh_user_tmp }}"
  25. g_sudo: "{{ hostvars.localhost.g_sudo_tmp }}"
  26. openshift_cluster_id: "{{ cluster_id }}"
  27. openshift_debug_level: 2
  28. openshift_deployment_type: "{{ deployment_type }}"
  29. openshift_hostname: "{{ ansible_default_ipv4.address }}"