Commit ce6cabfc authored by EKbfh's avatar EKbfh 🐼
Browse files

Merge branch 'ansible-make-worker-needed' into 'master'

Add check about worker needs and *sender mx dependency

See merge request noc/noc!6261
parents 737c5772 e8570152
Pipeline #36077 passed with stages
in 35 minutes and 32 seconds
......@@ -27,3 +27,12 @@
- has_svc_icqsender is defined
tags:
- checks
- name: fail if "mx" is not selected
fail:
msg: "ICQsender service works with 'mx' service. Please setup at least one somewhere."
when:
- has_svc_icqsender is defined
- "'svc-mx-exec' not in groups"
tags:
- checks
......@@ -16,3 +16,12 @@
- "'svc-liftbridge' not in groups"
tags:
- checks
- name: fail if "mx" is not selected
fail:
msg: "kafkasender service works with 'mx' service. Please setup at least one somewhere."
when:
- has_svc_kafkasender is defined
- "'svc-mx-exec' not in groups"
tags:
- checks
......@@ -7,3 +7,12 @@
- has_svc_noc is not defined
tags:
- checks
- name: fail if "mx" is not selected
fail:
msg: "Mailsender service works with 'mx' service. Please setup at least one somewhere."
when:
- has_svc_mailsender is defined
- "'svc-mx-exec' not in groups"
tags:
- checks
......@@ -31,7 +31,7 @@
- name: Warn about omap is selected
fail:
msg: |
Be aware that omap service is depricated and should not be used.
Be aware that omap service is deprecated and should not be used.
Read https://kb.nocproject.org/x/OwB2Ag for more details.
when:
- has_svc_omap is defined
......
......@@ -27,3 +27,12 @@
- has_svc_tgsender is defined
tags:
- checks
- name: fail if "mx" is not selected
fail:
msg: "tgsender service works with 'mx' service. Please setup at least one somewhere."
when:
- has_svc_tgsender is defined
- "'svc-mx-exec' not in groups"
tags:
- checks
......@@ -7,3 +7,10 @@
- has_svc_noc is not defined
tags:
- checks
- name: No worker service is set
fail:
msg: "No worker service is set. Please setup at least one. "
when: "'svc-worker-exec' not in groups"
tags:
- checks
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment