XS Puppet

From OLPC
Revision as of 21:20, 30 September 2010 by Martinlanghoff (talk | contribs) (Created page with 'Most OLPC deployments have a large number of schools. When deploying School Servers, this means there is a large number of XSs. Managing them is a challenge. We use [http://www.…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Most OLPC deployments have a large number of schools. When deploying School Servers, this means there is a large number of XSs. Managing them is a challenge.

We use Puppet to run the administration of these servers. Puppet is an outstanding server management tool, well known, and extensively documented.

To keep matters simple and scalable, we use some specific techniques:

  • We focus on maintaining all the XSs with the exact same code and configuration. Where some XSs must behave differently, we handle that in the code deployed to the XS itself. For an example of this in action, see how the httpd service picks an appropriate configuration at startup.
  • We use a tiny part of the power of Puppet to keep things simple. Puppet is enormously powerful, and can lead to complex configurations.

Getting started

Set up a "Puppeteer" -- the 'configuration server'. This server needs to have a stable FQDN and to be reachable by all the XSs (usually this means a public IP address). See the excellent puppet documentation on how to setup a Puppet server. Grab the example configuration we provide below.

Installing Puppet in your XS

On XS-0.6, you will need to

  • Install puppetd and all its dependencies (TODO: list the dependencies)
  • Install an /etc/sysconfig/puppetd file naming the FQDN of your "puppeteer"
  • Set the service to run (and start it up)

Get started with the example configuration

We have an example configuration, based on an actual deployment successfully using Puppet http://dev.laptop.org/git/users/martin/puppet-example.git/tree/

See the README and the actual config files and scripts for working configurations and code.

Puppet Documentation

To Do

  • Document how to bootstrap this from kickstart
  • Implement usbmount scripts to hook into puppet