You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by "Alex Heneveld (JIRA)" <ji...@apache.org> on 2013/10/02 15:14:24 UTC

[jira] [Created] (JCLOUDS-320) Allow Image preference logic to be supplied to TempalteBuilder

Alex Heneveld created JCLOUDS-320:
-------------------------------------

             Summary: Allow Image preference logic to be supplied to TempalteBuilder
                 Key: JCLOUDS-320
                 URL: https://issues.apache.org/jira/browse/JCLOUDS-320
             Project: jclouds
          Issue Type: Improvement
          Components: jclouds-core
    Affects Versions: 1.6.2
            Reporter: Alex Heneveld




The driving use case is that I want a portable way to say "any recent ubuntu or centos".  Normally this is the default of course but it doesn't always do the right thing when other options are specified -- broken ubuntu "alpha" images in AWS being the worst offender (asking for 16gb RAM in us-west-1 gives back an awful ubuntu 8.04 alpha, for instance!).  It would also handle use cases where someone says "Ubuntu 11 or 12, or CentOS 6.x, is best. failing that, Ubuntu 10 or CentOS 5.x. (and never any alpha images!)".

I'm thinking allowing to set an `imageSorter(Ordering)`. This fits with how
the Impl currently works (it already uses an Ordering, you just can't change
it; and it stays in line with the naming convention of `Sorter` as in 
`Ordering hardwareSorter()`.)



--
This message was sent by Atlassian JIRA
(v6.1#6144)