ReleaseEngineering/PuppetAgain/Base Images: Difference between revisions

no edit summary
(undo move)
No edit summary
Line 3: Line 3:
See [[ReleaseEngineering/PuppetAgain/Puppetization Process|Puppetization Process]] for how a base image becomes a running instance.
See [[ReleaseEngineering/PuppetAgain/Puppetization Process|Puppetization Process]] for how a base image becomes a running instance.


== CentOS 6.2 on Ganeti KVM ==
= CentOS 6.2 with Kickstart =
 
The bulk of a kickstart script is available in [http://hg.mozilla.org/build/puppet/file/default/setup/ setup].  Run 'make' to create the script.  The top section will need a few site-specific modifications.  Most of the action is in the %post section, which:
* looks for PUPPET_PASS on the kernel command line, and stores it in /root/deploypass
* installs minimal packages
** Using a possibly site-specific yum-repo location (under <tt><nowiki>http://repos/repos/</nowiki></tt>)
* installs [http://hg.mozilla.org/build/puppet/file/default/setup/puppetize.sh puppetize.sh] and sets it to run on boot.
 
The same script supports both i386 and x86_64 ISAs; the determining factor is the kernel used to run the installer.
 
= Mac OS X 10.8 (Mountain Lion) =
 
''details from Jake''
 
= CentOS 6.2 on Ganeti KVM =
== Installed image ==
Install a minimal config with CentOS-6.2 install media:
Install a minimal config with CentOS-6.2 install media:


Line 26: Line 41:
  /usr/lib/ganeti/os/image/tools/make-dump relabs-buildbot-master
  /usr/lib/ganeti/os/image/tools/make-dump relabs-buildbot-master


:'''saved in kvm-relabs as image+centos-62'''
This is your installed image - it's just CentOS.
 
== Base Image ==
 
Now, to create the base image that automatically puppetizes.


reinstall, to get the ganeti-instance-image networking, console, etc. set up
reinstall, to get the ganeti-instance-image networking, console, etc. set up
Line 44: Line 63:
  gnt-instance modify -o image+releng-base-centos-62 relabs-buildbot-master
  gnt-instance modify -o image+releng-base-centos-62 relabs-buildbot-master
  /usr/lib/ganeti/os/image/tools/make-dump relabs-buildbot-master
  /usr/lib/ganeti/os/image/tools/make-dump relabs-buildbot-master
:'''saved in kvm-relabs as image+releng-base-centos-62'''
== CentOS 6 with Kickstart ==
The bulk of a kickstart script is available in [http://hg.mozilla.org/build/puppet/file/default/setup/centos6-kickstart.cfg centos6-kickstart.cfg].  The top section will need a few site-specific modifications.  Most of the action is in the %post section, which:
* looks for PUPPET_PASS on the kernel command line, and stores it in /root/deploypass
* installs minimal packages
** Uses a possibly site-specific yum-repo location (under <tt><nowiki>http://repos/repos/</nowiki></tt>)
* installs [http://hg.mozilla.org/build/puppet/file/default/setup/puppetize.sh puppetize.sh] and sets it to run on boot.
canmove, Confirmed users
1,394

edits