8 | | 2. Configure communication settings |
9 | | * copy examples/bcfg2.conf /etc/bcfg2.conf |
10 | | * Choose a port for the bcfg2 server |
11 | | * Set the bcfg2= line in components section bcfg2.conf to point at the server location [[BR]] |
12 | | bcfg2=https://servername.domain.com:port |
13 | | * Choose a shared secret password, placing it in the password= line of the communication section of /etc/bcfg2.conf |
| 7 | 1. Install Prerequisites |
| 8 | * Install the prerequisite libraries. See the [wiki:Prereqs] page for more information. |
| 9 | 1. Install Bcfg2 |
| 10 | * '''From packages:''' The easiest way to install Bcfg2 is from packages for your operating system. You can grab packages (and source packages) for various OSes from the [wiki:Downloads] page. Install them as you would any other packages. The server package only needs to be installed on your designated Bcfg2 server machine; the clients package needs to be installed on any machine you plan to manage by Bcfg2. |
| 11 | * '''From source:''' The Bcfg2 source tarball can also be grabbed from the [wiki:Downloads] page. After untarring the file, you can build Bcfg2 with {{{python setup.py install --prefix=/install/prefix}}} This will install both the client and server on that machine. |
23 | | 5. Start up the bcfg2 server |
24 | | * /etc/init.d/bcfg2-server start |
| 17 | 1. The `[server]` section |
| 18 | * Point `repository` at the location of your Bcfg2 repository (where all of you configuratione elements will live). You can start out with [ftp://ftp.mcs.anl.gov/pub/bcfg/bcfg2-0.8-demo-repo.tar.gz example repository] if you need some inspiration. |
| 19 | * `repository = /var/lib/bcfg2` |
| 20 | * Choose the `structures` you want to make use of. The selection in the example configuration file should work fine until you have a complete repository set up. |
| 21 | * `structures = Bundler,Base` |
| 22 | * Choose the `generators` you want to use. Again, keeping the defaults is appropriate for a new installation. |
| 23 | * `generators = SSHbase,Cfg,Pkgmgr,Svcmgr` |
| 24 | 1. The `[statistics]` section |
| 25 | * This section controls how statistics information is sent out. Set `sendmailpath` to the location of your sendmail binary |
| 26 | * `sendmailpath = /usr/sbin/sendmail` |
| 27 | 1. The `[communication]` section |
| 28 | * Set the protocol you wish to use. The currently recommended choice is xmlrpc/ssl. |
| 29 | * `protocol = xmlrpc/ssl` |
| 30 | * Select a shared secret password for use between your clients and server |
| 31 | * `password = roboconfig` |
| 32 | * Generate an ssl certificate for client/server communication and set its location |
| 33 | * `openssl req -x509 -nodes -days 1000 -newkey rsa:1024 -out bcfg2cert.pem -keyout bcfg2cert.pem` |
| 34 | * `key = /etc/bcfg2cert.pem` |
| 35 | 1. The `[components]` section |
| 36 | * Set the URL for your Bcfg2 server. This tells clients where to find the server and tells the server what port to listen on. |
| 37 | * `bcfg2 = https://config.example.com:6789` |