mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
ensure manager is in /etc/hosts
This commit is contained in:
@@ -34,6 +34,8 @@ sool9-{{host}}:
|
|||||||
grains:
|
grains:
|
||||||
hypervisor_host: {{host ~ "_" ~ role}}
|
hypervisor_host: {{host ~ "_" ~ role}}
|
||||||
preflight_cmds:
|
preflight_cmds:
|
||||||
|
- |
|
||||||
|
tee -a /etc/hosts <<< "{{ MANAGERIP }} {{ MANAGERHOSTNAME }}"
|
||||||
- |
|
- |
|
||||||
timeout 600 bash -c 'trap "echo \"Preflight Check: Failed to establish repo connectivity\"; exit 1" TERM; \
|
timeout 600 bash -c 'trap "echo \"Preflight Check: Failed to establish repo connectivity\"; exit 1" TERM; \
|
||||||
while ! dnf makecache --repoid=securityonion >/dev/null 2>&1; do echo "Preflight Check: Waiting for repo connectivity..."; \
|
while ! dnf makecache --repoid=securityonion >/dev/null 2>&1; do echo "Preflight Check: Waiting for repo connectivity..."; \
|
||||||
|
|||||||
@@ -40,6 +40,8 @@ cloud_profiles:
|
|||||||
- source: salt://salt/cloud/cloud.profiles.d/socloud.conf.jinja
|
- source: salt://salt/cloud/cloud.profiles.d/socloud.conf.jinja
|
||||||
- defaults:
|
- defaults:
|
||||||
HYPERVISORS: {{HYPERVISORS}}
|
HYPERVISORS: {{HYPERVISORS}}
|
||||||
|
MANAGERHOSTNAME: {{ grains.host }}
|
||||||
|
MANAGERIP: {{ pillar.host.mainip }}
|
||||||
- template: jinja
|
- template: jinja
|
||||||
|
|
||||||
{% for role, hosts in HYPERVISORS.items() %}
|
{% for role, hosts in HYPERVISORS.items() %}
|
||||||
|
|||||||
Reference in New Issue
Block a user