You'll then need to configure how your Beaker client authenticates with the Beaker server. You can use either password authentication, or kerberos authentication. For password add the following:
AUTH_METHOD = "password"
USERNAME = "username"
PASSWORD = "password"
If instead kerberos authentication is preferred:
AUTH_METHOD = "krbv"
KRB_REALM = "krb_realm"
To verify it is working properly:
$ bkr list-labcontrollers
It should return a list of labcontrollers configured in Beaker.
To create a simple Job workflow, the beaker client comes with the command
bkr workflow-simple
. This simple Job workflow will create the XML for you from various options passed in a the shell prompt, and submit this to the Beaker server. To see all the options that can be passed to the
workflow-simple,
use the following command:
$ bkr workflow-simple --help
A common set of paramaters that may be passed to the workflow-simple options would be the following:
$ bkr workflow-simple --username=<user> --password=<passwd< --dryrun
--arch=<arch> --distro=<distro_name> --task=<task_name>
--type=<TYPE> --whiteboard=<whiteboard_name> --debug > my_job.xml
To submit an existing Job workflow:
bkr job-submit job_xml
If succesful, you will be shown the Job ID and the progress of your Job.
To watch a Job:
$ bkr job-watch J:job_id
To cancel a Job you have created:
$ bkr job-cancel J:job_id
To show all Tasks available for a given distro:
$ bkr task-list distro
To add a Task:
$ bkr task-add task_rpm