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.
This commit is contained in:
parent
d297950c85
commit
bd633d7bae
3 changed files with 24 additions and 0 deletions
18
roles/beaker/server/tasks/client.yml
Normal file
18
roles/beaker/server/tasks/client.yml
Normal file
|
@ -0,0 +1,18 @@
|
|||
---
|
||||
# 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
|
|
@ -119,6 +119,8 @@
|
|||
tags:
|
||||
- beaker-server
|
||||
|
||||
- include: client.yml
|
||||
|
||||
- name: ensure beaker server has all relevant virthost ssh signatures in known_hosts
|
||||
lineinfile: dest=/root/.ssh/known_hosts regexp='{{ item.hostname }}' line='{{ item.hostname }} {{ item.signature }}' create=yes owner=root group=root
|
||||
with_items:
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
HUB_URL = "http://localhost/bkr"
|
||||
AUTH_METHOD = "password"
|
||||
USERNAME = {{ beaker_server_admin_user|quote }}
|
||||
PASSWORD = {{ beaker_server_admin_pass|quote }}
|
Loading…
Add table
Add a link
Reference in a new issue