James Antill
f74cd17a23
Add regexp to drop spaces from hostnames in prompts, for add_host.
...
Signed-off-by: James Antill <james@and.org>
2025-03-25 20:36:02 -04:00
James Antill
aa5691d1b5
Add regexp to drop spaces from hostnames in prompts.
...
Signed-off-by: James Antill <james@and.org>
2025-03-25 20:00:53 -04:00
462176464b
ansiblelint fixes-- fqcn[action-core] - command to ansible.builtin.command
...
Replaces many references to command: with ansible.builtin.command
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 11:26:47 +10:00
2cf38c1f17
[yaml-lint] fix yamllint errors and warnings on plabooks
...
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2024-11-25 19:04:25 +10:00
James Antill
e9fb7a9d50
Wait for 30m for reboot to come back.
...
Signed-off-by: James Antill <james@and.org>
2024-10-09 18:05:12 +00:00
James Antill
4680f6089b
Wait for host to come back, for ipa/rabbitmq restarts.
...
Signed-off-by: James Antill <james@and.org>
2024-10-01 18:58:11 +00:00
Kevin Fenzi
654979219b
vhost_reboot: clean up some old ocp stuff
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-09-30 10:41:51 -07:00
Kevin Fenzi
a6b405d31e
vhost_reboot: what a lovely delegation
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-09-30 10:39:29 -07:00
Kevin Fenzi
6667a00f28
vhost_reboot: delegate to correct host
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-09-30 10:14:46 -07:00
Kevin Fenzi
7fd4ed4c67
vhost_update: allow prompt to set targets for update / reboot
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-09-30 10:01:06 -07:00
Kevin Fenzi
94a5911577
vhost_reboot: update for newer syntax
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-08-14 14:10:26 -07:00
Kevin Fenzi
22dde8163b
unbound: remove and retire unbound servers
...
These instances served long and well as fallback resolvers for
dnssec-trigger. This is no longer needed or used, so lets remove them.
See https://pagure.io/fedora-infrastructure/issue/11415
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-07-24 14:40:43 -07:00
Kevin Fenzi
3211ff358e
vhost_reboot: update import_playbook calls to new syntax
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-05-19 09:53:27 -07:00
Kevin Fenzi
dbc52da487
vhost_reboot: disable ocp for now until we can sort it out
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-05-15 18:19:18 -07:00
Kevin Fenzi
9a26c66413
vhost_reboot: it is libvirt-sock, not libvirtd-sock
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-03-27 15:24:31 -07:00
Kevin Fenzi
1b4443a8ee
vhost_reboot: fix path
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-03-27 14:51:10 -07:00
Kevin Fenzi
1eeb585f74
vhost_reboot: adjust libvirt pid to libvirt socket
...
On newer libvirt there's no pid file, instead there's a socket that
listens and then the service is started. So, check that the socket is
there instead of looking for a broken pid file.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-03-27 14:27:55 -07:00
Kevin Fenzi
b1b0923af0
openshift 3.11: raise a glass!
...
Our openshift 3.11 cluster(s) served us long and well.
Now we have everything finally moved to the openshift 4 clusters (fas2
was the last holdout). We can finally retire this. :)
🎉 🥂
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-11-28 13:08:01 -08:00
Kevin Fenzi
a839211e9d
vhost_reboot: switch to usin virsh shutdown so we don't need ssh access
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-03-29 10:15:31 -07:00
Kevin Fenzi
b1f58ff99a
vhost_reboot: split out stg as we have no env_suffix available
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-03-29 09:55:51 -07:00
Kevin Fenzi
15e28e3fa7
vhost_reboot: try and handle ocp4 nodes
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-03-29 09:48:23 -07:00
Eddie Jennings, Jr
b53dc07292
Remove phx2 mention.
2021-06-10 15:07:38 +00:00
Kevin Fenzi
7984b46eb7
The great phx2 pruning run (1st cut).
...
Since we no longer have any machines in phx2, I have tried to remove
them from ansible. Note that there are still some places where we need
to remove them still: nagios, dhcp, named were not touched, and in cases
where it wasn't pretty clear what a conditional was doing I left it to
be cleaned up later.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-06-14 14:14:31 -07:00
Stephen Smoogen
8762362a65
smooge missed phx2 openshift hard coding elsewhere
2020-05-31 13:33:53 -04:00
Stephen Smoogen
5227a23287
this will try to make it so that os cluster only drain to correct datacentre
2020-05-31 13:12:46 -04:00
Stephen Smoogen
7aedb805bb
Revert "[vhost_reboot] Try to get the os code to work"
...
This reverts commit 899a127f7ae1ffbbe935d45f640b9ac50e8d499c.
2020-04-24 21:34:20 +02:00
Stephen Smoogen
2b4c012300
[vhost_reboot] Try to get the os code to work
2020-04-24 21:34:20 +02:00
Kevin Fenzi
661626a454
vhost_reboot: when rebooting ipa or rabbitmq hosts, restart some services after they come up.
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2019-05-21 15:56:08 +00:00
Rick Elrod
d9412f85e5
fix copypaste error in task name, we cordon first, then uncordon
...
Signed-off-by: Rick Elrod <relrod@redhat.com>
2019-04-10 23:28:03 +00:00
Rick Elrod
f26f4a9f3d
[vhost_reboot/os cordoning] take 2
...
Signed-off-by: Rick Elrod <relrod@redhat.com>
2019-04-10 23:18:57 +00:00
Rick Elrod
cda27a6d2f
Let's see if we can get os cordon/uncordon working even for os-master01
...
Signed-off-by: Rick Elrod <relrod@redhat.com>
2019-04-10 22:57:56 +00:00
Kevin Fenzi
78c41502a3
vhost_reboot: switch to using the new ansible 'reboot' module.
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2019-04-09 17:51:02 +00:00
Patrick Uiterwijk
45e9dbcade
Also do draining for os-master nodes
...
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
2019-02-27 22:55:32 +01:00
Stephen Smoogen
8317b78f65
time is not syncing
2018-11-06 21:22:45 +00:00
Stephen Smoogen
4a0499c6b8
remove the serverbeach tag
2018-11-06 21:22:14 +00:00
Rick Elrod
570d4c76d8
do some magic to get it to see the post-reboot vms as a group
...
Signed-off-by: Rick Elrod <relrod@redhat.com>
2018-10-03 03:34:03 +00:00
Rick Elrod
176c6cc6f9
another } - I am bad at this
...
Signed-off-by: Rick Elrod <relrod@redhat.com>
2018-10-03 03:22:55 +00:00
Rick Elrod
2724811555
}
...
Signed-off-by: Rick Elrod <relrod@redhat.com>
2018-10-03 03:21:59 +00:00
Rick Elrod
88644bac2f
add tasks: key
...
Signed-off-by: Rick Elrod <relrod@redhat.com>
2018-10-03 03:21:14 +00:00
Rick Elrod
fe33d75cbf
attempt to auto drain/re-add openshift nodes on vhost_reboot
...
Signed-off-by: Rick Elrod <relrod@redhat.com>
2018-10-03 02:25:47 +00:00
Kevin Fenzi
ca009a7d62
fix up includes in vhost_reboot playbook
2018-04-04 20:07:08 +00:00
Patrick Uiterwijk
24d7d693c3
Only reboot running vms
...
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2018-01-05 12:25:32 +00:00
Kevin Fenzi
36af79bb1d
use include here for now
2017-12-05 02:31:23 +00:00
Kevin Fenzi
afef097a3d
switch all the include tasks to import tasks
2017-10-17 17:37:03 +00:00
Kevin Fenzi
ceff9bfca4
first stab at replacing include with include_playbook or includ_tasks
2017-10-15 19:46:08 +00:00
Kevin Fenzi
0acfaa2a7e
Fix handlers, roles, and tasks to be handlers_path, roles_path and tasks_path so as not to conflict with ansible variables.
...
Fix duplicate definition of become default that was in group_vars/all as well as vars/global.
2017-04-13 15:46:14 +00:00
Stephen Smoogen
6bbb48acca
You know the very powerful and the very stupid have one thing in common. They don't alter their views to fit the facts. They alter the facts to fit the views. Which can be uncomfortable if you happen to be one of the facts that needs altering.
2017-01-24 20:00:30 +00:00
Kevin Fenzi
a2d4dc50ec
fix vhost_reboot playbook syntax
2016-11-29 01:45:38 +00:00
Kevin Fenzi
04a52b8667
Death to all trailing whitespace.
2016-08-08 19:36:31 +00:00
Kevin Fenzi
610869ab80
Rework vhost_reboot so that ansible 2.0 likes it.
2015-12-15 20:25:54 +00:00