mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-06-22 10:18:09 +02:00
manage with contents to simplify salt cloud profile file_map
This commit is contained in:
@@ -35,9 +35,15 @@ sool9-{{host}}:
|
||||
# - echo "preflight_cmds"
|
||||
# the destination directory will be created if it doesn't exist
|
||||
file_map:
|
||||
/opt/so/saltstack/default/salt/setup/virt/initial_schedule.sls: /opt/so/conf/salt/cloud_file_map/salt/initial_schedule.sls
|
||||
/opt/so/saltstack/default/salt/setup/virt/initial_schedule.sls: /opt/so/conf/salt/cloud_file_map/salt/setup/virt/initial_schedule.sls
|
||||
/opt/so/saltstack/default/salt/salt/mine_functions.sls: /opt/so/conf/salt/cloud_file_map/salt/salt/mine_functions.sls
|
||||
inline_script:
|
||||
- "sudo salt-call state.apply initial_schedule --local --file-root=/opt/so/conf/salt/cloud_file_map/salt/"
|
||||
- |
|
||||
sudo salt-call state.apply salt.mine_functions \
|
||||
--local \
|
||||
--file-root=/opt/so/conf/salt/cloud_file_map/salt/ \
|
||||
pillar='{"host": {"mainint": "eth0"}}'
|
||||
- "sudo salt-call state.apply setup.virt.initial_schedule --local --file-root=/opt/so/conf/salt/cloud_file_map/salt/"
|
||||
# - "rpm --import /tmp/securityonion.pub"
|
||||
# grains to add to the minion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user