add back common soup_scripts state

This commit is contained in:
m0duspwnens
2024-02-13 12:30:36 -05:00
parent c1258f9a92
commit b713771494
2 changed files with 30 additions and 4 deletions

View File

@@ -0,0 +1,24 @@
remove_common_soup:
file.absent:
- name: /opt/so/saltstack/default/salt/common/tools/sbin/soup
remove_common_so-firewall:
file.absent:
- name: /opt/so/saltstack/default/salt/common/tools/sbin/so-firewall
# Sync some Utilities
soup_scripts:
file.recurse:
- name: /usr/sbin
- user: root
- group: root
- file_mode: 755
- source: salt://common/tools/sbin
soup_manager_scripts:
file.recurse:
- name: /usr/sbin
- user: root
- group: root
- file_mode: 755
- source: salt://manager/tools/sbin

View File

@@ -795,12 +795,14 @@ verify_latest_update_script() {
else else
echo "You are not running the latest soup version. Updating soup and its components. This might take multiple runs to complete." echo "You are not running the latest soup version. Updating soup and its components. This might take multiple runs to complete."
cp $UPDATE_DIR/salt/common/tools/sbin/* $DEFAULT_SALT_DIR/salt/common/tools/sbin/. cp $UPDATE_DIR/salt/common/tools/sbin/* $DEFAULT_SALT_DIR/salt/common/tools/sbin/.
cp $UPDATE_DIR/salt/common/tools/sbin/* /usr/sbin/. #cp $UPDATE_DIR/salt/common/tools/sbin/* /usr/sbin/.
cp $UPDATE_DIR/salt/manager/tools/sbin/* $DEFAULT_SALT_DIR/salt/manager/tools/sbin/. cp $UPDATE_DIR/salt/manager/tools/sbin/* $DEFAULT_SALT_DIR/salt/manager/tools/sbin/.
cp $UPDATE_DIR/salt/manager/tools/sbin/* /usr/sbin/. #cp $UPDATE_DIR/salt/manager/tools/sbin/* /usr/sbin/.
rm -f $DEFAULT_SALT_DIR/salt/common/tools/sbin/soup #rm -f $DEFAULT_SALT_DIR/salt/common/tools/sbin/soup
rm -f $DEFAULT_SALT_DIR/salt/common/tools/sbin/so-firewall #rm -f $DEFAULT_SALT_DIR/salt/common/tools/sbin/so-firewall
salt-call state.apply common.soup_scripts queue=True -linfo --file-root=$UPDATE_DIR/salt --local
echo "" echo ""
echo "The soup script has been modified. Please run soup again to continue the upgrade." echo "The soup script has been modified. Please run soup again to continue the upgrade."