static: add default site

If you currently hit https://static.opendev.org you get redirected to
the default site, which is just the first site in alphabetical order,
which happens to be governance.openstack.org.

Add a 00-static.opendev.org.conf file so this is the default site.  It
will just serve up the top-level afs directory.

Change-Id: Icdcee962b76545c12e84d4cadb0b60a68cabe38b
This commit is contained in:
Ian Wienand
2020-02-20 16:45:21 +11:00
parent 2f1b2f3eae
commit b2eb6c7003
3 changed files with 67 additions and 1 deletions

View File

@@ -50,11 +50,28 @@
state: present
name: headers
- name: Make sure default site disabled
# Default site
- name: Make sure packaged default site disabled
command: a2dissite 000-default.conf
args:
removes: /etc/apache2/sites-enabled/000-default.conf
- name: Add custom default site
copy:
src: 00-static.opendev.org.conf
dest: /etc/apache2/sites-available/
owner: root
group: root
mode: 0644
- name: Enable static.opendev.org
command: a2ensite 00-static.opendev.org
args:
creates: /etc/apache2/sites-enabled/00-static.opendev.org
notify:
- Reload apache2
# governance.openstack.org
- name: Install governance.openstack.org
copy: