scaleup.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. ---
  2. - hosts: localhost
  3. gather_facts: no
  4. vars_files:
  5. - vars.yml
  6. tasks:
  7. - set_fact:
  8. g_ssh_user_tmp: "{{ deployment_vars[deployment_type].ssh_user }}"
  9. g_sudo_tmp: "{{ deployment_vars[deployment_type].sudo }}"
  10. - name: Evaluate oo_hosts_to_update
  11. add_host:
  12. name: "{{ item }}"
  13. groups: oo_hosts_to_update
  14. ansible_ssh_user: "{{ deployment_vars[deployment_type].ssh_user }}"
  15. ansible_sudo: "{{ deployment_vars[deployment_type].sudo }}"
  16. with_items: "{{ groups.nodes_to_add }}"
  17. - include: ../../common/openshift-cluster/update_repos_and_packages.yml
  18. - include: ../../common/openshift-cluster/scaleup.yml
  19. vars:
  20. g_etcd_group: "{{ 'tag_env-host-type_' ~ cluster_id ~ '-openshift-etcd' }}"
  21. g_lb_group: "{{ 'tag_env-host-type_' ~ cluster_id ~ '-openshift-lb' }}"
  22. g_masters_group: "{{ 'tag_env-host-type_' ~ cluster_id ~ '-openshift-master' }}"
  23. g_new_nodes_group: 'nodes_to_add'
  24. g_ssh_user: "{{ hostvars.localhost.g_ssh_user_tmp }}"
  25. g_sudo: "{{ hostvars.localhost.g_sudo_tmp }}"
  26. g_nodeonmaster: true
  27. openshift_cluster_id: "{{ cluster_id }}"
  28. openshift_debug_level: 2
  29. openshift_deployment_type: "{{ deployment_type }}"
  30. openshift_hostname: "{{ ec2_private_ip_address }}"
  31. openshift_public_hostname: "{{ ec2_ip_address }}"