2.2.2. Configure Lab Controller
If you are using SELinux, do the following.
$ sudo setsebool -P httpd_can_network_connect true
$ sudo semanage fcontext -a -t public_content_t "/var/lib/tftpboot/.*"
$ sudo semanage fcontext -a -t public_content_t "/var/www/cobbler/images/.*"
Enable and turn on beaker watchdog proxy
$ sudo chkconfig beaker-watchdog on
$ sudo chkconfig beaker-proxy on
$ sudo service beaker-watchdog start
$ sudo service beaker-proxy start
You'll need to import some distros. You can use the following command (whilst replacing the variables).
$ cobbler import --path=/net/${NFSSERVER}/${NFSPATH} \ --name=$DISTRONAME \ --available-as=nfs://${NFSSERVER}:/${NFSPATH}
Beaker/Server needs a little more info than cobbler normally stores about a distro in order to use it. Thats why beaker-lab-controller provides a script in /var/lib/cobbler/triggers/sync/post/osversion.trigger which needs to be run after you import a new distro. It looks up the distros full family.update and looks for any yum repos that may be in the distro path. It also adds the cobbler distros into the Beaker server.
$ /var/lib/cobbler/triggers/sync/post/osversion.trigger
Check that the Disto was added succesfully by going to
https://BeakerServer.example.com/bkr/distros.You'll nee to configure the /etc/beaker/proxy.conf file with the following settings.
# Hub xml-rpc address.
HUB_URL = "https://BeakerServer.example.com/bkr"
#HUB_URL = "http://localhost:8080"
# Hub authentication method. Example: krbv, password, worker_key
AUTH_METHOD = "password"
#AUTH_METHOD = "krbv"
# Username and password
USERNAME = "host/lab.example.com" # This needs to match the account your created on the Beaker Scheduler
PASSWORD = "testing" # Again, only if you are not using kerberos does this need to be set.
# Kerberos service prefix. Example: host, HTTP
KRB_SERVICE = "HTTP"
# Kerberos realm. If commented, last two parts of domain name are used. Example: MYDOMAIN.COM.
KRB_REALM = "EXAMPLE.COM"