SUMMARY: Automatic zone configuration (/etc)

From: <przemolicc_at_poczta.fm>
Date: Wed Sep 14 2011 - 03:01:29 EDT
Hello,

below is my question and all the answers:

QUESTION:

Hello,

we are looking for a way to more automatically configure newly created zones.
I don't mean their IP address or so.
What I mean is to do all the tasks which are typically doned inside zone
after
its creation
like configure certain files in /etc, run certains commands within zone,
etc...

Do you have any idea how to achive this ?

Best regards
Przemek


ANSWERS:

Todd Cox <toddc@ehsmed.com>
Something like:

cp /scripts/myscript /zones/myzone/root/tmp
zlogin myzone /tmp/myscript

Then have the script do the work for you.


Felix.Schattschneider@dw-world.de
puppet? (www.puppetlabs.com)


Jan.Dreyer@Bertelsmann.de
Hi,

we do zone-setup like machine-setup via jumpstart. All standard tasks are
done by scripts which are laying on the jumpstart server. Look for SUNWjet
for getting more infos.

Tobias Nutt <tobias.nutt@gmx.de>
you can use a JET-Server. Its a more flexibel jumpstart-server.
Or you can write a script   :-)

Juraj Lutter <juraj@lutter.sk>
yes. it's very easy. look for dot-files in freshly configured zone's
/etc dir.

Robert Baker <baker074@umn.edu>
I use a script to build the zone and after I run  the zonecfg and the
zoneadm -z install
I modify files using the full path name to the zone, usually:

/${zoneroot}/${zonename}/root/etc/sysidcfg

I have variables set for the zoneroot and zonename and then call other
scripts to do post finish modifications before I do the  zoneadm -z boot

Ilhan Narli <i.narli@uws.edu.au>
I would create a template zone and after I finished with it ( all you
local configuration ) then sys-unconfig then I would ZFS snapshot this and
keep as a template. I would keep this copy into my NFS server and build you
new zone base on that. If new Solaris update came about then do your
template again.


Best regards
Przemek



















































----------------------------------------------------------------
Jak placic mniejsze rachunki za telefon?
Sprawdz >> http://linkint.pl/f2a2b
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Wed Sep 14 03:01:46 2011

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:44:18 EST