This repository has been archived by the owner on Sep 1, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathload-balancer.yml
70 lines (68 loc) · 1.58 KB
/
load-balancer.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
---
- name: Basic Setup
hosts: loadbalancer
become: yes
tags:
- base
vars_files:
- vars.yml
roles:
- base
- name: Loadbalancer
hosts: loadbalancer
become: yes
vars:
recording: no
letsencrypt_email: [email protected]
nginx_domain_name: "scalelite01.timeout.srcf.net"
redis_port: 6379
redis_bind_interface: 127.0.0.1
ruby_install_from_source: yes
ruby_version: 2.6.6
ruby_download_url: https://cache.ruby-lang.org/pub/ruby/2.6/ruby-2.6.6.tar.gz
ruby_install_bundler: yes
postgresql_hba_entries:
- { type: local, database: all, user: postgres, auth_method: peer }
- { type: local, database: all, user: all, auth_method: peer }
- {
type: host,
database: all,
user: all,
address: "127.0.0.1/32",
auth_method: trust,
}
- {
type: host,
database: all,
user: all,
address: "::1/128",
auth_method: trust,
}
postgresql_users:
- name: scalelite
state: present
- name: grafana
state: present
postgresql_databases:
- name: scalelite
owner: scalelite
state: present
- name: grafana
owner: grafana
state: present
nfs_scalelite_read: yes
roles:
- nginx
- nginx-tls
- geerlingguy.redis
- role: geerlingguy.postgresql
become: yes
- geerlingguy.ruby
- scalelite
# - name: Register BBBs at Loadbalancer
# hosts: loadbalancer
# become: yes
# tags:
# - register-bbbs
# roles:
# - scalelite-config