Skip to content

Commit c2e4ec1

Browse files
author
Anandkumar Patel
committed
sort configs, add krain and filibuster
1 parent 7297f05 commit c2e4ec1

5 files changed

Lines changed: 21 additions & 15 deletions

File tree

ansible/group_vars/all.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,24 @@ docker_cert_path: /etc/ssl/docker/cert.pem
6565
docker_key_path: /etc/ssl/docker/key.pem
6666
docker_port: 4242
6767

68+
# ec2
69+
aws_access_key: "AKIAIB3IJCCJZQWQMVSQ"
70+
aws_secret_key: "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"
71+
6872
# eru
6973
eru_port: 57831
7074
eru_hostname: admin.{{ domain }}
7175

76+
# filibuster
77+
filibuster_port: 3112
78+
7279
# fluffy
7380
fluffy_port: 80
7481
fluffy_hostname: "fluffy.{{ domain }}"
7582

83+
# krain
84+
krain_port: 3100
85+
7686
# mavis
7787
mavis_hostname: mavis.{{ domain }}
7888
mavis_port: 3000
@@ -115,11 +125,3 @@ swarm_container_name: swarm
115125
navi_mongo_database: navi
116126
navi_mongo_host_address: "{{ hostvars[groups['mongo-navi'][0]]['ansible_default_ipv4']['address'] }}"
117127
navi_mongo_port: 27017
118-
119-
# consul
120-
consul_hostname: "{{ hostvars[groups['consul'][0]]['ansible_default_ipv4']['address'] }}"
121-
consul_port: 8500
122-
123-
# ec2
124-
aws_access_key: "AKIAIB3IJCCJZQWQMVSQ"
125-
aws_secret_key: "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"

ansible/group_vars/alpha-api.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@ container_envs: >
2424
-e DATADOG_HOST={{ datadog_host_address }}
2525
-e DATADOG_PORT={{ datadog_port }}
2626
-e DOMAIN={{ domain }}
27+
-e FILIBUSTER_PORT={{ filibuster_port }}
2728
-e GITHUB_CALLBACK_URL=https://{{ api_hostname }}/auth/github/callback
2829
-e GITHUB_CLIENT_ID={{ api_github_client_id }}
2930
-e GITHUB_CLIENT_SECRET={{ api_github_client_secret }}
3031
-e GITHUB_DEPLOY_KEYS_BUCKET={{ api_github_deploy_keys_bucket }}
3132
-e GITHUB_HOOK_URL=https://{{ api_hostname }}/actions/github
3233
-e HELLO_RUNNABLE_GITHUB_TOKEN={{ api_hello_runnable_github_token }}
34+
-e KRAIN_PORT={{ krain_port }}
3335
-e MAVIS_HOST=http://{{ mavis_hostname }}:80
3436
-e MIXPANEL_APP_ID={{ api_mixpanel_app_id }}
3537
-e MONGO=mongodb://{{ api_mongo_auth }}@{{ mongo_hosts }}/{{ api_mongo_database }}
@@ -52,8 +54,8 @@ container_envs: >
5254
-e ROLLBAR_KEY={{ api_rollbar_key }}
5355
-e S3_CONTEXT_RESOURCE_BUCKET={{ api_s3_context_bucket }}
5456
-e SENDGRID_KEY={{ sendgrid_key }}
55-
-e USER_CONTENT_DOMAIN={{ user_content_domain }}
5657
-e SWARM_HOST=http://{{ swarm_host_address }}:{{ swarm_master_port }}
58+
-e USER_CONTENT_DOMAIN={{ user_content_domain }}
5759
5860
container_run_opts: >
5961
-h {{ name }}

ansible/group_vars/alpha-consul.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ container_run_args: >
3131
-config-dir /etc/consul.d
3232
-client 0.0.0.0
3333
-recursor 8.8.8.8
34-
{% if consul_hostname == ansible_default_ipv4.address %}-bootstrap-expect {{ groups['consul'] | length }}{% endif %}
34+
{% if consul_host_address == ansible_default_ipv4.address %}-bootstrap-expect {{ groups['consul'] | length }}{% endif %}
3535
-data-dir /data
36-
{% if consul_hostname == ansible_default_ipv4.address %}-ui-dir /ui{% endif %}
37-
{% if consul_hostname != ansible_default_ipv4.address %}-retry-join {{ consul_hostname }}{% endif %}
36+
{% if consul_host_address == ansible_default_ipv4.address %}-ui-dir /ui{% endif %}
37+
{% if consul_host_address != ansible_default_ipv4.address %}-retry-join {{ consul_host_address }}{% endif %}
3838
> /var/log/consul.log 2>&1
3939
4040
# some seed values

ansible/group_vars/alpha-workers.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@ container_envs: >
1717
-e DATADOG_HOST={{ datadog_host_address }}
1818
-e DATADOG_PORT={{ datadog_port }}
1919
-e DOMAIN={{ domain }}
20+
-e FILIBUSTER_PORT={{ filibuster_port }}
2021
-e GITHUB_CALLBACK_URL=https://{{ api_hostname }}/auth/github/callback
2122
-e GITHUB_CLIENT_ID={{ api_github_client_id }}
2223
-e GITHUB_CLIENT_SECRET={{ api_github_client_secret }}
2324
-e GITHUB_DEPLOY_KEYS_BUCKET={{ api_github_deploy_keys_bucket }}
2425
-e GITHUB_HOOK_URL=https://{{ api_hostname }}/actions/github
2526
-e HELLO_RUNNABLE_GITHUB_TOKEN={{ api_hello_runnable_github_token }}
2627
-e IS_QUEUE_WORKER=true
28+
-e KRAIN_PORT={{ krain_port }}
2729
-e MAVIS_HOST=http://{{ mavis_hostname }}:80
2830
-e MIXPANEL_APP_ID={{ api_mixpanel_app_id }}
2931
-e MONGO=mongodb://{{ api_mongo_auth }}@{{ mongo_hosts }}/{{ api_mongo_database }}
@@ -44,8 +46,8 @@ container_envs: >
4446
-e REDIS_PORT={{ redis_port }}
4547
-e ROLLBAR_KEY={{ api_rollbar_key }}
4648
-e S3_CONTEXT_RESOURCE_BUCKET={{ api_s3_context_bucket }}
47-
-e USER_CONTENT_DOMAIN={{ user_content_domain }}
4849
-e SWARM_HOST=http://{{ swarm_host_address }}:{{ swarm_master_port }}
50+
-e USER_CONTENT_DOMAIN={{ user_content_domain }}
4951
5052
container_run_opts: >
5153
-h {{ name }}

ansible/roles/consul_value/tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010

1111
- name: put values into consul
1212
run_once: true
13-
when: consul_hostname is defined and consul_port is defined and consul_values is defined
13+
when: consul_host_address is defined and consul_api_port is defined and consul_values is defined
1414
uri:
1515
method=PUT
16-
url=http://{{ consul_hostname }}:{{ consul_port }}/v1/kv/{{ item.key }}
16+
url=http://{{ consul_host_address }}:{{ consul_api_port }}/v1/kv/{{ item.key }}
1717
body="{{ item.value }}"
1818
with_items: "{{ consul_values }}"

0 commit comments

Comments
 (0)