Skip to content

Commit b96fd93

Browse files
committed
Monitor the management machine
1 parent deddb35 commit b96fd93

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

icpc-wf/ansible/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ $(LIBVENDOR): $(LIBVENDORTGZ)
2323
-cd roles/domjudge_checkout/files && tar xzf $(notdir $<)
2424
endif
2525

26-
domserver judgehost admin grafana cds scoreboard: %: %.yml hosts group_vars/all/secret.yml $(LIBVENDOR) $(SSHKEY) $(SSHKEY).pub
26+
domserver judgehost admin grafana cds scoreboard mgmt: %: %.yml hosts group_vars/all/secret.yml $(LIBVENDOR) $(SSHKEY) $(SSHKEY).pub
2727
ansible-playbook -i hosts $<
2828

2929
admin: $(SSL_LOCALHOST_FILES)

icpc-wf/ansible/hosts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,6 @@ domjudge-cds ansible_host=10.2.2.228
4141

4242
[scoreboard]
4343
domjudge-scoreboard ansible_host=10.2.2.229
44+
45+
[mgmt]
46+
domjudge-mgmg ansible_host=10.3.3.223

icpc-wf/ansible/mgmt.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
# This playbook installs the Management machine
3+
4+
- name: setup management
5+
hosts: mgmt
6+
vars:
7+
host_type: mgmt
8+
become: yes
9+
roles:
10+
- role: prometheus_target_all
11+
tags: prometheus_target_all
12+
when: GRAFANA_MONITORING

0 commit comments

Comments
 (0)