Skip to content

Commit 6534a0e

Browse files
committed
Fix ENV stuff. Fix storage gb vars
1 parent b4e272d commit 6534a0e

9 files changed

Lines changed: 33 additions & 20 deletions

File tree

ansible/group_vars/all.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ clio_mongo_database: clio
104104
# consul
105105
consul_api_port: 8500
106106
consul_https_port: 8501
107+
consul_storage_size_gb: 10
107108

108109
# cream
109110
cream_port: 8899
@@ -173,6 +174,9 @@ marketing_url: https://{{ domain }}
173174
# metabase
174175
metabase_port: 3000
175176

177+
# mongo
178+
mongo_storage_size_gb: 50
179+
176180
# navi
177181
navi_host_address: navi
178182
navi_http_port: 3567
@@ -193,8 +197,12 @@ palantiri_rollbar_token: ed971bbca9ea44a29268afc606ab8c7d
193197
pheidi_email_github_token: 115b4d854e34e8a5ba99ab73eefe4bf7a8944d6d
194198
pheidi_rollbar_token: 6fc422ac645441bea7f6f14853eb01ab
195199

200+
# postgres
201+
postgres_storage_size_gb: 50
202+
196203
# prometheus
197204
prometheus_port: 9090
205+
prometheus_storage_size_gb: 100
198206
prometheus_aws_access_key: AKIAIFG37NSI6O2QMRRQ
199207
prometheus_aws_secret_key: 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
200208

@@ -205,10 +213,12 @@ prometheus_alert_url: http://prometheus-alerts:{{ prometheus_alert_port }}
205213
# rabbit
206214
rabbit_host_address: rabbitmq
207215
rabbit_port: 5672
216+
rabbit_storage_size_gb: 50
208217

209218
# redis
210219
redis_host_address: redis
211220
redis_port: 6379
221+
redis_storage_size_gb: 50
212222

213223
# sauron
214224
sauron_rollbar_token: 83157ae2d50d4b6398e404c0b9978d26

ansible/group_vars/alpha-consul.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ container_run_opts: >
2626
-p {{ ansible_default_ipv4.address }}:{{ consul_https_port }}:{{ consul_https_port }}
2727
--restart=always
2828
29-
storage_size_gb: 10
29+
storage_size_gb: "{{ consul_storage_size_gb }}"
3030

3131
container_run_args: >
3232
consul agent

ansible/group_vars/alpha-ingress-proxy.yml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,18 @@ services:
4343
- name: base
4444
route: "/"
4545
port: "{{ api_port }}"
46-
# TODO: Find a way to NOT have to deploy these
47-
# - name: eru
48-
# upstreams:
49-
# - name: base
50-
# route: "/"
51-
# port: "{{ eru_http_port }}"
52-
# - name: graphql
53-
# route: "/graphql"
54-
# port: "{{ eru_graphql_port }}"
55-
# - name: egret
56-
# upstreams:
57-
# - name: base
58-
# route: "/"
59-
# port: "{{ egret_port }}"
46+
- name: eru
47+
include: "{{ include_eru_proxy | default(true) }}"
48+
upstreams:
49+
- name: base
50+
route: "/"
51+
port: "{{ eru_http_port }}"
52+
- name: graphql
53+
route: "/graphql"
54+
port: "{{ eru_graphql_port }}"
55+
- name: egret
56+
include: "{{ include_ergre_proxy | default(true) }}"
57+
upstreams:
58+
- name: base
59+
route: "/"
60+
port: "{{ egret_port }}"

ansible/group_vars/alpha-mongo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: mongo
22
hosted_ports: ["{{ mongo_port }}"]
33
container_run_args: ''
44

5-
storage_size_gb: 50
5+
storage_size_gb: "{{ mongo_storage_size_gb }}"
66

77
volume_id: "{{ mongo_volume_id }}"
88

ansible/group_vars/alpha-postgres.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: postgres
22
hosted_ports: ["{{ pg_port }}"]
33
container_run_args: ''
44

5-
storage_size_gb: 50
5+
storage_size_gb: "{{ postgres_storage_size_gb }}"
66

77
volume_mounts:
88
- name: "{{ name }}-db-claim"

ansible/group_vars/alpha-prometheus.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ hosted_ports: ["{{ prometheus_port }}"]
66

77
memory_hard_limit: 15G
88

9-
storage_size_gb: 100
9+
storage_size_gb: "{{ prometheus_storage_size_gb }}"
1010

1111
volume_id: "{{ prometheus_volume_id }}"
1212

ansible/group_vars/alpha-rabbitmq.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ service_name: rabbitmq
33

44
hosted_ports: [ "{{ rabbit_port }}", 15672 ]
55

6-
storage_size_gb: 50
6+
storage_size_gb: "{{ rabbit_storage_size_gb }}"
77

88
volume_id: "{{ rabbit_volume_id }}"
99

ansible/group_vars/alpha-redis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: redis
22
hosted_ports: ["{{ redis_port }}"]
33

4-
storage_size_gb: 50
4+
storage_size_gb: "{{ redis_storage_size_gb }}"
55

66
volume_id: "{{ redis_volume_id }}"
77

ansible/roles/runnable-domain-proxy/templates/sites-enabled.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ data:
5757
}
5858

5959
{% for service in services %}
60+
{% if 'include' not in service or service.include != false %}
6061
{{ service.name }}.conf: |
6162
map $http_upgrade $connection_upgrade {
6263
default upgrade;
@@ -134,4 +135,5 @@ data:
134135

135136
{% endfor %}
136137
}
138+
{% endif %}
137139
{% endfor %}

0 commit comments

Comments
 (0)