getfedora: move atomic htaccess stuff to openshift
Signed-off-by: Rick Elrod <relrod@redhat.com>
This commit is contained in:
parent
1ae547a756
commit
ef0c1a2ab4
6 changed files with 5 additions and 27 deletions
|
@ -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
|
|
|
@ -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/
|
|
|
@ -44,30 +44,14 @@
|
||||||
- arm.fedoraproject.org
|
- arm.fedoraproject.org
|
||||||
- iot.fedoraproject.org
|
- iot.fedoraproject.org
|
||||||
- labs.fedoraproject.org
|
- labs.fedoraproject.org
|
||||||
- atomic-htaccess-generator
|
|
||||||
- atomic-htaccess-generator/build
|
|
||||||
- atomic-htaccess-generator/out
|
|
||||||
tags:
|
tags:
|
||||||
- fedora-web
|
- fedora-web
|
||||||
- atomic-htaccess-generator
|
|
||||||
|
|
||||||
- name: make fmw dir
|
- 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
|
file: state=directory path=/srv/web/fmw owner=apache group=sysadmin-releng mode=2775 setype=httpd_sys_content_t seuser=system_u
|
||||||
tags:
|
tags:
|
||||||
- fedora-web
|
- 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)
|
- name: Copy syncStatic script (stg)
|
||||||
when: env == "staging"
|
when: env == "staging"
|
||||||
copy: >
|
copy: >
|
||||||
|
@ -107,8 +91,6 @@
|
||||||
with_items:
|
with_items:
|
||||||
- syncStatic
|
- syncStatic
|
||||||
- syncTranslations
|
- syncTranslations
|
||||||
- sync-atomic-htaccess
|
|
||||||
tags:
|
tags:
|
||||||
- fedora-web
|
- fedora-web
|
||||||
- cron
|
- cron
|
||||||
- atomic-htaccess-generator
|
|
||||||
|
|
|
@ -3,4 +3,6 @@ cd /tmp
|
||||||
git clone --branch {% if env == "staging" %}staging{% else %}master{% endif %} https://pagure.io/fedora-web/websites.git
|
git clone --branch {% if env == "staging" %}staging{% else %}master{% endif %} https://pagure.io/fedora-web/websites.git
|
||||||
cd websites
|
cd websites
|
||||||
git rev-parse HEAD
|
git rev-parse HEAD
|
||||||
exec ./build-prod.sh /output
|
bash ./build-prod.sh /output
|
||||||
|
python generate-htaccess.py
|
||||||
|
mv out/. /output/
|
||||||
|
|
|
@ -9,3 +9,5 @@ metadata:
|
||||||
data:
|
data:
|
||||||
build.sh: |-
|
build.sh: |-
|
||||||
{{ load_file('build.sh') | indent() }}
|
{{ load_file('build.sh') | indent() }}
|
||||||
|
generate-htaccess.py: |-
|
||||||
|
{{ load_file('generate-htaccess.py') | indent() }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue