-
Notifications
You must be signed in to change notification settings - Fork 11
/
init.yaml
169 lines (137 loc) · 5.28 KB
/
init.yaml
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
{%- set env = __grains__['env'] -%}
{%- set event_name = __grains__['event_name'] -%}
{%- set event_year = __grains__['event_year'] -%}
{%- set event_tag = __grains__.get('event_tag', '') -%}
{%- set private_ip = __grains__['ip4_interfaces'][__grains__.get('private_interface', 'eth1')][0] -%}
{%- if event_tag -%}
{%- set tag_match = 'G@event_tag:' ~ event_tag -%}
{%- else -%}
{%- set tag_match = 'not G@event_tag:*' -%}
{%- endif -%}
{%- set loadbalancer_id = __salt__['saltutil.runner']('mine.get',
tgt='G@roles:reggie and G@roles:loadbalancer and G@env:' ~ env ~ ' and G@event_name:' ~ event_name ~ ' and G@event_year:' ~ event_year ~ ' and ' ~ tag_match,
fun='private_ip',
tgt_type='compound').keys()|first -%}
{%- set sessions_ip = __salt__['saltutil.runner']('mine.get',
tgt='G@roles:reggie and G@roles:sessions and G@env:' ~ env ~ ' and G@event_name:' ~ event_name ~ ' and G@event_year:' ~ event_year ~ ' and ' ~ tag_match,
fun='private_ip',
tgt_type='compound').values()|first -%}
{%- set queue_ip = __salt__['saltutil.runner']('mine.get',
tgt='G@roles:reggie and G@roles:queue and G@env:' ~ env ~ ' and G@event_name:' ~ event_name ~ ' and G@event_year:' ~ event_year ~ ' and ' ~ tag_match,
fun='private_ip',
tgt_type='compound').values()|first -%}
{%- set db_ip = __salt__['saltutil.runner']('mine.get',
tgt='G@roles:reggie and G@roles:db and G@env:' ~ env ~ ' and G@event_name:' ~ event_name ~ ' and G@event_year:' ~ event_year ~ ' and ' ~ tag_match,
fun='private_ip',
tgt_type='compound').values()|first -%}
__: merge-first
{#
Uncomment these lines and run "salt -C 'G@roles:reggie' pillar.items" to
test how stack.cfg looks when rendered for each server.
-#}
{#
{% macro stack_cfg() %}{% include 'stack.cfg' %}{% endmacro %}
stack_cfg: |{{ stack_cfg()|indent(4) }}
-#}
mine_functions:
sqlalchemy_pool_size:
- mine_function: pillar.get
- 'reggie:plugins:ubersystem:config:sqlalchemy_pool_size'
sqlalchemy_max_overflow:
- mine_function: pillar.get
- 'reggie:plugins:ubersystem:config:sqlalchemy_max_overflow'
reggie:
user: reggie
group: reggie
install_dir: /srv/reggie
mounted_data_dir: /srv/mnt/reggie
host: {{ loadbalancer_id }}
maintenance: {{ pillar.get('reggie', {}).get('maintenance', False) }}
db:
username: reggie
password: reggie
name: reggie
host: {{ db_ip }}
backups:
enabled: False
backup_dir: /srv/backups/reggie/db
backup_log_dir: /var/log/reggie
backup_log_filename: db_backup.log
backup_schedule: '0 3 * * *' # crontab format "m h dom mon dow"
preserve_local_backup_count: 7
remote_backup_dir: /mnt/uber-backups/db-backups/reggie
remote_backup_server: backups.magfest.net
queue:
username: reggie
password: reggie
name: reggie
vhost: reggie
host: {{ queue_ip }}
sessions:
host: {{ sessions_ip }}
password: reggie
storage_type: redis
timeout: 60 # 1 hour (in minutes)
sideboard:
branch: master
config:
cherrypy:
server.socket_host: 127.0.0.1
server.socket_port: 8282
plugins:
ubersystem:
branch: master
config:
path: ''
sqlalchemy_pool_size: 5
sqlalchemy_max_overflow: 10
code_of_conduct_url: 'http://super.magfest.org/codeofconduct'
consent_form_url: 'http://super.magfest.org/parentalconsentform'
contact_url: 'http://super.magfest.org/contact'
prereg_faq_url: 'http://super.magfest.org/faq'
privacy_policy_url: 'https://super.magfest.org/privacy-policy'
jira_enabled: true
attendee_accounts_enabled: false
maps_enabled: true
blank_staff_badges: 50
panels_twilio_number: '+12405415595'
tabletop_twilio_number: '+15713646627'
preassigned_badge_types: ['staff_badge','contractor_badge']
admin_email: MAGFest Sys Admin <[email protected]>
developer_email: MAGFest Software <[email protected]>
security_email: MAGFest Security <[email protected]>
regdesk_email: MAGFest Registration <[email protected]>
regdesk_email_signature: '- MAGFest Registration Department'
staff_email: MAGFest Staffing <[email protected]>
stops_email_signature: '- MAGFest Staff Operations'
marketplace_email: MAGFest Marketplace <[email protected]>
marketplace_email_signature: '- MAGFest Marketplace'
panels_email: MAGFest Panels <[email protected]>
peglegs_email_signature: '- MAGFest Panels Department'
guest_email: MAGFest Guests <[email protected]>
guest_email_signature: '- MAGFest Guest Department'
band_email: MAGFest Music Department <[email protected]>
band_email_signature: '- MAGFest Music Department'
prereg_hotel_info_email_sender: Do Not Reply <[email protected]>
prereg_hotel_info_email_signature: '- MAGFest'
secret:
barcode_key: 'TEST ONLY!'
barcode_salt: 255
barcode_event_id: 255
ssh:
password_authentication: True
permit_root_login: False
ssl:
dir: /etc/ssl
certs_dir: /etc/ssl/certs
ufw:
enabled: True
settings:
ipv6: False
sysctl:
ipv6_autoconf: 0
applications:
OpenSSH:
limit: True
to_addr: {{ private_ip }}
comment: Private network SSH