Guillaume Coré
2018-11-15 75cb3019b316489e3f0cd66b13ab9849d9ca1aaa
Add missing custom_image_id to ocp-clientvm CF template
1 files modified
4 ■■■■ changed files
ansible/configs/ocp-clientvm/files/cloud_providers/ec2_cloud_template.j2 4 ●●●● patch | view | raw | blame | history
ansible/configs/ocp-clientvm/files/cloud_providers/ec2_cloud_template.j2
@@ -238,11 +238,15 @@
  clientvm{{loop.index}}:
    Type: "AWS::EC2::Instance"
    Properties:
{% if custom_image is defined %}
      ImageId: {{ custom_image.image_id }}
{% else %}
      ImageId:
        Fn::FindInMap:
        - RegionMapping
        - Ref: AWS::Region
        - 'RHELAMI'
{% endif %}
      InstanceType: "{{instances[0]['flavor'][cloud_provider]}}"
      KeyName: "{{instances[0]['key_name'] | default(key_name)}}"
      SecurityGroupIds: