mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-17 10:10:25 +00:00
Set fedora to enable the minion
This commit is contained in:
parent
cccac62eaa
commit
1aea303774
1 changed files with 13 additions and 0 deletions
|
@ -1770,6 +1770,19 @@ install_fedora_stable() {
|
|||
return 0
|
||||
}
|
||||
|
||||
install_fedora_stable_post() {
|
||||
for fname in minion master syndic; do
|
||||
# Skip if not meant to be installed
|
||||
[ $fname = "minion" ] && [ $_INSTALL_MINION -eq $BS_FALSE ] && continue
|
||||
[ $fname = "master" ] && [ $_INSTALL_MASTER -eq $BS_FALSE ] && continue
|
||||
[ $fname = "syndic" ] && [ $_INSTALL_SYNDIC -eq $BS_FALSE ] && continue
|
||||
|
||||
systemctl is-enabled salt-$fname.service || (systemctl preset salt-$fname.service && systemctl enable salt-$fname.service)
|
||||
sleep 0.1
|
||||
systemctl daemon-reload
|
||||
done
|
||||
}
|
||||
|
||||
install_fedora_git_deps() {
|
||||
install_fedora_deps || return 1
|
||||
yum install -y git yum-utils || return 1
|
||||
|
|
Loading…
Add table
Reference in a new issue