Add cluster join functionality and Kaspersky agent configuration to PMG. Updated Makefile for cluster bootstrap command, enhanced README with new service details, and modified pillar states for KESL and KLN agent integration. Added verification and management for cluster-only services in Salt states.
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
{% set pmg_services = salt['pillar.get']('pmg:pmg_services', []) %}
|
||||
{% set pmg_cluster_only_services = salt['pillar.get']('pmg:pmg_cluster_only_services', ['pmgmirror', 'pmgtunnel']) %}
|
||||
|
||||
{% for svc in pmg_services %}
|
||||
pmg-verify-service-{{ svc }}:
|
||||
cmd.run:
|
||||
- name: systemctl is-active --quiet {{ svc }}
|
||||
{% if svc in pmg_cluster_only_services %}
|
||||
- onlyif: "pmgcm status 2>/dev/null | awk 'BEGIN { ok=1 } /no cluster defined/ { ok=0 } END { exit(ok ? 0 : 1) }'"
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
pmg-verify-cluster:
|
||||
|
||||
Reference in New Issue
Block a user