mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 02:02:50 +01:00
Mysql Module - Change to new docker
This commit is contained in:
@@ -43,7 +43,7 @@ mysqldatadir:
|
|||||||
|
|
||||||
so-mysql:
|
so-mysql:
|
||||||
docker_container.running:
|
docker_container.running:
|
||||||
- image: mysql/mysql-server:5.7
|
- image: soshybridhunter/so-mysql:HH1.0.5
|
||||||
- hostname: so-mysql
|
- hostname: so-mysql
|
||||||
- user: socore
|
- user: socore
|
||||||
- port_bindings:
|
- port_bindings:
|
||||||
|
|||||||
@@ -170,6 +170,10 @@ configure_minion() {
|
|||||||
if [ $TYPE == 'master' ] || [ $TYPE == 'eval' ]; then
|
if [ $TYPE == 'master' ] || [ $TYPE == 'eval' ]; then
|
||||||
echo "master: $HOSTNAME" > /etc/salt/minion
|
echo "master: $HOSTNAME" > /etc/salt/minion
|
||||||
echo "id: $HOSTNAME" >> /etc/salt/minion
|
echo "id: $HOSTNAME" >> /etc/salt/minion
|
||||||
|
echo "mysql.host: '$MAINIP'" >> /etc/salt/minion
|
||||||
|
echo "mysql.port: 3306" >> /etc/salt/minion
|
||||||
|
echo "mysql.user: 'root'" >> /etc/salt/minion
|
||||||
|
echo "mysql.pass: '$MYSQLPASS'" >> /etc/salt/minion
|
||||||
else
|
else
|
||||||
echo "master: $MSRV" > /etc/salt/minion
|
echo "master: $MSRV" > /etc/salt/minion
|
||||||
echo "id: $HOSTNAME" >> /etc/salt/minion
|
echo "id: $HOSTNAME" >> /etc/salt/minion
|
||||||
|
|||||||
Reference in New Issue
Block a user