You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@whirr.apache.org by "Andrew Bayer (JIRA)" <ji...@apache.org> on 2012/07/10 01:43:34 UTC
[jira] [Updated] (WHIRR-428) Always match a stable Canonical AMI on
AWS EC2
[ https://issues.apache.org/jira/browse/WHIRR-428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Bayer updated WHIRR-428:
-------------------------------
Attachment: WHRIR-428.diff.txt
Simple enough, I think.
> Always match a stable Canonical AMI on AWS EC2
> -----------------------------------------------
>
> Key: WHIRR-428
> URL: https://issues.apache.org/jira/browse/WHIRR-428
> Project: Whirr
> Issue Type: Improvement
> Components: core
> Reporter: Andrei Savu
> Attachments: WHRIR-428.diff.txt
>
>
> Adrian posted on jclouds-dev@ an improvement to the template selection mechanism:
> "For those of you using aws-ec2, here's a handy template expression
> that will match the latest stable image from canonical. I've placed
> comments where explanation is likely necessary.
> Template template = context.getComputeService().templateBuilder()
> // need to select versions with double-digits so that lexicographic
> // doesn't end up prefering 9.x vs 11.x
> .osVersionMatches("1[012].[10][04]")
> // negative lookahead for daily and testing, but ensure match
> // ubuntu-images
> // http://www.regular-expressions.info/lookaround.html
> .imageDescriptionMatches("^(?!.*(daily|testing)).*ubuntu-images.*$")
> .osFamily(OsFamily.UBUNTU).build();
> Hope this helps!"
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira