6 Commits

Author SHA1 Message Date
Nick Jones
5265993134
Don't assume user's primary group name is the same as username
In certain environments, a user's primary group doesn't necessarily
match that of their username.  This change updates various playbooks to
make use of the `ansible_user_gid` fact instead.

This change also makes ownership explicit by using `ansible_user_uid`
instead of `ansible_user` or `ansible_user_id`, where appropriate.

Change-Id: Ifc2ea7d95ec90e91791ccb10772b15d991379479
Story: 2002770
Task: 22636
2018-07-04 19:56:05 +01:00
Stig Telfer
bf608b1177 Move libvirt-host and libvirt-vm to Ansible Galaxy roles 2017-12-05 15:59:21 +00:00
Mark Goddard
ca284aea06 Fix ansible warnings for when clauses with curly braces 2017-10-20 12:14:35 +01:00
Mark Goddard
dcdb9f7e96 Use become when creating image cache directory for seed VM 2017-09-11 10:29:13 +00:00
Mark Goddard
2a66c77525 Improvements to seed VM provisioning
Fully bounce interfaces, fix permissions of /etc/resolv.conf (it gets written out with 0660,
but should be 0644), increase SSH wait timeout to 360 seconds. The latter change allows for
a commonly used 5 minute DHCP timeout which may be applied before cloud-init is run.
2017-08-07 12:08:41 +00:00
Mark Goddard
c01f5834cb Add kayobe seed vm deprovision command
This command will destroy the seed VM and all associated data volumes.
2017-08-07 12:08:41 +00:00