|
|
Line 1: |
Line 1: |
| __TOC__ | | __TOC__ |
|
| |
|
| =Initial Machine Setup= | | = Initial setup = |
| *erase the hard disc
| | If the machine is new or offline, DCOps will need to physically boot, attach a keyboard, and netboot. |
| *install Mac OS X 10.7 from recovery media (not a 10.6 upgrade)
| |
| *Create user:
| |
| **Name: Client Builder
| |
| **Username: cltbld
| |
| **password being the standard cltbld password
| |
| *set cltbld to autologin
| |
| *enable ssh and screensharing
| |
| *run:
| |
| /usr/sbin/systemsetup -setsleep Never
| |
| *Install 10.7.2 update
| |
| curl -LO http://support.apple.com/downloads/DL1459/en_US/MacOSXUpdCombo10.7.2.dmg
| |
| open MacOSXUpdCombo10.7.2.dmg
| |
| sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -install -package /Volumes/Mac\ OS\ X\ 10.7.2\ Update\ Combo/MacOSXUpdCombo10.7.2.pkg
| |
| *install puppet v 0.24.8
| |
| curl -LO http://downloads.puppetlabs.com/gems/facter-1.5.6.gem
| |
| curl -LO http://downloads.puppetlabs.com/gems/puppet-0.24.8.gem
| |
| sudo gem install facter-1.5.6.gem puppet-0.24.8.gem
| |
| | |
| * ''' FOR TEST MACHINES ONLY ''':
| |
| ** install hardware dongle that allows the display mode to be set to 1600x1200x32
| |
| | |
| * ''' FOR BUILD MACHINES ONLY '''
| |
| ** Download and install Xcode 4.1 for lion using SHA1(Downloads/xcode_4.1_for_lion.dmg)= 604781050d030aba13b27b24e54d4b4b2348471c
| |
| ** Mount the dmg
| |
| ** open mounted volume in Finder and run the .pkg file, this installs the Xcode installer
| |
| ** using finder, open '/Applications/Install Xcode' and run through the installer
| |
| | |
| =initial puppet sync=
| |
| *log into VNC, ssh will not work!
| |
| *open terminal
| |
| *run the following command, will reboot computer
| |
| sudo puppetd --test --server staging-puppet.build.mozilla.org
| |
| *run the above command again, future puppet runs will start automatically
| |
| *set the resolution to 1600x1200x32
| |
| screenresolution 1600x1200x32
| |
| | |
| If the machine sits idle for a long time, check that it isn't waiting on puppet ca action
| |
| *Relevant logs:
| |
| **Master:
| |
| *** tail -F /var/log/message | grep puppetmaster
| |
| **Client:
| |
| *** tail -F /var/puppet/log/puppet.out
| |
| *** tail -F /var/puppet/log/puppet.err
| |
|
| |
|
| = Re-imaging a machine = | | = Re-imaging a machine = |
| Assuming the machine is already online and accessible, Lion machines can be re-imaged automatically via netboot. [https://mana.mozilla.org/wiki/pages/viewpage.action?pageId=34014655 Instructions are in mana.] | | Assuming the machine is already online and accessible, Lion machines can be re-imaged automatically via netboot. [https://mana.mozilla.org/wiki/pages/viewpage.action?pageId=34014655 Instructions are in mana.] |
|
| |
| If the machine is idle, you can reboot it immediately. | | If the machine is idle, you can reboot it immediately. |
|
| |
|