getfedora: move atomic htaccess stuff to openshift

Signed-off-by: Rick Elrod <relrod@redhat.com>
This commit is contained in:
Rick Elrod 2019-05-23 17:32:53 +00:00
parent 1ae547a756
commit ef0c1a2ab4
6 changed files with 5 additions and 27 deletions

View file

@ -1,2 +0,0 @@
MAILTO=web-members@fedoraproject.org
40 * * * * apache /usr/local/bin/lock-wrapper sync-atomic-htaccess /usr/local/bin/sync-atomic-htaccess.sh

View file

@ -1,6 +0,0 @@
#!/usr/bin/env bash
set -e
cd /srv/web/atomic-htaccess-generator
python /usr/local/bin/atomic-htaccess-generator.py
# The . here is meaningful!
cp -r out/. /srv/websites/getfedora.org/

View file

@ -44,30 +44,14 @@
- arm.fedoraproject.org
- iot.fedoraproject.org
- labs.fedoraproject.org
- atomic-htaccess-generator
- atomic-htaccess-generator/build
- atomic-htaccess-generator/out
tags:
- fedora-web
- atomic-htaccess-generator
- name: make fmw dir
file: state=directory path=/srv/web/fmw owner=apache group=sysadmin-releng mode=2775 setype=httpd_sys_content_t seuser=system_u
tags:
- fedora-web
- name: Copy atomic-htaccess-generator.py
template: src=atomic-htaccess-generator.py dest=/usr/local/bin/atomic-htaccess-generator.py owner=root group=root mode=0755
tags:
- fedora-web
- atomic-htaccess-generator
- name: Copy atomic-htaccess-generator.sh helper script
copy: src=sync-atomic-htaccess.sh dest=/usr/local/bin/sync-atomic-htaccess.sh owner=root group=root mode=0755
tags:
- fedora-web
- atomic-htaccess-generator
- name: Copy syncStatic script (stg)
when: env == "staging"
copy: >
@ -107,8 +91,6 @@
with_items:
- syncStatic
- syncTranslations
- sync-atomic-htaccess
tags:
- fedora-web
- cron
- atomic-htaccess-generator

View file

@ -3,4 +3,6 @@ cd /tmp
git clone --branch {% if env == "staging" %}staging{% else %}master{% endif %} https://pagure.io/fedora-web/websites.git
cd websites
git rev-parse HEAD
exec ./build-prod.sh /output
bash ./build-prod.sh /output
python generate-htaccess.py
mv out/. /output/

View file

@ -9,3 +9,5 @@ metadata:
data:
build.sh: |-
{{ load_file('build.sh') | indent() }}
generate-htaccess.py: |-
{{ load_file('generate-htaccess.py') | indent() }}