diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-09-07 16:32:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-07 16:32:56 -0400 |
commit | 7b1c455c01d10ab5aa804ad48a5b60ab53d6a0c8 (patch) | |
tree | b900625cbb8a97af4d2cf0d19d452bd643a9e0ec /playbooks/aws/openshift-cluster/provision_nodes.yml | |
parent | dc0e3d218ba953e1bc1525ef337f99677deee6c3 (diff) | |
parent | efe86b44bce679db38cca654818dc3837bb05f6a (diff) | |
download | openshift-7b1c455c01d10ab5aa804ad48a5b60ab53d6a0c8.tar.gz openshift-7b1c455c01d10ab5aa804ad48a5b60ab53d6a0c8.tar.bz2 openshift-7b1c455c01d10ab5aa804ad48a5b60ab53d6a0c8.tar.xz openshift-7b1c455c01d10ab5aa804ad48a5b60ab53d6a0c8.zip |
Merge pull request #5211 from kwoodson/provisioning_fixes
Provisioning updates.
Diffstat (limited to 'playbooks/aws/openshift-cluster/provision_nodes.yml')
-rw-r--r-- | playbooks/aws/openshift-cluster/provision_nodes.yml | 49 |
1 files changed, 10 insertions, 39 deletions
diff --git a/playbooks/aws/openshift-cluster/provision_nodes.yml b/playbooks/aws/openshift-cluster/provision_nodes.yml index 5428fb307..44c686e08 100644 --- a/playbooks/aws/openshift-cluster/provision_nodes.yml +++ b/playbooks/aws/openshift-cluster/provision_nodes.yml @@ -1,47 +1,18 @@ --- -# Get bootstrap config token -# bootstrap should be created on first master -# need to fetch it and shove it into cloud data - name: create the node scale groups hosts: localhost connection: local gather_facts: yes tasks: - - name: get provisioning vars - include_vars: vars.yml + - name: Alert user to variables needed - clusterid + debug: + msg: "openshift_aws_clusterid={{ openshift_aws_clusterid | default('default') }}" - - name: fetch master instances - ec2_remote_facts: - region: "{{ provision.region }}" - filters: - "tag:clusterid": "{{ provision.clusterid }}" - "tag:host-type": master - instance-state-name: running - register: instancesout - retries: 20 - delay: 3 - until: instancesout.instances|length > 0 + - name: Alert user to variables needed - region + debug: + msg: "openshift_aws_region={{ openshift_aws_region | default('us-east-1') }}" - - name: slurp down the bootstrap.kubeconfig - slurp: - src: /etc/origin/master/bootstrap.kubeconfig - delegate_to: "{{ instancesout.instances[0].public_ip_address }}" - remote_user: root - register: bootstrap - - - name: set_fact on localhost for kubeconfig - set_fact: - local_bootstrap: "{{ bootstrap }}" - launch_config_name: - infra: "infra-{{ ansible_date_time.epoch }}" - compute: "compute-{{ ansible_date_time.epoch }}" - - - name: include build node group - include: build_node_group.yml - vars: - openshift_build_node_type: infra - - - name: include build node group - include: build_node_group.yml - vars: - openshift_build_node_type: compute + - name: create the node groups + include_role: + name: openshift_aws + tasks_from: provision_nodes.yml |