====== Add New User to Text Alerts ====== Author: Eoin Hearne\\ ===== Add to Watchdog Groovlet ===== Our watchdog system, running on cerberus server, is set up to send a text alert for critical alarms. This process is handled by a groovlet in the cerberus ticketer database. select * from ticketer.groovlet g where name = 'Send SMS And Email Alert'; Update the groovy_text to add the new user to the contacts map. def contacts = [ user1: 353871234567, user2: 353871234567, user3: 353871234567, user4: 353871234567, newuser: 353871234567 ] ===== Add User to Prometheus Alerts ===== The prometheus SMS service currently runs on the prometheusprod environment only. To add a user to the recipient list, add their name into the env-configuration for that environment. Branch the [[https://bitbucket.org/errigal/env-configuration/src/master/|env-configuration]] repo and add the user under the prometheus_sms.SMSrecipients section. SMSrecipients: NewUser: number: 353871234567 time: "{{timezones.waterford_office}}" ==== Deploy the Prometheus SMS Job ==== In the [[https://bitbucket.org/errigal/prometheus-sms/src/master/|Prometheus-SMS]] repo, run the below command, replacing the with the correct environment, currently prometheusprod. ansible-playbook -i ../env-configuration//hosts.ini --diff deploy.yml --vault-id @prompt