File tree Expand file tree Collapse file tree
roles/git_node_service/tasks Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11---
22- hosts : redis
33
4- - hosts : charon
4+ - hosts : docks
55 vars_files :
66 - " group_vars/alpha-charon.yml"
77 roles :
88 - { role: notify, tags: "notify" }
9- - { role: builder, tags: "build" }
10- - { role: container_kill_start, tags: "deploy" }
9+ - { role: git_node_service, tags: "deploy" }
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ container_envs: >
2424 -h api
2525 -e AWS_ACCESS_KEY_ID={{ api_aws_access_key_id }}
2626 -e AWS_SECRET_ACCESS_KEY={{ api_aws_secret_access_key }}
27- -e CHARON_HOST={{ hostvars[groups['charon'][0]]['ansible_default_ipv4']['address'] }}
2827 -e DATADOG_HOST={{ datadog_host }}
2928 -e DATADOG_PORT={{ datadog_port }}
3029 -e DOMAIN={{ domain }}
Original file line number Diff line number Diff line change 11name : " charon"
2-
3- container_image : " registry.runnable.com/runnable/{{ name }}"
4- container_tag : " {{ git_branch }}"
5- repo : " git@github.com:CodeNow/{{ name }}.git"
2+ app_name : " charon"
3+ app_repo : " git@github.com:CodeNow/{{ name }}.git"
64hosted_ports : ["53"]
7- node_version : " 0.10.31"
8- npm_version : " 2.1.18"
95
106redis_host : " {{ hostvars[groups['redis'][0]]['ansible_default_ipv4']['address'] }}"
117redis_port : 6379
128
13- container_envs : >
14- -h charon
15- -e NODE_ENV={{ node_env }}
16- -e API_HOST=api.{{ domain }}
17- -e API_TOKEN=51c61b779f3de616a9639cfc44a22c79fbd8e328
18- -e DATADOG_HOST={{ datadog_host }}
19- -e DATADOG_PORT={{ datadog_port }}
20- -e DOMAIN_FILTER={{ user_content_domain }}
21- -e PORT={{ hosted_ports[0] }}
22- -e REDIS_HOST={{ redis_host }}
23- -e REDIS_PORT={{ redis_port }}
24-
25- container_run_opts : " -d -p {{ hosted_ports[0] }}:{{ hosted_ports[0] }} -p {{ hosted_ports[0] }}:{{ hosted_ports[0] }}/udp {{container_envs}}"
9+ enviroment_vars :
10+ API_HOST : " api.{{ domain }}"
11+ API_TOKEN : " 51c61b779f3de616a9639cfc44a22c79fbd8e328"
12+ DATADOG_HOST : " {{ datadog_host }}"
13+ DATADOG_PORT : " {{ datadog_port }}"
14+ DOMAIN_FILTER : " {{ user_content_domain }}"
15+ PORT : " {{ hosted_ports[0] }}"
16+ REDIS_HOST : " {{ redis_host }}"
17+ REDIS_PORT : " {{ redis_port }}"
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ container_envs: >
2020 -h api-worker
2121 -e AWS_ACCESS_KEY_ID={{ api_aws_access_key_id }}
2222 -e AWS_SECRET_ACCESS_KEY={{ api_aws_secret_access_key }}
23- -e CHARON_HOST={{ hostvars[groups['charon'][0]]['ansible_default_ipv4']['address'] }}
2423 -e DATADOG_HOST={{ datadog_host }}
2524 -e DATADOG_PORT={{ datadog_port }}
2625 -e DOMAIN={{ domain }}
Original file line number Diff line number Diff line change 2424 update=yes
2525 accept_hostkey=True
2626 force=yes
27- key_file=/opt/runnable/dock-init/key/id_rsa_{{ app_name | replace("-","_")}}
27+ key_file=/opt/runnable/dock-init/key/id_rsa_runnabledock
2828 notify :
2929 - npm install {{ app_name }}
3030 - restart service {{ app_name }}
You can’t perform that action at this time.
0 commit comments