-
Notifications
You must be signed in to change notification settings - Fork 1
/
vhosts.yml
74 lines (65 loc) · 2.59 KB
/
vhosts.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
---
- name: create web builder's user
user:
name: "{{ websync_user }}"
comment: "Web Builder User"
- name: Create vhost for www.rdoproject.org
include_role:
name: httpd
tasks_from: vhost
vars:
website_domain: www.rdoproject.org
document_root: "{{ websync_path }}"
document_root_group: "{{ websync_user }}"
server_aliases:
- rdoproject.org
- openstack.redhat.com
redirects:
- src: "^/blog/(.*)"
target: "http://blogs.rdoproject.org/$1"
match: True
- src: /stats
target: https://rdo.biterg.io/
- src: "^/repos(.*)"
target: "https://repos.fedorapeople.org/repos/openstack$1"
match: True
use_mod_speling: True
# TODO: investigate why unsafe-eval is needed
content_security_policy: "default-src 'none'; connect-src 'self'; font-src 'self' https://themes.googleusercontent.com; frame-src https://platform.twitter.com https://syndication.twitter.com; img-src 'self' data: https://pbs.twimg.com https://platform.twitter.com https://s1795.t.eloqua.com https://smtrcs.redhat.com https://syndication.twitter.com; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://cdn.syndication.twimg.com https://img.en25.com https://platform.twitter.com https://secure.eloqua.com https://secure.p01.eloqua.com https://static.redhat.com https://www.redhat.com; style-src 'self' 'unsafe-inline' https://platform.twitter.com"
- name: "Add RDO-specific mod_speling config"
copy:
content: "CheckCaseOnly on\n"
dest: /etc/httpd/conf.d/www.rdoproject.org.conf.d/mod_speling_rdo.conf
notify: reload httpd
- name: Create vhost for ask.rdoproject.org
include_role:
name: httpd
tasks_from: vhost
vars:
website_domain: ask.rdoproject.org
redirect: https://ask.openstack.org/en/questions/scope:unanswered/sort:age-desc/page:1/query:rdo/
- name: Create vhost for docs.rdoproject.org
include_role:
name: httpd
tasks_from: vhost
vars:
website_domain: docs.rdoproject.org
redirect: https://www.rdoproject.org/documentation/
- name: Install RDO Dashboards
include_role:
name: dashboards
vars:
website_domain: dashboards.rdoproject.org
- name: create planet builder's user
user:
name: "{{ planet_sync_user }}"
comment: "Planet Builder User"
- name: Create vhost for planet.rdoproject.org
include_role:
name: httpd
tasks_from: vhost
vars:
website_domain: planet.rdoproject.org
document_root: "{{ planet_sync_path }}"
document_root_group: "{{ planet_sync_user }}"
content_security_policy: "default-src 'none'; img-src *; style-src 'self' 'unsafe-inline'"