When using the Salt-bootstrap script it failed to install Salt-minion as onedir package because the service is not enabled. It install the salt-minion from the Saltstack repository. After installing the script will check if the service has been enabled. If it isn't enabled the script will exit 1.
Setup
Install an empty, clean Almalinux 9 VM, with the default systemd installed. Don't install epel-release. Download the bootstrap-script from:
$ ./bootstrap-salt.sh onedir
* INFO: Running version: 2022.10.04
* INFO: Executed by: /bin/sh
* INFO: Command line: './bootstrap-salt.sh onedir'
* INFO: System Information:
* INFO: CPU: GenuineIntel
* INFO: CPU Arch: x86_64
* INFO: OS Name: Linux
* INFO: OS Version: 5.14.0-162.6.1.el9_1.x86_64
* INFO: Distribution: AlmaLinux 9.1
* INFO: Installing minion
* INFO: Found function install_almalinux_onedir_deps
* INFO: Found function config_salt
* INFO: Found function preseed_master
* INFO: Found function install_almalinux_onedir
* INFO: Found function install_almalinux_restart_daemons
* INFO: Found function daemons_running_onedir
* INFO: Found function install_almalinux_check_services
* INFO: Running install_almalinux_onedir_deps()
...
* INFO: Running install_almalinux_check_services()
* ERROR: Failed to run install_almalinux_check_services()!!!
Description of Issue/Question
When using the Salt-bootstrap script it failed to install Salt-minion as onedir package because the service is not enabled. It install the salt-minion from the Saltstack repository. After installing the script will check if the service has been enabled. If it isn't enabled the script will exit 1.
Setup
Install an empty, clean Almalinux 9 VM, with the default systemd installed. Don't install epel-release. Download the bootstrap-script from:
Steps to Reproduce Issue
Run the bootstrap script with onedir:
Versions and Systems
Bootstrap stable version.