config.yml 1016 B

1234567891011121314151617181920212223242526
  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_group: "{{ 'tag_env-host-type_' ~ cluster_id ~ '-openshift-etcd' }}"
  15. g_lb_group: "{{ 'tag_env-host-type_' ~ cluster_id ~ '-openshift-lb' }}"
  16. g_masters_group: "{{ 'tag_env-host-type_' ~ cluster_id ~ '-openshift-master' }}"
  17. g_nodes_group: "{{ 'tag_env-host-type_' ~ cluster_id ~ '-openshift-node' }}"
  18. g_ssh_user: "{{ hostvars.localhost.g_ssh_user_tmp }}"
  19. g_sudo: "{{ hostvars.localhost.g_sudo_tmp }}"
  20. g_nodeonmaster: true
  21. openshift_cluster_id: "{{ cluster_id }}"
  22. openshift_debug_level: 2
  23. openshift_deployment_type: "{{ deployment_type }}"
  24. openshift_hostname: "{{ ec2_private_ip_address }}"
  25. openshift_public_hostname: "{{ ec2_ip_address }}"