From: Dennis Gilmore ausil@fedoraproject.org
As part fo the process to enable continuous delivery of atomic host we need to allow /mnt/koji/atomic-cd/ to be mounted rw inside of the runroot tasks so that the testing ostree repo can be written to
Signed-off-by: Dennis Gilmore ausil@fedoraproject.org --- roles/koji_builder/templates/runroot.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/roles/koji_builder/templates/runroot.conf.j2 b/roles/koji_builder/templates/runroot.conf.j2 index e91e7ef..1c5fdcb 100644 --- a/roles/koji_builder/templates/runroot.conf.j2 +++ b/roles/koji_builder/templates/runroot.conf.j2 @@ -15,7 +15,7 @@ default_mounts = /mnt/koji,/mnt/fedora_koji_prod/koji ; Each extra_mount needs to start with some of these prefixes. Other paths are ; not allowed for mounting. Only absolute paths are allowed here, no ; wildcards. -safe_roots = /mnt/koji/compose +safe_roots = /mnt/koji/compose,/mnt/koji/atomic-cd
; path substitutions is tuple per line, delimited by comma, order is ; important.
From: Dennis Gilmore ausil@fedoraproject.org
Signed-off-by: Dennis Gilmore ausil@fedoraproject.org --- roles/releng/files/atomic-cd | 4 ++++ roles/releng/tasks/main.yml | 5 +++++ 2 files changed, 9 insertions(+) create mode 100644 roles/releng/files/atomic-cd
diff --git a/roles/releng/files/atomic-cd b/roles/releng/files/atomic-cd new file mode 100644 index 0000000..d7d6f24 --- /dev/null +++ b/roles/releng/files/atomic-cd @@ -0,0 +1,4 @@ +# continous delivery of atomic host +MAILTO=releng-cron@lists.fedoraproject.org +*/15 * * * * root TMPDIR=`mktemp -d /tmp/atomic-cd.XXXXXX` && cd $TMPDIR && git clone -n https://pagure.io/releng.git && cd releng && LANG=en_US.UTF-8 ./scripts/build-test-ostree + diff --git a/roles/releng/tasks/main.yml b/roles/releng/tasks/main.yml index 45109f2..5a02ee1 100644 --- a/roles/releng/tasks/main.yml +++ b/roles/releng/tasks/main.yml @@ -235,6 +235,11 @@ copy: src="twoweek-updates" dest=/etc/cron.d/twoweek-updates when: inventory_hostname.startswith('compose-x86-01')
+# put cron job in for continuously deliverying atomic host +- name: atomic-cd compose cron + copy: src="atomic-cd" dest=/etc/cron.d/atomic-cd + when: inventory_hostname.startswith('compose-x86-01') + - name: install compose /etc/httpd/conf.d/compose.conf file copy: > src="compose.conf"
On Sunday, October 2, 2016 9:28:16 PM CDT dennis@ausil.us wrote:
From: Dennis Gilmore ausil@fedoraproject.org
As part fo the process to enable continuous delivery of atomic host we need to allow /mnt/koji/atomic-cd/ to be mounted rw inside of the runroot tasks so that the testing ostree repo can be written to
Signed-off-by: Dennis Gilmore ausil@fedoraproject.org
roles/koji_builder/templates/runroot.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/roles/koji_builder/templates/runroot.conf.j2 b/roles/koji_builder/templates/runroot.conf.j2 index e91e7ef..1c5fdcb 100644 --- a/roles/koji_builder/templates/runroot.conf.j2 +++ b/roles/koji_builder/templates/runroot.conf.j2 @@ -15,7 +15,7 @@ default_mounts = /mnt/koji,/mnt/fedora_koji_prod/koji ; Each extra_mount needs to start with some of these prefixes. Other paths are ; not allowed for mounting. Only absolute paths are allowed here, no ; wildcards. -safe_roots = /mnt/koji/compose +safe_roots = /mnt/koji/compose,/mnt/koji/atomic-cd
; path substitutions is tuple per line, delimited by comma, order is ; important.
This patch series relies on https://pagure.io/releng/pull-request/116 being merged as well
Dennis
Looks ok to me.
One question, should we wrap this in a lock-wrapper? ie, if it takes more than 15min to run the next one will start, and that could cause problems?
Anyhow since this would only mess up itself and nothing else critical, +1 to this or a addition of a lock-wrapper if desired.
kevin
infrastructure@lists.fedoraproject.org