File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,14 +65,24 @@ docker_cert_path: /etc/ssl/docker/cert.pem
6565docker_key_path : /etc/ssl/docker/key.pem
6666docker_port : 4242
6767
68+ # ec2
69+ aws_access_key : " AKIAIB3IJCCJZQWQMVSQ"
70+ aws_secret_key : " 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"
71+
6872# eru
6973eru_port : 57831
7074eru_hostname : admin.{{ domain }}
7175
76+ # filibuster
77+ filibuster_port : 3112
78+
7279# fluffy
7380fluffy_port : 80
7481fluffy_hostname : " fluffy.{{ domain }}"
7582
83+ # krain
84+ krain_port : 3100
85+
7686# mavis
7787mavis_hostname : mavis.{{ domain }}
7888mavis_port : 3000
@@ -115,11 +125,3 @@ swarm_container_name: swarm
115125navi_mongo_database : navi
116126navi_mongo_host_address : " {{ hostvars[groups['mongo-navi'][0]]['ansible_default_ipv4']['address'] }}"
117127navi_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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"
Original file line number Diff line number Diff 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
5860container_run_opts : >
5961 -h {{ name }}
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
5052container_run_opts : >
5153 -h {{ name }}
Original file line number Diff line number Diff line change 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 }}"
You can’t perform that action at this time.
0 commit comments