provision_nodes.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. ---
  2. # Get bootstrap config token
  3. # bootstrap should be created on first master
  4. # need to fetch it and shove it into cloud data
  5. - include_tasks: setup_master_group.yml
  6. - name: slurp down the bootstrap.kubeconfig
  7. slurp:
  8. src: /etc/origin/master/bootstrap.kubeconfig
  9. delegate_to: "{{ groups.masters.0 }}"
  10. register: bootstrap
  11. - name: set_fact for kubeconfig token
  12. set_fact:
  13. openshift_aws_launch_config_bootstrap_token: "{{ bootstrap['content'] | b64decode }}"
  14. - include_tasks: vpc_and_subnet_id.yml
  15. - name: include build compute and infra node groups
  16. include_tasks: build_node_group.yml
  17. with_items: "{{ openshift_aws_node_groups }}"
  18. vars:
  19. l_node_group_config: "{{ openshift_aws_node_group_config }}"
  20. loop_control:
  21. loop_var: openshift_aws_node_group
  22. # instances aren't scaling fast enough here, we need to wait for them
  23. - when: openshift_aws_wait_for_ssh | bool
  24. name: wait for our new nodes to come up
  25. include_tasks: wait_for_groups.yml
  26. vars:
  27. created_asgs: "{{ openshift_aws_created_asgs }}"