Commit graph

51 commits

Author SHA1 Message Date
Aurélien Bompard
5c88ef738b
Adjust for Python 3.12 and distutils being removed
Fixes: https://pagure.io/fedora-infrastructure/issue/11850

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2024-03-28 11:34:21 +01:00
Aurélien Bompard
0913c6c0ca
Fix the python3_fact module
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2023-06-26 13:41:47 +02:00
Aurélien Bompard
bf24d014bd
Make the python3 fact module compatible with python2 for EL7 boxes
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2023-05-23 08:33:17 +02:00
Aurélien Bompard
5e80355057
Add a fact module to get information about python3 installations
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2023-05-10 17:49:17 +02:00
2883c54e67 fix delete_old_oci_images.py
Previously, the delete_old_oci_images.py script sometimes caused a
traceback when trying to get the date from the JSON response for an OIC
image blob. This was because it was trying to read a JSON value that
didnt exist in some cases.

This change simply skips those images -- might update this in the future
to fins a fallback date to use, but for now just skip them.

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2023-04-28 13:58:24 +10:00
Kevin Fenzi
c529380547 Spring cleaning time. :)
I removed all the old files, inventory, playbooks, roles and other from
services we no longer run or use. There was a bunch of cruft in there
and I hope that will make the repo cleaner and easier to look for things
we actually do run and care about.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-05-13 14:02:41 -07:00
Kevin Fenzi
aa580f72c5 openstack: remove more lingering files and playbooks and libraries.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:26 +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
Rick Elrod
93e694a57d virt_boot: force string instead of bytes
Signed-off-by: Rick Elrod <relrod@redhat.com>
2020-04-24 21:34:14 +02:00
Kevin Fenzi
9d4f1094a8 virt_boot: some easy python3 fixes.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:14 +02:00
Kevin Fenzi
48c54faca6 virt_boot: any chance this module just works with python3?
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:14 +02:00
Clement Verna
98f48a4188 delete_old_oci_images: Add manifest list to the Accept header
Signed-off-by: Clement Verna <cverna@tutanota.com>
2019-06-04 13:25:01 +02:00
Clement Verna
9ec1b2190b delete_old_oci_images: fix old f-string format
Signed-off-by: Clement Verna <cverna@tutanota.com>
2019-06-04 13:14:45 +02:00
Clement Verna
8093e55cdd delete_old_oci_images: fix formating of the script
Signed-off-by: Clement Verna <cverna@tutanota.com>
2019-06-04 13:12:39 +02:00
Clement Verna
6760916870 delete_old_oci_images: fix the module fail format
Signed-off-by: Clement Verna <cverna@tutanota.com>
2019-06-04 13:08:02 +02:00
Clement Verna
34421de5f0 delete_old_oci_images: manage repositories that don't have tags
Signed-off-by: Clement Verna <cverna@tutanota.com>
2019-06-04 12:58:48 +02:00
Clement Verna
9bda00c548 delete_old_oci_images: make sure we do not log the password
Signed-off-by: Clement Verna <cverna@tutanota.com>
2019-06-04 12:43:53 +02:00
Clement Verna
986d7fb885 delete_old_oci_images: Use format string instead of f-strings
Signed-off-by: Clement Verna <cverna@tutanota.com>
2019-06-04 11:44:22 +02:00
Clement Verna
e4d8cb4e79 delete_old_oci_images: use Python 3 interpreter
Signed-off-by: Clement Verna <cverna@tutanota.com>
2019-06-04 09:46:19 +02:00
Clement Verna
6318c8178e oci-registry-prune: New playbook to prune old OCI images from the candidate registry.
This commit adds a new module and a new playbook used to delete images
from the candidate-registry that are older than 30 days.
The module looks for images tags that are older than 30 days and delete the
tags.
The playbook run the module and the registry garbage collection to reclaim
the disk space.

Signed-off-by: Clement Verna <cverna@tutanota.com>
2019-06-04 09:18:37 +02:00
Kevin Fenzi
9fb91cddcc Look, our very own copy of nova_compute module. We cannot move to os_server because that requires python-shade, which is not packaged for RHEL7. When/if we move batcave01 to fedora we can drop this. 2017-11-07 18:32:12 +00:00
b64f8d37d9 builders: initial pass at a ARMv7 virt builder 2017-04-13 17:58:50 +00:00
Kevin Fenzi
8363f3aa67 Add ansible 2.2pre version of lvol to avoid issues with the openstack-compute playbooks trying to shrink a lvol. 2016-06-24 22:41:21 +00:00
Kevin Fenzi
46d868b309 temp remove local nova_compute and see if ansible version works 2016-06-22 18:21:54 +00:00
Patrick Uiterwijk
5105b82c59 Fix other references to cloud net ids 2015-06-05 12:01:09 +00:00
Valentin Gologuzov
3997f5bd3e [cloud09] trying to include modified nova_compute module and use in again 2015-03-16 16:58:16 +01:00
Kevin Fenzi
c00ab836f6 Drop local yum ansible module to test something. 2014-03-12 17:20:41 +00:00
Ralph Bean
c8e12740b6 Remove the old fedmsg module. 2013-08-06 02:20:29 +00:00
Ralph Bean
ab54fd99e3 First try of the fedmsg plugin. 2013-07-12 20:21:48 +00:00
Seth Vidal
d32bf1cc9d make sure there's no silliness with globs 2013-07-04 17:19:16 -04:00
Seth Vidal
73c971c281 make the msg actually work and not traceback 2013-07-04 17:10:44 -04:00
Seth Vidal
e9c042bab7 simple optimization for the extremely common case 2013-07-04 17:08:59 -04:00
Seth Vidal
cc086458e1 small change to the yum module to see if it will speed it up 2013-07-04 17:03:21 -04:00
Seth Vidal
4f84817cfa rm the still-broken cron job - waiting for 1.2
revert the change
2013-04-16 19:45:30 +00:00
Seth Vidal
6fcd81fff6 take out unnecessary copy 2013-04-16 18:41:34 +00:00
Seth Vidal
645a7c7bd8 helps if you put the file into the right path 2013-04-16 18:39:25 +00:00
Seth Vidal
e1b8f54a7f try including the shutil - maybe it has the issue 2013-04-16 18:25:56 +00:00
Seth Vidal
38983bf892 okay, what the hell? 2013-04-16 18:22:15 +00:00
Seth Vidal
23a84595fe catch all the other errors? 2013-04-16 18:19:45 +00:00
Seth Vidal
129508a048 more fixes to unbreak the cron module 2013-04-16 18:16:12 +00:00
Seth Vidal
93ab6e8e6f don't refer to vars which don't exist 2013-04-16 18:11:58 +00:00
Seth Vidal
6d4f35c721 try out cron module fix for the /tmp dir being /tmpfs in f18 2013-04-16 18:09:03 +00:00
Seth Vidal
c6817d6844 remove old library modules from ansible that are now folded into 1.1 2013-04-08 14:45:02 +00:00
Seth Vidal
99cf535801 add the newest authorized_key module
remove the old add_host since the new one is upstream now
2013-03-06 18:58:21 +00:00
Seth Vidal
2d7cf3de84 updated nagios module - remove when we update to 1.1 2013-03-02 06:53:11 +00:00
Seth Vidal
0794d1422a add nagios module that is newer and has better service behavior 2012-12-11 22:28:29 +00:00
Seth Vidal
81de1b7721 add add_host plugin and module to local ansible tree for use until 0.9 is out 2012-10-30 21:55:42 +00:00
Seth Vidal
0e26f87f79 fix to ec2_create module for groups 2012-10-25 21:41:22 +00:00
Seth Vidal
176be1a3c7 prototype of what the persistent cloud instance playbooks/hostvars will look like 2012-10-25 20:40:35 +00:00