3d5c2a810e
This project didn't proceed past the test phase, let's clean it up. Revert "Add a functional test for registry.zuul-ci.org" This reverts commite701fdd3ca
. Revert "Add testinfra for registry.zuul-ci.org" This reverts commite00f4e59b3
. Revert "Add static site for registry.zuul-ci.org" This reverts commit31b505d3ba
. Revert "Add SSL cert for registry.zuul-ci.org" This reverts commitd0a8473d42
. Change-Id: I1d39306187c7b2d7a908389f88d1a60e1b29ffe3
147 lines
2.9 KiB
YAML
147 lines
2.9 KiB
YAML
- name: Check AFS mounted
|
|
stat:
|
|
path: "/afs/openstack.org/project"
|
|
register: afs_root
|
|
|
|
- name: Sanity check AFS
|
|
assert:
|
|
that:
|
|
- afs_root.stat.exists
|
|
|
|
- name: Install zuul user
|
|
include_role:
|
|
name: zuul-user
|
|
vars:
|
|
zuul_user_enable_sudo: True
|
|
|
|
- name: Install apache2
|
|
apt:
|
|
name:
|
|
- apache2
|
|
- apache2-utils
|
|
state: present
|
|
|
|
- name: Install goaccess
|
|
apt:
|
|
name: goaccess
|
|
state: present
|
|
|
|
- name: Rewrite module
|
|
apache2_module:
|
|
state: present
|
|
name: rewrite
|
|
|
|
- name: Substitute module
|
|
apache2_module:
|
|
state: present
|
|
name: substitute
|
|
|
|
- name: Cache module
|
|
apache2_module:
|
|
state: present
|
|
name: cache
|
|
|
|
- name: Cache disk module
|
|
apache2_module:
|
|
state: present
|
|
name: cache_disk
|
|
|
|
- name: Apache macro module
|
|
apache2_module:
|
|
state: present
|
|
name: macro
|
|
|
|
- name: Apache 2 ssl module
|
|
apache2_module:
|
|
state: present
|
|
name: ssl
|
|
|
|
- name: Apache 2 headers module
|
|
apache2_module:
|
|
state: present
|
|
name: headers
|
|
|
|
- name: Proxy module
|
|
apache2_module:
|
|
state: present
|
|
name: proxy
|
|
|
|
- name: HTTP Proxy module
|
|
apache2_module:
|
|
state: present
|
|
name: proxy_http
|
|
|
|
- name: Copy apache tuning
|
|
copy:
|
|
src: apache-connection-tuning
|
|
dest: /etc/apache2/conf-enabled/connection-tuning.conf
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
notify: Restart apache2
|
|
|
|
- name: Make sure packaged default site disabled
|
|
command: a2dissite 000-default.conf
|
|
args:
|
|
removes: /etc/apache2/sites-enabled/000-default.conf
|
|
|
|
- name: Make a local empty directory for registry roots
|
|
file:
|
|
state: directory
|
|
path: /var/www/registry/v2
|
|
mode: 0755
|
|
owner: root
|
|
group: root
|
|
|
|
- name: Make a local empty index file for registry roots
|
|
copy:
|
|
content: ""
|
|
dest: /var/www/registry/v2/index.html
|
|
mode: 0644
|
|
owner: root
|
|
group: root
|
|
|
|
- name: Enable sites
|
|
include_tasks: enable_site.yaml
|
|
loop:
|
|
- 00-static.opendev.org
|
|
- 50-ask.openstack.org
|
|
- 50-ci.openstack.org
|
|
- 50-cinder.openstack.org
|
|
- 50-developer.openstack.org
|
|
- 50-devstack.org
|
|
- 50-docs.airshipit.org
|
|
- 50-docs.opendev.org
|
|
- 50-docs.openstack.org
|
|
- 50-docs.starlingx.io
|
|
- 50-eavesdrop.openstack.org
|
|
- 50-gating.dev
|
|
- 50-governance.openstack.org
|
|
- 50-glance.openstack.org
|
|
- 50-horizon.openstack.org
|
|
- 50-keystone.openstack.org
|
|
- 50-meetings.opendev.org
|
|
- 50-nova.openstack.org
|
|
- 50-planet.openstack.org
|
|
- 50-security.openstack.org
|
|
- 50-service-types.openstack.org
|
|
- 50-specs.openstack.org
|
|
- 50-releases.openstack.org
|
|
- 50-summit.openstack.org
|
|
- 50-swift.openstack.org
|
|
- 50-tarballs.opendev.org
|
|
- 50-tarballs.openstack.org
|
|
- 50-zuul-ci.org
|
|
loop_control:
|
|
loop_var: config
|
|
|
|
- name: Enable git sites
|
|
include_tasks: enable_git_site.yaml
|
|
loop:
|
|
- git.airshipit.org
|
|
- git.openstack.org
|
|
- git.starlingx.io
|
|
- git.zuul-ci.org
|
|
loop_control:
|
|
loop_var: hostname
|