So even though I think creating role-specific templates is a flawed approach new templates are not hard, just modify the existing lxc-ubuntu script with whatever commands need to be run in your environment or packages you need to install<div>
<br></div><div>For example this new template created containers that already had Salt Stack installed</div><div><br></div><div><div>root@mfranz-x60s:/usr/lib/lxc/templates# diff lxc-ubuntu lxc-ubuntu-salt </div><div>1c1</div>
<div>< #!/bin/bash</div><div>---</div><div>> #!/bin/bash -vex</div><div>463d462</div><div>< chroot $rootfs apt-get install --force-yes -y python-software-properties</div><div>509a509,514</div><div>> </div>
<div>> # Add Salt</div><div>> chroot $rootfs apt-get install --force-yes -y python-software-properties</div><div>> chroot $rootfs add-apt-repository -y ppa:saltstack/salt </div><div>> chroot $rootfs apt-get update</div>
<div>> chroot $rootfs apt-get install -y salt-minion</div></div><div><br></div><div>Which would start with something like</div><div><br></div><div># lxc-create -n salt8 -t ubuntu-salt</div><div><br></div><div><br></div>
<div>You really aren't creating tarballs (the way you do it with OpenVZ) but modifying the shell script that creates the template and the package cache.</div><div><br></div><div>For what it is worth....</div><div><br>
</div><div>- mdf<br><br><div class="gmail_quote">On Wed, Sep 5, 2012 at 6:27 PM, Dan Kegel <span dir="ltr"><<a href="mailto:dank@kegel.com" target="_blank">dank@kegel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Wed, Sep 5, 2012 at 3:12 PM, TuxRaiderPen<br>
<<a href="mailto:tuxraiderpen@wpascanner.com">tuxraiderpen@wpascanner.com</a>> wrote:<br>
> The issue boils down to in *my view* template = ready to rock and roll and<br>
> *NOT* something I need to tweak that much or at all or learn a bunch of other<br>
> programs to use.<br>
<br>
Seems like role packages would help here.<br>
Is there a metapackage one installs to get a working LAMP server?<br>
<br>
------------------------------------------------------------------------------<br>
Live Security Virtual Conference<br>
Exclusive live event will cover all the ways today's security and<br>
threat landscape has changed and how IT managers can respond. Discussions<br>
will include endpoint security, mobile security and the latest in malware<br>
threats. <a href="http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/" target="_blank">http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/</a><br>
_______________________________________________<br>
Lxc-users mailing list<br>
<a href="mailto:Lxc-users@lists.sourceforge.net">Lxc-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/lxc-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/lxc-users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>--<br>Matthew Franz / @seclectech<br><a href="mailto:mdfranz@gmail.com" target="_blank">mdfranz@gmail.com</a><br>
</div>