diff options
author | Kenny Woodson <kwoodson@redhat.com> | 2017-10-28 20:46:44 -0400 |
---|---|---|
committer | Michael Gugino <mgugino@redhat.com> | 2017-11-03 15:12:09 -0400 |
commit | 983fdade31c57654854cce3c5340e8bf5a7838e7 (patch) | |
tree | 5c94d39c8e802a0b88451bd36efd8947be858588 /roles/openshift_aws/tasks/launch_config_create.yml | |
parent | adb5c51666dfe7c6b93c7bd7c87b339ef2a27f5b (diff) | |
download | openshift-983fdade31c57654854cce3c5340e8bf5a7838e7.tar.gz openshift-983fdade31c57654854cce3c5340e8bf5a7838e7.tar.bz2 openshift-983fdade31c57654854cce3c5340e8bf5a7838e7.tar.xz openshift-983fdade31c57654854cce3c5340e8bf5a7838e7.zip |
Bootstrap enhancements.
Diffstat (limited to 'roles/openshift_aws/tasks/launch_config_create.yml')
-rw-r--r-- | roles/openshift_aws/tasks/launch_config_create.yml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/roles/openshift_aws/tasks/launch_config_create.yml b/roles/openshift_aws/tasks/launch_config_create.yml new file mode 100644 index 000000000..8265c2179 --- /dev/null +++ b/roles/openshift_aws/tasks/launch_config_create.yml @@ -0,0 +1,22 @@ +--- +- name: fetch the security groups for launch config + ec2_group_facts: + filters: + group-name: "{{ l_launch_config_security_groups[launch_config_item.key] }}" + 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_basename }}-{{ launch_config_item.key }}-{{ l_epoch_time }}" + region: "{{ openshift_aws_region }}" + image_id: "{{ l_aws_ami_map[launch_config_item.key] | default(openshift_aws_ami) }}" + instance_type: "{{ launch_config_item.value.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: "{{ launch_config_item.value.volumes }}" + assign_public_ip: True |