config.yml 1.3 KB

123456789101112131415161718192021222324252627
  1. ---
  2. - hosts: localhost
  3. gather_facts: no
  4. connection: local
  5. become: no
  6. vars_files:
  7. - vars.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. - include: ../../common/openshift-cluster/config.yml
  13. vars:
  14. g_etcd_hosts: "{{ (groups['tag_host-type_etcd']|default([])) | intersect((groups['tag_env_' ~ cluster_id]|default([]))) }}"
  15. g_lb_hosts: "{{ (groups['tag_host-type_lb']|default([])) | intersect((groups['tag_env_' ~ cluster_id]|default([]))) }}"
  16. g_master_hosts: "{{ (groups['tag_host-type_master']|default([])) | intersect((groups['tag_env_' ~ cluster_id]|default([]))) }}"
  17. g_nfs_hosts: "{{ (groups['tag_host-type_nfs']|default([])) | intersect((groups['tag_env_' ~ cluster_id]|default([]))) }}"
  18. g_node_hosts: "{{ (groups['tag_host-type_node']|default([])) | intersect((groups['tag_env_' ~ cluster_id]|default([]))) }}"
  19. g_ssh_user: "{{ hostvars.localhost.g_ssh_user_tmp }}"
  20. g_sudo: "{{ hostvars.localhost.g_sudo_tmp }}"
  21. g_nodeonmaster: true
  22. openshift_cluster_id: "{{ cluster_id }}"
  23. openshift_debug_level: 2
  24. openshift_deployment_type: "{{ deployment_type }}"
  25. openshift_hostname: "{{ ec2_private_ip_address }}"
  26. openshift_public_hostname: "{{ ec2_ip_address }}"