Commit graph

85 commits

Author SHA1 Message Date
Kevin Fenzi
e398046ebb virt-instance-create: this is a var
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:17 +02:00
Kevin Fenzi
95e0ad16d9 virt-instance-create: try and get this to use the vmhost python, not the vm
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:17 +02:00
Kevin Fenzi
9d1e6bf031 virt_instance_create: make sure to wipe the facts cache if we are (re)installing the guest
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:16 +02:00
Rick Elrod
2a90d25c7b Revert "one more attempt at a "small" hack before I go all out"
This reverts commit 32c4ddd306bbca2e0315d2f0c1205ea8a3f19d8b.
2020-04-24 21:34:15 +02:00
Rick Elrod
626dff9ec3 one more attempt at a "small" hack before I go all out
Signed-off-by: Rick Elrod <relrod@redhat.com>
2020-04-24 21:34:15 +02:00
Rick Elrod
7c2274b851 undo all that
Signed-off-by: Rick Elrod <relrod@redhat.com>
2020-04-24 21:34:15 +02:00
Rick Elrod
bb74f4d89b trying more sillyness to try to bust the cache here
Signed-off-by: Rick Elrod <relrod@redhat.com>
2020-04-24 21:34:15 +02:00
Rick Elrod
1bff4950f3 wait a second
Signed-off-by: Rick Elrod <relrod@redhat.com>
2020-04-24 21:34:15 +02:00
Rick Elrod
e4a8e812e2 what if I set it to something completely whacky?
Signed-off-by: Rick Elrod <relrod@redhat.com>
2020-04-24 21:34:15 +02:00
Rick Elrod
f804fb2746 hardcode this for a sec, just to see
Signed-off-by: Rick Elrod <relrod@redhat.com>
2020-04-24 21:34:15 +02:00
Rick Elrod
142017e95a try another hack
Signed-off-by: Rick Elrod <relrod@redhat.com>
2020-04-24 21:34:15 +02:00
Rick Elrod
e500af0b27 try setting ansible_python_interpreter to !!null
Signed-off-by: Rick Elrod <relrod@redhat.com>
2020-04-24 21:34:15 +02:00
Kevin Fenzi
0475be45de virt_instance_create: try and gather facts after virt instance is created...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:15 +02:00
Kevin Fenzi
ffc0163b32 Revert "armv7 create: move back to python2 and hope it works again."
This reverts commit f2591ca94c98799ce7b52328172dac8c150ca261.
2020-04-24 21:34:15 +02:00
Kevin Fenzi
0d50e06b94 armv7 create: move back to python2 and hope it works again.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:15 +02:00
Kevin Fenzi
5424ee4fa2 virt_instance_create: try python3 here.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:14 +02:00
Kevin Fenzi
b23d6d295b Revert "virt_instance_create: The emags use python3 here."
This reverts commit ca4ea658788af7902329620f6f98a680fc02f936.
2020-04-24 21:34:14 +02:00
Kevin Fenzi
fc5ea0b944 virt_instance_create: The emags use python3 here.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:14 +02:00
Kevin Fenzi
df4d17f839 virt_instance_create: ansible_python_interperter should be a var
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:12 +02:00
Kevin Fenzi
74c4fc2188 virt_instance_create: Try and use python2 for the virt_boot call since it's python2.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:12 +02:00
Kevin Fenzi
4b31ac5152 ansible: Change all our group names from foo-bar to foo_bar or foo-bar-baz to foo_bar_baz
In ansible 2.8 the - character isn't supposed to be valid in group names.
While we could override this, might has well just bite the bullet and change it.
So, just switch all group names to use _ instead of -

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2019-05-20 17:38:09 +00:00
Kevin Fenzi
d92b8c9420 rhel8b virt install: comment removing old facts as then we can't use python3
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2019-01-17 22:18:40 +00:00
Kevin Fenzi
d3b0f146a1 ensure old facts are removed for hosts that are being reinstalled 2018-12-20 18:29:02 +00:00
Kevin Fenzi
a9feedd9e0 add import of vars to virt-instance create, should get almost all our hosts 2018-10-01 22:07:15 +00:00
Kevin Fenzi
86395da242 Move the armv7 kernel update to just finish before starting vm 2018-07-01 18:37:38 +00:00
Kevin Fenzi
e6c152f397 Guess we have to fail since we are in a included task 2018-06-27 21:11:48 +00:00
Kevin Fenzi
f3b9e23566 try and make things a bit easier to update armv7 vm kernels 2018-06-27 21:06:47 +00:00
Kevin Fenzi
bdd9841725 This won't work if we have some hosts on different virthosts. 2018-05-08 18:45:54 +00:00
Kevin Fenzi
adf233e961 Revert "ok, how about this?"
This reverts commit 7ec4217fd4.
2018-05-08 02:06:19 +00:00
Kevin Fenzi
7ec4217fd4 ok, how about this? 2018-05-08 02:04:36 +00:00
Kevin Fenzi
a86cd63c69 ok, perhaps a longer poll time would help libvirt 2018-05-08 02:01:03 +00:00
Kevin Fenzi
68268332bb Sometimes virt status is returning a 'no such object' error, so lets ignore those for now. 2018-05-08 01:50:20 +00:00
Kevin Fenzi
a78b607427 Perhaps we need to do this now to keep libvirt from stepping on itself. 2018-05-08 00:14:45 +00:00
Kevin Fenzi
b250b314d1 I wonder if you can now put variables in names like this 2017-10-09 02:18:50 +00:00
Kevin Fenzi
6b1fc4d83f for initial installs use gathered ssh host key, then remove and use signed ones 2017-09-04 17:24:56 +00:00
Patrick Uiterwijk
208c557fc4 Do not clean or anything with known_hosts
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2017-08-15 18:13:41 +00:00
Kevin Fenzi
972c651295 fix up virt instance create autostart 2017-05-14 04:36:36 +00:00
Kevin Fenzi
6fbfacec8d do not use true 2017-04-27 16:52:11 +00:00
Kevin Fenzi
f4365f7494 try and set things so we can force armv7 kernel updates 2017-04-27 16:50:29 +00:00
Ralph Bean
4d53011cf0 Apparently this changed in ansible-2.3 http://docs.ansible.com/ansible/virt_module.html 2017-04-25 20:34:54 +00:00
Ralph Bean
f5ba41e0db Use the state value preferred by ansible here.
Ansible tells me:

    value of state must be one of: running,shutdown,destroyed,paused, got: started
2017-04-25 19:38:39 +00:00
60d6de2eef virt: adjust the pause for ARMv7 2017-04-17 22:09:50 +00:00
e7139d4ac7 virt: add a pause for ARMv7 virt installs 2017-04-17 21:57:40 +00:00
bb05921e7a builders: ARMv7, make the kernel/initrd args more generic 2017-04-17 20:22:44 +00:00
502f4c4aaa builders: armv7 VM: copy kernel only when VM is shutdown 2017-04-17 17:45:59 +00:00
16fe1f9c84 builder vm: add tag for armv7 kernel 2017-04-14 10:18:28 +00:00
ba1727b7dc builders: ARMv7 tweak virt_boot cmdline 2017-04-13 20:02:19 +00:00
9aa70810b2 builders: ARMv7 virt_boot needs domain 2017-04-13 19:38:34 +00:00
b18c9881b6 builders: some ARMv7 bits need shell, not command 2017-04-13 19:17:57 +00:00
5bda47cc10 builders: some ARMv7 commands need quotes 2017-04-13 19:01:31 +00:00