Files
fedora-infra_ansible/roles/beaker/server/tasks/client.yml
Dan Callaghan bd633d7bae beaker/server: configure bkr client pointing back to localhost
We can use this for registering and configuring the lab controller as
part of the deployment playbooks. It will probably come in handy for
other stuff as well, like ad hoc tasks and testing.

The template is intentionally not named
templates/root/.beaker_client/config.j2 following the same pattern as
the other templates, because it seemed like a bad idea to have
a template inside a hidden directory.
2016-04-14 21:07:02 +10:00

19 lines
482 B
YAML

---
# Configures the bkr client on the server itself. We can use this from Ansible
# to perform various administrative tasks.
- name: install bkr client
yum: pkg=beaker-client state=present
tags:
- beaker-server
- name: create /root/.beaker_client
file: path=/root/.beaker_client state=directory
tags:
- beaker-server
- name: configure bkr client
template: src=root/beaker-client-config.j2 dest=/root/.beaker_client/config mode=0600
tags:
- beaker-server