diff --git a/README.md b/README.md index 728f8620..bcb3608f 100644 --- a/README.md +++ b/README.md @@ -132,6 +132,7 @@ It is the custom at Runnable to play a song to the entire team when deploying. F | Service | Deploy Song Link | | ------- | ---------------- | | api / api-workers | [Push it - Rick Ross](https://www.youtube.com/watch?v=qk2jeE1LOn8) | +| arithmancy | [onerepublic - Counting Stars](https://www.youtube.com/watch?v=hT_nvWreIhg) | | big poppa | [Big Poppa - The Notorious B.I.G.](https://www.youtube.com/watch?v=phaJXp_zMYM) | | charon | [Enter Sandman - Metallica](https://www.youtube.com/watch?v=CD-E-LDc384) | | cream | [C.R.E.A.M. - Wu-Tang Clan](https://www.youtube.com/watch?v=PBwAxmrE194) | diff --git a/ansible/arithmancy.yml b/ansible/arithmancy.yml new file mode 100644 index 00000000..1054d4d4 --- /dev/null +++ b/ansible/arithmancy.yml @@ -0,0 +1,13 @@ +--- +- hosts: rabbitmq +- hosts: consul + +- hosts: arithmancy + vars_files: + - group_vars/alpha-arithmancy.yml + roles: + - role: notify + rollbar_token: "{{ arithmancy_rollbar_token }}" + tags: [ notify ] + - { role: builder, tags: [build] } + - { role: container_kill_start } diff --git a/ansible/delta-hosts/hosts b/ansible/delta-hosts/hosts index 6cfa24fc..8473121a 100644 --- a/ansible/delta-hosts/hosts +++ b/ansible/delta-hosts/hosts @@ -122,8 +122,12 @@ delta-app-services [cream] delta-app-services +[arithmancy] +delta-app-services + [delta:children] api +arithmancy bastion big-poppa charon diff --git a/ansible/epsilon-hosts/hosts b/ansible/epsilon-hosts/hosts index c4f6245b..edb04918 100644 --- a/ansible/epsilon-hosts/hosts +++ b/ansible/epsilon-hosts/hosts @@ -110,8 +110,12 @@ epsilon-app-services [github-varnish] epsilon-app-services +[arithmancy] +epsilon-app-services + [epsilon:children] api +arithmancy bastion big-poppa charon diff --git a/ansible/gamma-hosts/hosts b/ansible/gamma-hosts/hosts index 19863c36..24109837 100644 --- a/ansible/gamma-hosts/hosts +++ b/ansible/gamma-hosts/hosts @@ -114,12 +114,16 @@ gamma-app-services [github-varnish] gamma-app-services +[arithmancy] +gamma-app-services + [docks] [dock] [gamma:children] api +arithmancy bastion big-poppa charon diff --git a/ansible/group_vars/all.yml b/ansible/group_vars/all.yml index 149f5ecb..6b2ea5d6 100644 --- a/ansible/group_vars/all.yml +++ b/ansible/group_vars/all.yml @@ -50,6 +50,9 @@ api_socket_server_hostname: apisock.{{ domain }} api_socket_server_rollbar_key: cad27f265e8e473c9b293615e7ed0f3a api_url: https://{{ api_hostname }} +# arithmancy +arithmancy_rollbar_key: 1fe145fdeb1a4526b48f5dd82b0d6eb5 + # astral pg_database: astral diff --git a/ansible/group_vars/alpha-arithmancy.yml b/ansible/group_vars/alpha-arithmancy.yml new file mode 100644 index 00000000..82078361 --- /dev/null +++ b/ansible/group_vars/alpha-arithmancy.yml @@ -0,0 +1,24 @@ +name: "arithmancy" + +container_image: "registry.runnable.com/runnable/{{ name }}" +container_tag: "{{ git_branch }}" +repo: "git@github.com:CodeNow/{{ name }}.git" +node_version: "4.2.2" +npm_version: "2.14.7" + +# container settings +container_envs: > + -e NODE_ENV={{ node_env }} + -e DATADOG_HOST={{ datadog_host_address }} + -e DATADOG_PORT={{ datadog_port }} + -e RABBITMQ_HOSTNAME={{ rabbit_host_address }} + -e RABBITMQ_PASSWORD={{ rabbit_password }} + -e RABBITMQ_PORT={{ rabbit_port }} + -e RABBITMQ_USERNAME={{ rabbit_username }} + -e ROLLBAR_KEY={{ arithmancy_rollbar_key }} + +container_run_opts: > + -h {{ name }} + -d + -v /opt/ssl/docker/{{ name }}:/etc/ssl/docker:ro + {{ container_envs }}