<tt><font size=2>Zane Bitter <zbitter@redhat.com> wrote on 04/15/2014
03:29:03 PM:<br>
<br>
> On 15/04/14 14:31, Mike Spreitzer wrote:<br>
> > It appears that in Fedora 19 and 20 the Wordpress examples need
to<br>
> > install different packages than in every other release (see my
debugging<br>
> > in </font></tt><a href=https://review.openstack.org/#/c/87065/><tt><font size=2>https://review.openstack.org/#/c/87065/</font></tt></a><tt><font size=2>).
I just got a complaint<br>
> > from Heat validation that I can't do this:<br>
> ><br>
> > "AWS::CloudFormation::Init"
: {<br>
> > "config" :
{<br>
> > "packages"
: {<br>
> > "yum"
: {<br>
> > { "Fn::FindInMap" : [ "Pkgset2Pkgs", { "Fn::FindInMap"
: [<br>
> > "Distro2Pkgset", { "Ref" : "LinuxDistribution"
}, "db" ] }, "client" ] }<br>
> > : [],<br>
> > { "Fn::FindInMap" : [ "Pkgset2Pkgs", { "Fn::FindInMap"
: [<br>
> > "Distro2Pkgset", { "Ref" : "LinuxDistribution"
}, "db" ] }, "server" ] }<br>
> > : [],<br>
> ><br>
> <br>
> .. in <br>
> JSON a property name cannot be an object ...<br>
</font></tt>
<br><tt><font size=2>Ah, right. So what would be the simplest way
to enable this use case? Perhaps a generalization of AWS::CloudFormation::Init
that allows the package names to be objects (that evaluate to strings,
of course)? Maybe allow, e.g., "yum" to be associated with
not a map but rather a list of pairs (2-element lists)?</font></tt>
<br>
<br><tt><font size=2>Thanks,</font></tt>
<br><tt><font size=2>Mike</font></tt>