Frank.Munsche@izb.de
2007-Apr-30 09:44 UTC
any ideas? automated installation of puppet into solaris 10 zone
> I''ve built a puppet solaris - package which is distributed via jumpstart > at installation time of a solaris 10 machine. > It''s postinstallation registers the puppetd into smf and starts puppetd > afterwards. Puppetd connects to puppetmasterd, gets ist certificate signed > (autosig on) and the configuration stuff. > Now the interesting part: a new solaris zone is installed via puppet. > Given a sysidcfg-template puppet brings the zone up to a running state. > That''s really great! > > But how to automate the installation of the puppet solaris - package into > the new zone from the non-global zone? > The package should be installed into the non-global zone and puppetd > within this zone should configure the virtual machine. > > Unfortunately, zonecfg and zoneadm don''t give the feature to add packages > during initialization of a zone. > > Could this be accoumplished by puppet? > > I''ve tried the types zone and package. But the root-dir of pkgadd (-R) has > to be set to the root-dir of the nonglobal zone. There is no such > parameter for the type package.Furthermore, there should be a > state-dependency between the non-global zone and the instance of > ''package'': the package can only be installled when the non-global zone is > ''installled'' or ''running'' > > cheers, > frank > > > > > > > > > > > > > > > > > > > > I''d like to automate_______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
Luke Kanies
2007-Apr-30 15:49 UTC
Re: any ideas? automated installation of puppet into solaris 10 zone
On Apr 30, 2007, at 4:44 AM, Frank.Munsche@izb.de wrote:> I''ve built a puppet solaris - package which is distributed via > jumpstart at installation time of a solaris 10 machine. > It''s postinstallation registers the puppetd into smf and starts > puppetd afterwards. Puppetd connects to puppetmasterd, gets ist > certificate signed (autosig on) and the configuration stuff. > > Now the interesting part: a new solaris zone is installed via > puppet. Given a sysidcfg-template puppet brings the zone up to a > running state. That''s really great! > > But how to automate the installation of the puppet solaris - > package into the new zone from the non-global zone? > The package should be installed into the non-global zone and > puppetd within this zone should configure the virtual machine. > > Unfortunately, zonecfg and zoneadm don''t give the feature to add > packages during initialization of a zone. > > Could this be accoumplished by puppet? > > I''ve tried the types zone and package. But the root-dir of pkgadd (- > R) has to be set to the root-dir of the nonglobal zone. There is > no such parameter for the type package.Furthermore, there should be > a state-dependency between the non-global zone and the instance of > ''package'': the package can only be installled when the non-global > zone is ''installled'' or ''running''Hmm, I haven''t looked at the zones in a long time, but I always used shared package databases across my systems (by mount /opt/csw in all zones, I think), so I didn''t have this problem. I expect you''ll have to do an exec to shell into the zone and install the package manually, probably using a ''refreshonly'' so it only gets done when the zone is first created. As long as the package install starts the service, you should be golden. -- Learning is not attained by chance, it must be sought for with ardor and attended to with diligence. -- Abigail Adams --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
Seemingly Similar Threads
- UPDATE automated installation of puppet into solaris 10 zones
- automated installation of puppet into solaris 10 zone after insta lling zone with puppet
- Re: UPDATE automated installation of puppet into s olaris 10 zones
- err: State got corrupted
- IP Instances with VLAN''s