Add relengpush and relengpush-int scripts for automated rebuilds

Signed-off-by: Adam Miller <admiller@redhat.com>
This commit is contained in:
Adam Miller 2017-11-30 17:25:08 +00:00
parent 39ac0a38ee
commit 9cc1d2de91
3 changed files with 26 additions and 0 deletions

4
files/releng/relengpush Executable file
View file

@ -0,0 +1,4 @@
#!/bin/bash
# This file exists to facilitate fully automated mass rebuilds without relying
# on user intervention or an individual users's account permissions
sudo /usr/local/bin/relengpush-int $@

4
files/releng/relengpush-int Executable file
View file

@ -0,0 +1,4 @@
#!/bin/bash
# This file exists to facilitate fully automated mass rebuilds without relying
# on user intervention or an individual users's account permissions
ssh -i /etc/pki/releng $@

View file

@ -107,6 +107,24 @@
mode: 0640
when: env == "staging"
- name: place relengpush script for automatic rebuilds
copy:
src: "{{files}}/releng/relengpush"
dest: "/usr/local/bin/relengpush"
owner: root
group: "releng-team"
mode: 0750
when: env == "staging"
- name: place relengpush int script for automatic rebuilds
copy:
src: "{{files}}/releng/relengpush-int"
dest: "/usr/local/bin/relengpush-int"
owner: root
group: "releng-team"
mode: 0750
when: env == "staging"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"