From ac38cae7f5352a0c2592d6789bdd5e35ca5aa900 Mon Sep 17 00:00:00 2001 From: Zane Bitter Date: Mon, 15 Oct 2012 16:33:19 +0200 Subject: [PATCH] Obey the passed in distro value in HAProxy template Change-Id: I7e1dad654746329763bb575a09611aa0b827ec24 Signed-off-by: Zane Bitter --- templates/HAProxy_Single_Instance.template | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/templates/HAProxy_Single_Instance.template b/templates/HAProxy_Single_Instance.template index 26143a25d5..8b69eeb8e6 100644 --- a/templates/HAProxy_Single_Instance.template +++ b/templates/HAProxy_Single_Instance.template @@ -102,7 +102,13 @@ } }, "Properties": { - "ImageId": "F16-x86_64-cfntools", + "ImageId" : { + "Fn::FindInMap" : [ "DistroArch2AMI", + { "Ref" : "LinuxDistribution" }, + { "Fn::FindInMap" : [ "AWSInstanceType2Arch", + { "Ref" : "InstanceType" }, + "Arch" ] } ] + }, "InstanceType": { "Ref": "InstanceType" }, "KeyName": { "Ref": "KeyName" }, "UserData": { "Fn::Base64": { "Fn::Join": ["", [