docs: remove docs-old

This commit is contained in:
Francois Andrieu
2022-11-20 17:31:50 +01:00
committed by kevin
parent 3437042944
commit 9000dd6def
12 changed files with 6 additions and 105 deletions

View File

@@ -55,9 +55,6 @@
- role: fedora-docs/proxy - role: fedora-docs/proxy
website: docs.fedoraproject.org website: docs.fedoraproject.org
- role: fedora-docs-old/proxy
website: docs-old.fedoraproject.org
- role: developer/website - role: developer/website
website: developer.fedoraproject.org website: developer.fedoraproject.org

View File

@@ -283,13 +283,6 @@
gzip: true gzip: true
cert_name: "{{wildcard_cert_name}}" cert_name: "{{wildcard_cert_name}}"
- role: httpd/website
site_name: docs-old.fedoraproject.org
server_aliases:
- docs-old.stg.fedoraproject.org
sslonly: true
cert_name: "{{wildcard_cert_name}}"
- role: httpd/website - role: httpd/website
site_name: bodhi.fedoraproject.org site_name: bodhi.fedoraproject.org
sslonly: true sslonly: true

View File

@@ -1 +0,0 @@
10 * * * * root /usr/local/bin/lock-wrapper olddocssync /usr/local/bin/docs-old-rsync >/dev/null

View File

@@ -1,3 +0,0 @@
#!/bin/sh
/usr/bin/rsync -aSHPv --delete --exclude=.git/objects/ sundries01::docs-old/ /srv/web/docs-old.fedoraproject.org/

View File

@@ -1,22 +0,0 @@
DocumentRoot /srv/web/docs-old.fedoraproject.org/public_html
ErrorDocument 404 http://docs-old.fedoraproject.org/
AddType application/epub+zip .epub
AddType image/svg+xml .svg
AddType image/svg+xml .svgz
AddEncoding gzip .svgz
<FilesMatch \.svgz$>
<IfModule mod_gzip.c>
mod_gzip_on No
</IfModule>
</FilesMatch>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript
FileETag MTime Size
ExpiresActive On
ExpiresDefault "access plus 30 minutes"
RewriteEngine On
RewriteRule ^(.*)$ http://docs.fedoraproject.org/$1 [R=301,L]

View File

@@ -1,24 +0,0 @@
- copy: >
src=docs-old-rsync dest=/usr/local/bin/docs-old-rsync
owner=root group=root mode=0755
tags:
- fedora-docs-old
- fedora-docs-old/proxy
- copy: >
src=cron-docs-old-rsync dest=/etc/cron.d/docs-old-rsync
owner=root group=root mode=0644
tags:
- fedora-docs-old
- fedora-docs-old/proxy
- copy: >
src={{item}} dest=/etc/httpd/conf.d/{{website}}/{{item}}
owner=root group=root mode=0644
with_items:
- fedora-docs-old.conf
notify:
- reload proxyhttpd
tags:
- fedora-docs-old
- fedora-docs-old/proxy

View File

@@ -1,5 +1,3 @@
- file: dest=/srv/web/docs state=directory
- template: > - template: >
src=docs-sync.j2 dest=/usr/local/bin/docs-sync src=docs-sync.j2 dest=/usr/local/bin/docs-sync
owner=root group=root mode=0755 owner=root group=root mode=0755

View File

@@ -1,26 +1,5 @@
#!/bin/sh #!/bin/sh
if [ ! -d /srv/web/docs ]
then
echo "/srv/web/docs missing"
cd /srv/web
{% if env == 'staging' %}
git clone https://pagure.io/fedora-docs/fedora-docs-web.git docs
{% else %}
git clone https://pagure.io/fedora-docs/fedora-docs-web.git docs
{% endif %}
fi
cd /srv/web/docs
/usr/bin/git reset -q --hard
{% if env == 'staging' %}
/usr/bin/git checkout -q stg
{% else %}
/usr/bin/git checkout -q prod
{% endif %}
/usr/bin/git pull -q --ff-only
if [ ! -d /srv/web/docs-redirects ] if [ ! -d /srv/web/docs-redirects ]
then then
echo "/srv/web/docs-redirects missing" echo "/srv/web/docs-redirects missing"

View File

@@ -1,9 +1,9 @@
#!/bin/sh #!/bin/sh
/usr/bin/rsync --timeout 300 -aH --link-dest /srv/web/docs-redirects/ --link-dest /srv/web/docs-old.fedoraproject.org/public_html/ --link-dest /srv/web/docs-combined/ --delete --delete-excluded --delete-after --exclude=.git --exclude='copying.tmp/' sundries01::docs/ /srv/web/docs.fedoraproject.org/ /usr/bin/rsync --timeout 300 -aH --link-dest /srv/web/docs-redirects/ --link-dest /srv/web/docs-combined/ --delete --delete-excluded --delete-after --exclude=.git --exclude='copying.tmp/' sundries01::docs/ /srv/web/docs.fedoraproject.org/
/usr/bin/rsync --timeout 300 -aH --link-dest /srv/web/docs.fedoraproject.org --link-dest /srv/web/docs-old.fedoraproject.org/public_html/ --link-dest /srv/web/docs-combined/ --delete --delete-excluded --delete-after --exclude=.git --exclude='copying.tmp/' sundries01::docs-redirects/ /srv/web/docs-redirects/ /usr/bin/rsync --timeout 300 -aH --link-dest /srv/web/docs.fedoraproject.org --link-dest /srv/web/docs-combined/ --delete --delete-excluded --delete-after --exclude=.git --exclude='copying.tmp/' sundries01::docs-redirects/ /srv/web/docs-redirects/
# build the combined docs tree. # build the combined docs tree.
# See https://pagure.io/fedora-infrastructure/issue/7130 # See https://pagure.io/fedora-infrastructure/issue/7130
rsync --timeout 300 -aH --delete --delete-after --delete-excluded --exclude='.git*' /srv/web/docs.fedoraproject.org/ /srv/web/docs-redirects/ /srv/web/docs-old.fedoraproject.org/public_html/ /srv/web/docs-combined/ rsync --timeout 300 -aH --delete --delete-after --delete-excluded --exclude='.git*' /srv/web/docs.fedoraproject.org/ /srv/web/docs-redirects/ /srv/web/docs-combined/

View File

@@ -1,9 +1,9 @@
#!/bin/sh #!/bin/sh
/usr/bin/rsync --timeout 300 -aH --link-dest /srv/web/docs-redirects/ --link-dest /srv/web/docs-old.fedoraproject.org/public_html/ --link-dest /srv/web/docs-combined/ --delete --delete-excluded --delete-after --exclude=.git --exclude='copying.tmp/' sundries01::docs/ /srv/web/docs.fedoraproject.org/ /usr/bin/rsync --timeout 300 -aH --link-dest /srv/web/docs-redirects/ --link-dest /srv/web/docs-combined/ --delete --delete-excluded --delete-after --exclude=.git --exclude='copying.tmp/' sundries01::docs/ /srv/web/docs.fedoraproject.org/
/usr/bin/rsync --timeout 300 -aH --link-dest /srv/web/docs.fedoraproject.org --link-dest /srv/web/docs-old.fedoraproject.org/public_html/ --link-dest /srv/web/docs-combined/ --delete --delete-excluded --delete-after --exclude=.git --exclude='copying.tmp/' sundries01::docs-redirects/ /srv/web/docs-redirects/ /usr/bin/rsync --timeout 300 -aH --link-dest /srv/web/docs.fedoraproject.org --link-dest /srv/web/docs-combined/ --delete --delete-excluded --delete-after --exclude=.git --exclude='copying.tmp/' sundries01::docs-redirects/ /srv/web/docs-redirects/
# build the combined docs tree. # build the combined docs tree.
# See https://pagure.io/fedora-infrastructure/issue/7130 # See https://pagure.io/fedora-infrastructure/issue/7130
rsync --timeout 300 -aH --delete --delete-after --delete-excluded --exclude='.git*' /srv/web/docs.fedoraproject.org/ /srv/web/docs-redirects/ /srv/web/docs-old.fedoraproject.org/public_html/ /srv/web/docs-combined/ rsync --timeout 300 -aH --delete --delete-after --delete-excluded --exclude='.git*' /srv/web/docs.fedoraproject.org/ /srv/web/docs-redirects/ /srv/web/docs-combined/

View File

@@ -14,14 +14,6 @@ gid = root
read only = yes read only = yes
hosts allow = 10.3.163.39 192.168.1.59 hosts allow = 10.3.163.39 192.168.1.59
[docs-old]
comment = Old Docs Site
path = /srv/web/docs-old
uid = root
gid = root
read only = yes
hosts allow = 10.3.160.0/255.255.224.0 192.168.0.0/255.255.0.0
[docs] [docs]
comment = Docs Site comment = Docs Site
path = /srv/docs path = /srv/docs

View File

@@ -14,14 +14,6 @@ gid = root
read only = yes read only = yes
hosts allow = 10.5.126.13 192.168.1.59 10.3.163.39 hosts allow = 10.5.126.13 192.168.1.59 10.3.163.39
[docs-old]
comment = Old Docs Site
path = /srv/web/docs-old
uid = root
gid = root
read only = yes
hosts allow = 10.5.126.0/255.255.255.0 192.168.0.0/255.255.0.0 10.5.128.0/255.255.255.0 10.3.160.0/255.255.224.0
[docs] [docs]
comment = Docs Site comment = Docs Site
path = /srv/docs path = /srv/docs