summaryrefslogtreecommitdiffstats
path: root/roles/openshift_aws/tasks/launch_config.yml
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2017-11-08 15:51:17 -0500
committerGitHub <noreply@github.com>2017-11-08 15:51:17 -0500
commita7172e8482124feeccf07671fc8263a79fc281a0 (patch)
tree1838759eba169d41807ec7ed2e0dd319269210ae /roles/openshift_aws/tasks/launch_config.yml
parent52d2eb56e3198ed83c7c9a912aa22919e2180985 (diff)
parent8757073d8509a6301b70ff66383d84416bdd78cb (diff)
downloadopenshift-a7172e8482124feeccf07671fc8263a79fc281a0.tar.gz
openshift-a7172e8482124feeccf07671fc8263a79fc281a0.tar.bz2
openshift-a7172e8482124feeccf07671fc8263a79fc281a0.tar.xz
openshift-a7172e8482124feeccf07671fc8263a79fc281a0.zip
Merge pull request #6016 from kwoodson/bootstrap_enhancements-v3
Bootstrap enhancements.
Diffstat (limited to 'roles/openshift_aws/tasks/launch_config.yml')
-rw-r--r--roles/openshift_aws/tasks/launch_config.yml32
1 files changed, 4 insertions, 28 deletions
diff --git a/roles/openshift_aws/tasks/launch_config.yml b/roles/openshift_aws/tasks/launch_config.yml
index 94aca5a35..0dbeba5a0 100644
--- a/roles/openshift_aws/tasks/launch_config.yml
+++ b/roles/openshift_aws/tasks/launch_config.yml
@@ -9,31 +9,7 @@
when:
- openshift_deployment_type is undefined
-- name: query vpc
- ec2_vpc_net_facts:
- region: "{{ openshift_aws_region }}"
- filters:
- 'tag:Name': "{{ openshift_aws_vpc_name }}"
- register: vpcout
-
-- name: fetch the security groups for launch config
- ec2_group_facts:
- filters:
- group-name: "{{ openshift_aws_elb_security_groups }}"
- vpc-id: "{{ vpcout.vpcs[0].id }}"
- region: "{{ openshift_aws_region }}"
- register: ec2sgs
-
-# Create the scale group config
-- name: Create the node scale group launch config
- ec2_lc:
- name: "{{ openshift_aws_launch_config_name }}"
- region: "{{ openshift_aws_region }}"
- image_id: "{{ openshift_aws_ami }}"
- instance_type: "{{ openshift_aws_node_group_config[openshift_aws_node_group_type].instance_type }}"
- security_groups: "{{ openshift_aws_launch_config_security_group_id | default(ec2sgs.security_groups | map(attribute='group_id')| list) }}"
- user_data: "{{ lookup('template', 'user_data.j2') }}"
- key_name: "{{ openshift_aws_ssh_key_name }}"
- ebs_optimized: False
- volumes: "{{ openshift_aws_node_group_config[openshift_aws_node_group_type].volumes }}"
- assign_public_ip: True
+- include: launch_config_create.yml
+ with_dict: "{{ l_nodes_to_build }}"
+ loop_control:
+ loop_var: launch_config_item