Skip to content

Commit

Permalink
Merge pull request #32 from modcloth/print-unique-server-names-in-hip…
Browse files Browse the repository at this point in the history
…chat-message

Hipchat messages will now include the unique server name being deployed to
  • Loading branch information
jszwedko committed Sep 30, 2014
2 parents e49ea5f + 7a15171 commit 8c9c8c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
hipchat:
token: "{{ hipchat_token }}"
room: "{{ hipchat_room }}"
msg: "{{ lookup('file', modcloth_app_hipchat_html).replace('__ACTION__', 'deploying') }}"
msg: "{{ lookup('file', modcloth_app_hipchat_html).replace('__ACTION__', 'deploying').replace('__SERVER__', hostname ) }}"
msg_format: html
color: purple
changed_when: False
Expand Down Expand Up @@ -59,7 +59,7 @@
hipchat:
token: "{{ hipchat_token }}"
room: "{{ hipchat_room }}"
msg: "{{ lookup('file', modcloth_app_hipchat_html).replace('__ACTION__', 'done deploying') }}"
msg: "{{ lookup('file', modcloth_app_hipchat_html).replace('__ACTION__', 'done deploying').replace('__SERVER__', hostname ) }}"
msg_format: html
color: purple
changed_when: False
Expand Down
2 changes: 1 addition & 1 deletion templates/hipchat_notification.frag.html.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
{% else %}
{{ modcloth_app_docker_tag }}
{% endif %}
{{ modcloth_app_tag_annotation }} to {{ hostname | default(ansible_fqdn) }}
{{ modcloth_app_tag_annotation }} to __SERVER__

0 comments on commit 8c9c8c6

Please sign in to comment.