File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ gpgkey=https://repo.saltstack.com/yum/redhat/\$releasever/\$basearch/latest/SALT
3636saltrepo
3737
3838 yum update -y
39- yum install systemd systemd-python -y
39+ yum install systemd systemd-python firewalld -y
4040}
4141
4242prerequisites_debian () {
@@ -45,7 +45,7 @@ prerequisites_debian() {
4545
4646 apt-get upgrade -y
4747 apt-get update -y
48- apt-get install systemd python-systemd -y
48+ apt-get install systemd firewalld python-systemd -y
4949}
5050
5151install_saltminion_centos () {
@@ -57,8 +57,12 @@ install_saltminion_debian() {
5757}
5858
5959configure_saltminion () {
60+ sed -i.bak " s/\#master\:\ salt/master\: $salt_master /g" /etc/salt/minion
61+
62+ firewall-cmd --zone=public --add-port=4506/tcp --permanent
63+ firewall-cmd --reload
64+
6065 systemctl enable salt-minion
61- sed -i.bak " s/\#master\:\ salt/master\: $ip_address /g" /etc/salt/minion
6266 systemctl start salt-minion
6367}
6468
@@ -71,3 +75,5 @@ elif [[ $os_type == "debian" || $os_type == "ubuntu" ]]; then
7175 prerequisites_debian
7276 install_saltminion_debian
7377fi
78+
79+ configure_saltminion
You can’t perform that action at this time.
0 commit comments