Browse Source

enough: services and the list of hosts is different

keep-around/2107313dc5fd8dad3d4b0b8df0e43301bbe9e660
Loïc Dachary 1 year ago
committed by Loic Dachary
parent
commit
2107313dc5
Signed by: dachary GPG Key ID: 992D23B392F9E4F2
  1. 2
      enough/common/service.py
  2. 68
      inventory/services.yml

2
enough/common/service.py

@ -16,7 +16,7 @@ class Service(ABC):
def __init__(self, config_dir, share_dir):
self.config_dir = config_dir
self.share_dir = share_dir
suffix = '-service-group'
suffix = '-service-hosts'
groups = ansible_utils.get_groups()
self.service2hosts = {
name.replace(suffix, ''): hosts for name, hosts in groups.items()

68
inventory/services.yml

@ -1,10 +1,10 @@
---
essential-service-group:
essential-service-hosts:
children:
bind-service-group:
postfix-service-group:
wazuh-service-group:
icinga-service-group:
wazuh-service-group:
bind-service-group:
hosts:
@ -42,77 +42,113 @@ cloud-service-group:
hosts:
cloud-host:
wereport-host:
cloud-service-hosts:
children:
essential-service-group:
cloud-service-group:
essential-service-hosts:
gitlab-service-group:
hosts:
gitlab-host:
children:
essential-service-group:
gitlab-runner-service-group:
hosts:
runner-host:
gitlab-service-hosts:
children:
essential-service-group:
gitlab-service-group:
gitlab-runner-service-group:
essential-service-hosts:
weblate-service-group:
hosts:
weblate-host:
weblate-service-hosts:
children:
essential-service-group:
weblate-service-group:
essential-service-hosts:
packages-service-group:
hosts:
packages-host:
packages-service-hosts:
children:
essential-service-group:
packages-service-group:
essential-service-hosts:
chat-service-group:
hosts:
chat-host:
chat-service-hosts:
children:
essential-service-group:
chat-service-group:
essential-service-hosts:
forum-service-group:
hosts:
forum-host:
forum-service-hosts:
children:
essential-service-group:
forum-service-group:
essential-service-hosts:
website-service-group:
hosts:
website-host:
website-service-hosts:
children:
essential-service-group:
website-service-group:
essential-service-hosts:
api-service-group:
hosts:
api-host:
api-service-hosts:
children:
essential-service-group:
api-service-group:
gitlab-service-hosts:
essential-service-hosts:
wekan-service-group:
hosts:
website-host:
wekan-service-hosts:
children:
essential-service-group:
wekan-service-group:
essential-service-hosts:
pad-service-group:
hosts:
website-host:
pad-service-hosts:
children:
essential-service-group:
pad-service-group:
essential-service-hosts:
openvpn-service-group:
hosts:
website-host:
openvpn-service-hosts:
children:
essential-service-group:
openvpn-service-group:
essential-service-hosts:
backup-service-group:
hosts:
bind-host:
backup-service-hosts:
children:
essential-service-group:
backup-service-group:
essential-service-hosts:
Loading…
Cancel
Save