From 9cc1d2de913dfc7f933764710707873219cb503c Mon Sep 17 00:00:00 2001 From: Adam Miller Date: Thu, 30 Nov 2017 17:25:08 +0000 Subject: [PATCH] Add relengpush and relengpush-int scripts for automated rebuilds Signed-off-by: Adam Miller --- files/releng/relengpush | 4 ++++ files/releng/relengpush-int | 4 ++++ playbooks/groups/releng-compose.yml | 18 ++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100755 files/releng/relengpush create mode 100755 files/releng/relengpush-int diff --git a/files/releng/relengpush b/files/releng/relengpush new file mode 100755 index 0000000000..0b8cae74f4 --- /dev/null +++ b/files/releng/relengpush @@ -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 $@ \ No newline at end of file diff --git a/files/releng/relengpush-int b/files/releng/relengpush-int new file mode 100755 index 0000000000..5fbd2957de --- /dev/null +++ b/files/releng/relengpush-int @@ -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 $@ \ No newline at end of file diff --git a/playbooks/groups/releng-compose.yml b/playbooks/groups/releng-compose.yml index 8d00dfa373..3c7c302059 100644 --- a/playbooks/groups/releng-compose.yml +++ b/playbooks/groups/releng-compose.yml @@ -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"