Skip to content

Commit

Permalink
Use our standard names in dashboard
Browse files Browse the repository at this point in the history
This will display au-prod instead of openfoodnetwork.org.au and it will
show uk-prod instead of vps-d2442729. It makes it easier to see the
hosts and filter by production or staging.
  • Loading branch information
mkllnk committed Oct 5, 2023
1 parent 3100f1c commit 7bed298
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions roles/newrelic/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- name: restart newrelic_infra
service:
name: "newrelic-infra.service"
state: restarted
8 changes: 8 additions & 0 deletions roles/newrelic/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,11 @@
NEW_RELIC_REGION: "{{ new_relic_region }}"
args:
creates: /usr/bin/newrelic-infra

- name: Use our standard names in dashboard
lineinfile:
name: "/etc/newrelic-infra.yml"
line: "display_name: {{ host_id }}"
regex: "^display_name:"
state: present
notify: restart newrelic_infra

0 comments on commit 7bed298

Please sign in to comment.