osbs: raise a glass for it's service

This removes osbs and allmost all it's associated playbooks and files.

It served long and well, but we no longer need it.
flatpaks are building with a koji-flatpak plugin.
base/minimal/toolbox containers are building with kiwi.
We aren't building any other containers right now, and we did they could
be added to kiwi.

This is the end of an era... I look with nostolga on
ansible-ansible-openshift-ansible (a role to setup ansible on a control
host and run it from our ansible).

Good bye osbs!

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2024-03-28 12:52:07 -07:00
parent 8fb54fb26e
commit c84b99223c
153 changed files with 2 additions and 9297 deletions

View file

@ -1,11 +0,0 @@
---
- name: put the osbs certs in place
copy:
src: "{{private}}/files/osbs/{{env}}/osbs-internal.pem"
dest: "/etc/pki/ca-trust/source/anchors/osbs-internal.pem"
owner: root
mode: 0400
when: env == "staging"
notify:
- update ca-trust

View file

@ -1,11 +0,0 @@
---
- name: make sure that /etc/osbs directory exists
file: path=/etc/osbs state=directory
- name: put the koji token file in place
copy:
src: "{{ private }}/files/osbs/{{ env }}/x86-64-osbs-koji"
dest: "/etc/osbs/x86-64-osbs-koji"
owner: root
mode: 0400

View file

@ -47,24 +47,6 @@
- /root/.ssh/known_hosts
when: inventory_hostname not in result.list_vms
- name: (osbs-control01.stg) make sure there is no old ssh host key for the host still around
known_hosts: path={{item}} host={{ inventory_hostname }} state=absent
ignore_errors: True
with_items:
- /root/.ssh/known_hosts
- /etc/ssh/ssh_known_hosts
when: inventory_hostname not in result.list_vms and inventory_hostname in groups['osbs_masters_stg']+groups['osbs_nodes_stg']
delegate_to: osbs-control01.stg.{{ datacenter }}.fedoraproject.org
- name: (osbs-control01) make sure there is no old ssh host key for the host still around
known_hosts: path={{item}} host={{ inventory_hostname }} state=absent
ignore_errors: True
with_items:
- /root/.ssh/known_hosts
- /etc/ssh/ssh_known_hosts
when: inventory_hostname not in result.list_vms and inventory_hostname in groups['osbs_masters']+groups['osbs_nodes']
delegate_to: osbs-control01.{{ datacenter }}.fedoraproject.org
- name: wait for ssh on the vm to start back
local_action: wait_for delay=10 host={{ inventory_hostname }} port=22 state=started timeout=1200
when: inventory_hostname not in result.list_vms
@ -82,24 +64,6 @@
- /root/.ssh/known_hosts
when: inventory_hostname not in result.list_vms
- name: (osbs-control01.stg) add new ssh host key
known_hosts: path={{item}} key="{{ hostkey.stdout }}" host={{ inventory_hostname }} state=present
ignore_errors: True
with_items:
- /root/.ssh/known_hosts
- /etc/ssh/ssh_known_hosts
when: inventory_hostname not in result.list_vms and inventory_hostname in groups['osbs_masters_stg']+groups['osbs_nodes_stg']
delegate_to: osbs-control01.stg.{{ datacenter }}.fedoraproject.org
- name: (osbs-control01) add new ssh host key
known_hosts: path={{item}} key="{{ hostkey.stdout }}" host={{ inventory_hostname }} state=present
ignore_errors: True
with_items:
- /root/.ssh/known_hosts
- /etc/ssh/ssh_known_hosts
when: inventory_hostname not in result.list_vms and inventory_hostname in groups['osbs_masters']+groups['osbs_nodes']
delegate_to: osbs-control01.{{ datacenter }}.fedoraproject.org
- name: gather facts
setup:
check_mode: no