ReferencePlatforms/Linux-CentOS-5.0: Difference between revisions

Line 589: Line 589:
Post-install instructions are written for the latest version.<br />
Post-install instructions are written for the latest version.<br />


== Puppet Setup ==
== Add slave(s) to configuration files ==
=== Add the slave to the Puppet configuration ===
The following files need to be updated with new slaves (note that the production Buildbot config is explicitly not updated here, it will be done later):
Production slaves should be added to [http://hg.mozilla.org/build/puppet-manifests/file/tip/site-production.pp site-production.pp], staging slaves to [http://hg.mozilla.org/build/puppet-manifests/file/tip/site-staging.pp site-staging.pp]. For the purposes of this document a staging slave is one that will remain permanently in staging. Anything else is a production slaves.
* [http://hg.mozilla.org/build/buildbot-configs/file/tip/mozilla2-staging/config.py buildbot-configs/mozilla2-staging/config.py]
* [http://hg.mozilla.org/build/puppet-manifests/file/tip/site-production.pp puppet-manifests/site-production.pp] (or site-staging.pp for slaves that will be in staging permanently).


Once you have patched that file you need to update the checkouts on staging-puppet and production-puppet:
Once your patches have landed, you need to update the following checkouts:
* On staging-master:
# as cltbld
cd /builds/buildbot/user-configs/clean-configs
hg pull && hg up
cd ../../user-configs2/clean-configs
hg pull && hg up
* On production-puppet (or staging-puppet if you updated site-staging.pp):
  # as root
  # as root
  cd /etc/puppet/manifests
  cd /etc/puppet/manifests
  hg pull && hg up
  hg pull && hg up
The Puppet server will automatically accept the host key of any machines listed in the manifests.


== Buildbot Setup ==
== Buildbot Setup ==
Line 604: Line 610:


== switchover from staging to production ==
== switchover from staging to production ==
* add slaves to [http://hg.mozilla.org/build/buildbot-configs/file/tip/mozilla2/config.py buildbot-configs/mozilla2/config.py], get review, land, update masters
* stop slave process
* stop slave process
* switchover the .ssh keys to use production keys
* switchover the .ssh keys to use production keys
canmove, Confirmed users
6,439

edits