OpenVZ Forum


Home » General » Support » Customizing templates
Re: Customizing templates [message #22940 is a reply to message #22925] Wed, 07 November 2007 17:55 Go to previous messageGo to previous message
tauren is currently offline  tauren
Messages: 7
Registered: November 2007
Junior Member
alticon-brian wrote on Wed, 07 November 2007 10:09

Tauren,

I know that the way that you're mentioning is exactly how we do it.

Specifically, we have a few custom templates that include things like Plesk pre-configured to work inside of a VPS so we can speed up deployment.

That being said, you'll possibly be able to streamline down your configuration editing by throwing some sed magic into your install-post, just a thought.

--Brian


Thanks Brian, it helps to have this confirmed. So, to clarify, the following method is the suggested way to customize templates:

1. Edit minimal.list, default.list, or create your own custom.list file in a template's config directory. Add all of the desired packages into that file.

2. Modify the install-post script with the appropriate commands to perform any customizations/configurations necessary in the system. As Brian suggests, sed is your friend.

3. Build the template with vzpkgcache.

Can some others confirm that this is the preferred/best way to accomplish what I would like to do. I'd like to add this information to the wiki because I think it would help others. But if there are other ways to do it, I'd like to include that information in the wiki as well.

Lastly, does anyone know if there is a way to make parts of install-post exclusive to a certain install type? For instance, only apply certain commands if custom.list was used? I suppose I could test for the install of certain RPMs (rpm -q) before issuing the sed commands.

Thanks again,
Tauren
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: *SOLVED* Live-Migration and SYSV message queues
Next Topic: Howto build a template whith anaconda insted of rpmstrap
Goto Forum:
  


Current Time: Sat Sep 06 09:21:55 GMT 2025

Total time taken to generate the page: 0.09387 seconds