Skip to content

Commit

Permalink
Merge pull request #1496 from Security-Onion-Solutions/issue/1489
Browse files Browse the repository at this point in the history
move salt master config file, copy salt-master service file and enabl…
  • Loading branch information
m0duspwnens committed Oct 9, 2020
2 parents 336400e + 6172268 commit 930ec33
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
File renamed without changes.
14 changes: 14 additions & 0 deletions files/salt/master/salt-master.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[Unit]
Description=The Salt Master Server
Documentation=man:salt-master(1) file:///usr/share/doc/salt/html/contents.html https://docs.saltstack.com/en/latest/contents.html
After=network.target

[Service]
LimitNOFILE=100000
Type=notify
NotifyAccess=all
ExecStart=/usr/bin/salt-master
Restart=always

[Install]
WantedBy=multi-user.target
7 changes: 5 additions & 2 deletions setup/so-functions
Original file line number Diff line number Diff line change
Expand Up @@ -593,12 +593,15 @@ copy_salt_master_config() {

# Copy the Salt master config template to the proper directory
if [ "$setup_type" = 'iso' ]; then
cp /root/SecurityOnion/files/master /etc/salt/master >> "$setup_log" 2>&1
cp /root/SecurityOnion/files/salt/master/master /etc/salt/master >> "$setup_log" 2>&1
cp /root/SecurityOnion/files/salt/master/salt-master.service /usr/lib/systemd/system/salt-master.service >> "$setup_log" 2>&1
else
cp ../files/master /etc/salt/master >> "$setup_log" 2>&1
cp ../files/salt/master/master /etc/salt/master >> "$setup_log" 2>&1
cp ../files/salt/master/salt-master.service /usr/lib/systemd/system/salt-master.service >> "$setup_log" 2>&1
fi

# Restart the service so it picks up the changes
systemctl daemon-reload >> "$setup_log" 2>&1
systemctl restart salt-master >> "$setup_log" 2>&1
}

Expand Down

0 comments on commit 930ec33

Please sign in to comment.