|
|
|
@@ -145,7 +145,7 @@ analyst_salt_local() {
|
|
|
|
securityonion_repo
|
|
|
|
securityonion_repo
|
|
|
|
gpg_rpm_import
|
|
|
|
gpg_rpm_import
|
|
|
|
# Install salt
|
|
|
|
# Install salt
|
|
|
|
logCmd "yum -y install salt-minion-3004.1 httpd-tools python3 python36-docker python36-dateutil python36-m2crypto python36-mysql python36-packaging python36-lxml yum-utils device-mapper-persistent-data lvm2 openssl jq"
|
|
|
|
logCmd "yum -y install salt-minion-3004.2 httpd-tools python3 python36-docker python36-dateutil python36-m2crypto python36-mysql python36-packaging python36-lxml yum-utils device-mapper-persistent-data lvm2 openssl jq"
|
|
|
|
logCmd "yum -y update --exclude=salt*"
|
|
|
|
logCmd "yum -y update --exclude=salt*"
|
|
|
|
|
|
|
|
|
|
|
|
salt-call state.apply workstation --local --file-root=../salt/ -l info 2>&1 | tee -a outfile
|
|
|
|
salt-call state.apply workstation --local --file-root=../salt/ -l info 2>&1 | tee -a outfile
|
|
|
|
@@ -2277,7 +2277,7 @@ saltify() {
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
set_progress_str 7 'Installing salt-master'
|
|
|
|
set_progress_str 7 'Installing salt-master'
|
|
|
|
if [[ ! $is_iso ]]; then
|
|
|
|
if [[ ! $is_iso ]]; then
|
|
|
|
logCmd "yum -y install salt-master-3004.1"
|
|
|
|
logCmd "yum -y install salt-master-3004.2"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
logCmd "systemctl enable salt-master"
|
|
|
|
logCmd "systemctl enable salt-master"
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
@@ -2290,7 +2290,7 @@ saltify() {
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
set_progress_str 8 'Installing salt-minion & python modules'
|
|
|
|
set_progress_str 8 'Installing salt-minion & python modules'
|
|
|
|
if [[ ! ( $is_iso || $is_analyst_iso ) ]]; then
|
|
|
|
if [[ ! ( $is_iso || $is_analyst_iso ) ]]; then
|
|
|
|
logCmd "yum -y install salt-minion-3004.1 httpd-tools python3 python36-docker python36-dateutil python36-m2crypto python36-mysql python36-packaging python36-lxml yum-utils device-mapper-persistent-data lvm2 openssl jq"
|
|
|
|
logCmd "yum -y install salt-minion-3004.2 httpd-tools python3 python36-docker python36-dateutil python36-m2crypto python36-mysql python36-packaging python36-lxml yum-utils device-mapper-persistent-data lvm2 openssl jq"
|
|
|
|
logCmd "yum -y update --exclude=salt*"
|
|
|
|
logCmd "yum -y update --exclude=salt*"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
logCmd "systemctl enable salt-minion"
|
|
|
|
logCmd "systemctl enable salt-minion"
|
|
|
|
@@ -2330,7 +2330,7 @@ saltify() {
|
|
|
|
|
|
|
|
|
|
|
|
# Add saltstack repo(s)
|
|
|
|
# Add saltstack repo(s)
|
|
|
|
wget -q --inet4-only -O - https://repo.securityonion.net/file/securityonion-repo/ubuntu/"$ubuntu_version"/amd64/salt/SALTSTACK-GPG-KEY.pub | apt-key add - >> "$setup_log" 2>&1
|
|
|
|
wget -q --inet4-only -O - https://repo.securityonion.net/file/securityonion-repo/ubuntu/"$ubuntu_version"/amd64/salt/SALTSTACK-GPG-KEY.pub | apt-key add - >> "$setup_log" 2>&1
|
|
|
|
echo "deb https://repo.securityonion.net/file/securityonion-repo/ubuntu/$ubuntu_version/amd64/salt/ $OSVER main" > /etc/apt/sources.list.d/saltstack.list 2>> "$setup_log"
|
|
|
|
echo "deb https://repo.securityonion.net/file/securityonion-repo/ubuntu/$ubuntu_version/amd64/salt3004.2/ $OSVER main" > /etc/apt/sources.list.d/saltstack.list 2>> "$setup_log"
|
|
|
|
|
|
|
|
|
|
|
|
# Add Docker repo
|
|
|
|
# Add Docker repo
|
|
|
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - >> "$setup_log" 2>&1
|
|
|
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - >> "$setup_log" 2>&1
|
|
|
|
@@ -2351,7 +2351,7 @@ saltify() {
|
|
|
|
set_progress_str 6 'Installing various dependencies'
|
|
|
|
set_progress_str 6 'Installing various dependencies'
|
|
|
|
retry 50 10 "apt-get -y install sqlite3 libssl-dev" >> "$setup_log" 2>&1 || exit 1
|
|
|
|
retry 50 10 "apt-get -y install sqlite3 libssl-dev" >> "$setup_log" 2>&1 || exit 1
|
|
|
|
set_progress_str 7 'Installing salt-master'
|
|
|
|
set_progress_str 7 'Installing salt-master'
|
|
|
|
retry 50 10 "apt-get -y install salt-master=3004.1+ds-1" >> "$setup_log" 2>&1 || exit 1
|
|
|
|
retry 50 10 "apt-get -y install salt-master=3004.2+ds-1" >> "$setup_log" 2>&1 || exit 1
|
|
|
|
retry 50 10 "apt-mark hold salt-master" >> "$setup_log" 2>&1 || exit 1
|
|
|
|
retry 50 10 "apt-mark hold salt-master" >> "$setup_log" 2>&1 || exit 1
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
*)
|
|
|
|
@@ -2369,7 +2369,7 @@ saltify() {
|
|
|
|
|
|
|
|
|
|
|
|
retry 50 10 "apt-get update" "" "Err:" >> "$setup_log" 2>&1 || exit 1
|
|
|
|
retry 50 10 "apt-get update" "" "Err:" >> "$setup_log" 2>&1 || exit 1
|
|
|
|
set_progress_str 8 'Installing salt-minion & python modules'
|
|
|
|
set_progress_str 8 'Installing salt-minion & python modules'
|
|
|
|
retry 50 10 "apt-get -y install salt-minion=3004.1+ds-1 salt-common=3004.1+ds-1" >> "$setup_log" 2>&1 || exit 1
|
|
|
|
retry 50 10 "apt-get -y install salt-minion=3004.2+ds-1 salt-common=3004.2+ds-1" >> "$setup_log" 2>&1 || exit 1
|
|
|
|
retry 50 10 "apt-mark hold salt-minion salt-common" >> "$setup_log" 2>&1 || exit 1
|
|
|
|
retry 50 10 "apt-mark hold salt-minion salt-common" >> "$setup_log" 2>&1 || exit 1
|
|
|
|
retry 50 10 "apt-get -y install python3-pip python3-dateutil python3-m2crypto python3-mysqldb python3-packaging python3-influxdb python3-lxml" >> "$setup_log" 2>&1 || exit 1
|
|
|
|
retry 50 10 "apt-get -y install python3-pip python3-dateutil python3-m2crypto python3-mysqldb python3-packaging python3-influxdb python3-lxml" >> "$setup_log" 2>&1 || exit 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|