Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 000951e

Browse files
committed
added comments
1 parent b9b061a commit 000951e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

‎server_management/Debian/install_salt_minion.sh‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ if [[ $(/usr/bin/id -u) != "0" ]]; then
1212
exit
1313
fi
1414

15+
# Check if user-input exists
1516
if [ "1ドル" != "" ]; then
1617
new_hostname=1ドル
1718
else
@@ -21,19 +22,29 @@ fi
2122

2223
MASTERIP=1ドル
2324

25+
# Function to install salt-minion
2426
install_minion() {
27+
28+
# Get the saltstack key and create the salt repo
2529
wget -O - https://repo.saltstack.com/apt/debian/8/amd64/latest/SALTSTACK-GPG-KEY.pub | apt-key add -
2630
echo -e "deb http://repo.saltstack.com/apt/debian/8/amd64/latest jessie main" >> /etc/apt/sources.list.d/saltstack.list
31+
2732
apt-get update
33+
34+
# Install salt-minion and firewalld
2835
apt-get install salt-minion salt-ssh firewalld -y
2936

37+
# Open the Salt-minon port
3038
firewall-cmd --zone=public --add-port=4506/tcp --permanent
3139
firewall-cmd --reload
3240

41+
# Add the Salt-Master's IP to the minion's config file
3342
sed -i "s/\#master:\ salt/master:\ $MASTERIP/g" /etc/salt/minion
3443

44+
# Enable and start the minion service
3545
systemctl enable salt-minion
3646
systemctl start salt-minion
3747
}
3848

49+
# Calls the install_minion function
3950
install_minion

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /