[one-users] m1.small.erb
sebastien goasguen
runseb at gmail.com
Mon May 9 09:17:30 PDT 2011
Hi,
I would like my instance type template (m1.small.erb) to have
conditions based on image_id coming from the repository.
Something like:
<% if erb_vm_info[:img_id] = 1 %>
CONTEXT = [
VAR1="foo",
VAR2="bar"
<% end %>
<% if erb_vm_info[:img_id] = 2 %>
CONTEXT = [
VAR1="toto",
VAR2="titi"
<% end %>
Where 1 and 2 are the image id returned by oneimage list.
What is the proper syntax/way to do this ?
thanks,
-sebastien
--
---
Sebastien Goasguen, Associate Professor
School of Computing
Clemson University
864-553-4734.
Google Voice: (864)-869-8683
http://sites.google.com/site/runseb/
More information about the Users
mailing list