This repository was archived by the owner on Feb 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathquartermaster.yml
More file actions
53 lines (49 loc) · 1.41 KB
/
Copy pathquartermaster.yml
File metadata and controls
53 lines (49 loc) · 1.41 KB
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
---
# Quartermaster installer playbook
#
# Install with 'ansible-playbook quartermaster.yml -e @/etc/secrets.yml'
#
# Should be run on the host you want to install on (localhost)
- name: Install quartermaster
hosts: bot
become: true
tags: ['common']
roles:
- role: admin-user
when: bonnyci_lockdown_ssh | default(False)
- role: common
- role: quartermaster
- role: standup-webapp
- role: uwsgi
uwsgi_apt_plugins:
- uwsgi-plugin-python
uwsgi_vassals:
- name: standup
state: present
config:
uid: www-data
gid: www-data
wsgi-file: "/opt/source/standup-webapp/wsgi.py"
virtualenv: "/opt/venvs/standup-webapp"
plugin: python
socket: localhost:3312
lazy-apps: true
- role: apache
apache_apt_install:
- libapache2-mod-proxy-uwsgi
apache_mods_enabled:
- proxy.conf
- proxy.load
- proxy_http.load
- proxy_uwsgi.load
apache_vhosts:
- name: standup
vhost_extra: |
ErrorLog /var/log/apache2/standup-error.log
LogLevel warn
CustomLog /var/log/apache2/standup-access.log combined
ProxyPass "/standups/" uwsgi://localhost:3312/
Redirect permanent /standups /standups/
<Directory /var/www/standup>
Require all granted
</Directory>