[xen-tools-discuss] Re: Installing additional packages with xen-create-image

Alain Kelder ak at bbsmb.net
Tue Nov 25 20:52:17 CET 2008


On Tue, 2008-11-25 at 14:46 -0500, Jeff Forcier wrote:
> :)
> 
> Keep in mind, too, that you can specify >1 role by using commas, and
> it will hit them all (and in the order you specify).
> 
> For example, I have 'base' which installs basic stuff like lsof, tree,
> vim-enhanced, etc; and 'web-base' which installs platform neutral junk
> like mysql-server and apache2; and then specific roles like 'php5' or
> 'rails' which install a bunch of PHP5 or Ruby/Rails related packages;
> and so forth. Obviously these can all do other things besides just
> package installation, too, such as symlinking and etc -- anything a
> shell script can do.
> 
> Then I can invoke xen-create-image with e.g. '--role
> base,web-base,php5 ...' and it installs the full suite; or '--role
> base,web-base,rails'; or even just '--role base' if it's not a Web
> server (unlikely at my workplace, but still happens sometimes :)).
> 
> Very useful, very flexible, only problem is when I'm a retard and type
> '--roles' instead of '--role', which unfortunately results in silently
> creating the new VM without executing any roles, and doesn't complain
> about the incorrect argument either :(
> 
> -Jeff
> 

This is awesome.






More information about the xen-tools-discuss mailing list