mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
bootstrap dont start daemon, use state to start it
This commit is contained in:
@@ -26,9 +26,9 @@
|
|||||||
|
|
||||||
{% if INSTALLEDSALTVERSION != SALTVERSION %}
|
{% if INSTALLEDSALTVERSION != SALTVERSION %}
|
||||||
{% if grains.os_family|lower == 'redhat' %}
|
{% if grains.os_family|lower == 'redhat' %}
|
||||||
{% set UPGRADECOMMAND = 'yum clean all ; /usr/sbin/bootstrap-salt.sh -s 120 -r -F stable ' ~ SALTVERSION %}
|
{% set UPGRADECOMMAND = 'yum clean all ; /usr/sbin/bootstrap-salt.sh -X -r -F stable ' ~ SALTVERSION %}
|
||||||
{% elif grains.os_family|lower == 'debian' %}
|
{% elif grains.os_family|lower == 'debian' %}
|
||||||
{% set UPGRADECOMMAND = '/usr/sbin/bootstrap-salt.sh -s 120 -F stable ' ~ SALTVERSION %}
|
{% set UPGRADECOMMAND = '/usr/sbin/bootstrap-salt.sh -X -F stable ' ~ SALTVERSION %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% set UPGRADECOMMAND = 'echo Already running Salt Minion version ' ~ SALTVERSION %}
|
{% set UPGRADECOMMAND = 'echo Already running Salt Minion version ' ~ SALTVERSION %}
|
||||||
|
|||||||
@@ -44,7 +44,11 @@ install_salt_minion:
|
|||||||
# minion service is in failed state after upgrade. this command will start it after the state run for the upgrade completes
|
# minion service is in failed state after upgrade. this command will start it after the state run for the upgrade completes
|
||||||
start_minion_post_upgrade:
|
start_minion_post_upgrade:
|
||||||
cmd.run:
|
cmd.run:
|
||||||
- name: nohup /bin/sh -c 'sleep 30; systemctl start salt-minion' &
|
- name: |
|
||||||
|
exec 0>&- # close stdin
|
||||||
|
exec 1>&- # close stdout
|
||||||
|
exec 2>&- # close stderr
|
||||||
|
nohup /bin/sh -c 'sleep 30; systemctl start salt-minion' &
|
||||||
- require:
|
- require:
|
||||||
- cmd: install_salt_minion
|
- cmd: install_salt_minion
|
||||||
- watch:
|
- watch:
|
||||||
|
|||||||
Reference in New Issue
Block a user