pkgs / git-hooks: try and use the batcave certs for now

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2023-05-01 08:44:35 -07:00
parent b4e9ddf989
commit 820284cff8

View file

@ -57,34 +57,7 @@
- git/hooks
- config
- fedora-messaging
when: inventory_hostname.startswith('batcave')
- name: install the rabbitmq certificates for pkgs/dist-git
copy: src={{ item.src }}
dest=/etc/pki/rabbitmq/{{ item.dest }}
owner={{ item.owner }} group={{ item.group}} mode={{ item.mode }}
with_items:
- src: "{{private}}/files/rabbitmq/{{ env }}/pki/issued/git-hooks{{ env_suffix }}.crt"
dest: git-hooks.crt
owner: root
group: packager
mode: "444"
- src: "{{private}}/files/rabbitmq/{{ env }}/pki/private/git-hooks{{ env_suffix }}.key"
dest: git-hooks.key
owner: root
group: packager
mode: "440"
- src: "{{private}}/files/rabbitmq/{{ env }}/pki/ca.crt"
dest: git-hooks.ca
owner: root
group: packager
mode: "444"
tags:
- git
- git/hooks
- config
- fedora-messaging
when: inventory_hostname.startswith('pkgs')
when: inventory_hostname.startswith('batcave') or inventory_hostname.startswith('pkgs')
- name: install the git hooks
copy: src={{item}} dest=/usr/share/git-core/ mode=0755