config.yml 1.4 KB

12345678910111213141516171819202122232425262728
  1. ---
  2. # TODO: need to figure out a plan for setting hostname, currently the default
  3. # is localhost, so no hostname value (or public_hostname) value is getting
  4. # assigned
  5. - hosts: localhost
  6. gather_facts: no
  7. become: no
  8. connection: local
  9. vars_files:
  10. - vars.yml
  11. tasks:
  12. - set_fact:
  13. g_ssh_user_tmp: "{{ deployment_vars[deployment_type].ssh_user }}"
  14. g_sudo_tmp: "{{ deployment_vars[deployment_type].sudo }}"
  15. - include: ../../common/openshift-cluster/config.yml
  16. vars:
  17. g_etcd_hosts: "{{ (groups['tag_host-type-etcd']|default([])) | intersect((groups['tag_env-' ~ cluster_id]|default([]))) }}"
  18. g_lb_hosts: "{{ (groups['tag_host-type-lb']|default([])) | intersect((groups['tag_env-' ~ cluster_id]|default([]))) }}"
  19. g_master_hosts: "{{ (groups['tag_host-type-master']|default([])) | intersect((groups['tag_env-' ~ cluster_id]|default([]))) }}"
  20. g_nfs_hosts: "{{ (groups['tag_host-type-node']|default([])) | intersect((groups['tag_env-' ~ cluster_id]|default([]))) }}"
  21. g_node_hosts: "{{ (groups['tag_host-type-node']|default([])) | intersect((groups['tag_env-' ~ cluster_id]|default([]))) }}"
  22. g_ssh_user: "{{ hostvars.localhost.g_ssh_user_tmp }}"
  23. g_sudo: "{{ hostvars.localhost.g_sudo_tmp }}"
  24. openshift_cluster_id: "{{ cluster_id }}"
  25. openshift_debug_level: 2
  26. openshift_deployment_type: "{{ deployment_type }}"