bundles/icinga2: only add user to on-call group if they have atleast one of (email, phone) set
bundlewrap/pipeline/head This commit looks good Details

This commit is contained in:
Franzi 2020-11-22 11:07:02 +01:00
parent 8c6c691e5e
commit 54219928e4
Signed by: kunsi
GPG Key ID: 12E3D2136B818350
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ object User "${username}" {
states = [ OK, Warning, Critical, Up, Down ]
types = [ Problem, Recovery ]
% if config['is_admin']:
% if config['is_admin'] and (config['email'] or config['phone']):
groups = [ "on-call_sms" ]
% endif