config.yml 830 B

1234567891011121314151617181920
  1. - hosts: localhost
  2. gather_facts: no
  3. vars_files:
  4. - vars.yml
  5. tasks:
  6. - set_fact:
  7. g_ssh_user_tmp: "{{ deployment_vars[deployment_type].ssh_user }}"
  8. g_sudo_tmp: "{{ deployment_vars[deployment_type].sudo }}"
  9. - include: ../../common/openshift-cluster/config.yml
  10. vars:
  11. g_etcd_group: "{{ 'tag_env-host-type_' ~ cluster_id ~ '-openshift-etcd' }}"
  12. g_masters_group: "{{ 'tag_env-host-type_' ~ cluster_id ~ '-openshift-master' }}"
  13. g_nodes_group: "{{ 'tag_env-host-type_' ~ cluster_id ~ '-openshift-node' }}"
  14. g_ssh_user: "{{ hostvars.localhost.g_ssh_user_tmp }}"
  15. g_sudo: "{{ hostvars.localhost.g_sudo_tmp }}"
  16. openshift_cluster_id: "{{ cluster_id }}"
  17. openshift_debug_level: 4
  18. openshift_deployment_type: "{{ deployment_type }}"
  19. openshift_hostname: "{{ ansible_default_ipv4.address }}"