Commit Graph

62 Commits

Author SHA1 Message Date
Kevin Fenzi
b1a2d105c9 In ansible 2.2 always_run is depreciated. Switch to check_mode. 2016-11-01 16:29:49 +00:00
Kevin Fenzi
377afa042d see if this syntax change makes ansible 2.2 happy 2016-10-13 22:19:46 +00:00
Kevin Fenzi
1c6e9a11f4 Another pile of trailing whitespace fixes 2016-08-08 19:42:36 +00:00
Dan Callaghan
3f38bc99e1 beaker/labcontroller: use tftp.socket instead of xinetd
We are on RHEL7 so using xinetd is a bit of overkill, we can just use
tftp.socket instead.
2016-04-19 14:24:37 +10:00
Dan Callaghan
f9c4346477 beaker/labcontroller: remove beaker-transfer handling
Previously this was trying to be smart in deciding whether to
enable/restart beaker-transfer, but there's no need. We aren't going to
need it any time soon and we can just enable it unconditionally in
future when we do need it.
2016-04-19 14:18:20 +10:00
Dan Callaghan
eb3f24cff1 oops wrong path 2016-04-14 21:16:44 +10:00
Dan Callaghan
9f82a7dfe7 beaker/server: fix client config quoting
I misunderstood what the |quote filter in Ansible does. It turns out
bkr's config parser doesn't even handle escaped quotes correctly
anyway(!) so for now we will have to just assume the admin username and
password don't contain any quote characters.
2016-04-14 21:13:41 +10:00
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
Dan Callaghan
7bf27ddfe0 misread the systemd-tmpfiles man page 2016-04-14 17:47:14 +10:00
Dan Callaghan
1c0f82d8e2 beaker/server: invoke systemd-tmpfiles to create /var/run/beaker
The beaker-server package includes a tmpfiles.d config file to create
this dir, but it's never actually executed when the package is freshly
installed. Eventually we will need to fix this in Beaker (bug is filed).
2016-04-14 17:44:53 +10:00
Dan Callaghan
dce36eb70a beaker/server: reload httpd when SAML bits change 2016-04-14 17:29:51 +10:00
Dan Callaghan
a2db32b857 beaker/server: copy idp-metadata.xml from its canonical location
Puiterwijk explains that we want to have a single location for storing
idp-metadata.xml, instead of copying it around into each role, so that
there is only one place to update it when keys need to be rolled over.
2016-04-14 17:26:40 +10:00
Patrick Uiterwijk
5e9e1057ee Add beaker.qa saml cert
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2016-04-07 15:29:08 +00:00
Kevin Fenzi
9006a36832 Update all calls to sudo to use 'become' and sudo_user to 'become_user' 2016-02-02 21:24:45 +00:00
Kevin Fenzi
a6ed617a91 always run tasks that register variables so later plays that depend on them work in check/diff mode 2015-12-26 21:04:15 +00:00
Tim Flink
7b42457629 enabling mail on beaker server 2015-12-10 18:06:28 +00:00
Tim Flink
dbf2285b2d fixing copy-pasta error in beaker server role 2015-12-02 18:15:45 +00:00
Tim Flink
6fe2b37d8e forgot to add beaker-server tag 2015-12-02 18:12:20 +00:00
Tim Flink
7d7731474e adding beaker virthost ssh host key to beaker server 2015-12-02 18:11:38 +00:00
Tim Flink
78deecf7c9 make all beaker-server tags the same 2015-11-16 22:26:45 +00:00
Tim Flink
ae676bde64 beaker-server needs libvirt-client for vm interface 2015-11-16 22:24:21 +00:00
Tim Flink
7dd52b7d87 adding SAML auth to beaker server 2015-11-09 22:51:53 +00:00
Patrick Uiterwijk
08568865fe Replace all restart httpd with reload httpd
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2015-11-04 23:40:01 +00:00
Kevin Fenzi
275f4b5203 Change all instances of ansible_distribution_major_version to filter to int for comparisons. 2015-05-27 22:27:39 +00:00
Tim Flink
8d2a811102 fixing hub URL to use internal hostname 2015-05-14 18:56:42 +00:00
Tim Flink
ab4c16885c fixing botched syntax for beaker mysql user creation 2015-05-14 18:31:53 +00:00
Tim Flink
a7af3fcb97 replacing incorrect hardcoded db names with variable 2015-05-14 18:27:44 +00:00
Tim Flink
dac182e972 fixing wrong username/password for beaker mysql user 2015-05-14 18:22:39 +00:00
Tim Flink
f887f5baa7 add missing deps for beaker labcontroller 2015-05-14 17:42:20 +00:00
Tim Flink
d544d05f71 beaker yum repo config is in beaker/base now 2015-05-14 17:37:28 +00:00
Tim Flink
5637e6a34b deduping beaker repo files, fixing issue with url rendering for those repos on rhel 2015-05-14 17:35:39 +00:00
Tim Flink
1b784e7778 Adding beaker lab controller and server roles for beaker-stg 2015-05-14 17:00:35 +00:00
Tim Flink
9c61cf0c5e fixing copy-pasta and syntax errors 2015-05-08 01:21:36 +00:00
Tim Flink
9d65562324 make sure the target dir exists before copying files into it 2015-05-08 01:20:20 +00:00
Tim Flink
240823fcab nonexistant users can't add themselves 2015-05-08 01:17:04 +00:00
Tim Flink
a878dc0891 more tweaking for beaker virthost setup 2015-05-08 00:30:28 +00:00
Tim Flink
1ab20e66bc vms only show up for the user that created them, use correct user for vm list 2015-05-07 20:25:11 +00:00
Tim Flink
e721177aa7 using variable for template instead of incorrect static value 2015-05-07 20:23:22 +00:00
Tim Flink
00bd6915b9 generate libvirtd.conf from template instead of copying over standard one 2015-05-07 20:21:13 +00:00
Tim Flink
3740aa7cae missed a filename change for the beaker/virthost role 2015-05-07 20:19:26 +00:00
Tim Flink
09a48c2c55 moving virthost tasks into the beaker/virthost role for more auth control 2015-05-07 20:17:59 +00:00
Tim Flink
ff64a7b408 create vms as libvirt user instead of root 2015-05-07 19:04:41 +00:00
Tim Flink
76bbba32a4 removing reduncant boot order declaration from beaker client libvirt xml 2015-05-07 18:55:39 +00:00
Tim Flink
cedc311ca3 valid xml is helpful 2015-05-07 18:53:13 +00:00
Tim Flink
3a83e9f9a4 making beaker vm xml more generic 2015-05-07 18:52:19 +00:00
Tim Flink
ae52dab43f using command since the virt module isn't doing what i want it to do 2015-05-07 02:53:29 +00:00
Tim Flink
050afaf988 rhel7 has a different path for qemu-kvm than fedora 2015-05-07 02:50:09 +00:00
Tim Flink
8bcf992184 adding required missing name value to virt define 2015-05-07 02:28:45 +00:00
Tim Flink
bddaf80c0a adding lv and vm creation to beaker virthost 2015-05-07 02:27:13 +00:00
Tim Flink
1a9231cf3e adding all required template values to host vars and accessing them correctly 2015-05-07 02:20:49 +00:00