Skip to content
This repository was archived by the owner on Apr 15, 2023. It is now read-only.

Commit a07e7f8

Browse files
committed
add pillar for enabling monitoring
1 parent f44181c commit a07e7f8

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

tasks/monitoring.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,8 @@
1818

1919
- name: Enable monitoring
2020
become: true
21-
command: mgr-monitoring-ctl enable
22-
# args:
23-
# creates: /usr/lib/systemd/system/tomcat.service.d/jmx.conf
21+
command: mgr-monitoring-ctl enable "{'db_name':{{ uyuni_db_name }},'db_user':{{ uyuni_db_user }},'db_pass':{{ uyuni_db_pass }},'db_port':'5432','db_host':'localhost'}"
22+
args:
23+
creates: /usr/lib/systemd/system/tomcat.service.d/jmx.conf
2424
when: "'error' in monitoring_state.stderr|lower"
2525
notify: Restart Uyuni
26-
27-
# TODO: enable monitoring in UI?
28-
# POST rhn/manager/api/admin/config/monitoring
29-
# {enable: true}
30-
# Content-Type: application/json;charset=UTF-8
31-
# DWRSESSIONID
32-
# session
33-
# pxt-session-cookie

0 commit comments

Comments
 (0)