William Wernert
58bcc79c54
[fix] Create full dir structure, rm /root/install_opt on failure
2020-12-10 14:17:47 -05:00
William Wernert
1f1cfde3ac
[fix] Make directory for new setup download
2020-12-10 14:03:54 -05:00
William Wernert
bc6a0c1e6f
[fix] Add missing append flags to tee
2020-12-10 13:54:41 -05:00
William Wernert
8302119756
[fix] Don't redirect entire download function to setup log
2020-12-10 13:26:19 -05:00
William Wernert
21e107f2e8
[fix] Remove sudo from version check, only remove known_hosts entry if exists
2020-12-10 13:13:45 -05:00
William Wernert
86313796a5
[fix] Set manager_ver in download function
2020-12-10 11:00:52 -05:00
William Wernert
987008811c
[fix] Make repo directory before using it
2020-12-09 12:47:35 -05:00
William Wernert
223856c0b9
[fix] Don't redirect whiptail message, use SIGINT instead of SIGKILL
2020-12-09 10:16:42 -05:00
William Wernert
795cacecf3
[fix] Fix cut command options
2020-12-09 10:06:14 -05:00
William Wernert
f3ce2fc71e
[fix] new_setup -> manager_setup
2020-12-09 10:06:02 -05:00
William Wernert
b41ba1ea3c
[feat] Compare setup version to manager, dl tarball + exec on mismatch
2020-12-08 15:29:04 -05:00
William Wernert
4899ea23f8
[fix] Put conditions in install_cleanup function
2020-12-08 14:03:59 -05:00
William Wernert
65d994a2f8
[feat] Generate gzipped tarball of repo during setup and soup
2020-12-08 14:02:45 -05:00
William Wernert
08ab36927d
[refactor] Kill parent script on exit
2020-12-07 14:16:54 -05:00
William Wernert
6fc3232637
[fix] Set INSTALLUSERNAME to the user running the script
...
Resolves #2243
2020-12-07 14:16:06 -05:00
William Wernert
4363b082bb
Merge branch 'dev' into feature/setup
2020-12-07 14:15:11 -05:00
William Wernert
38324c226e
[fix] Don't let grep output message on file not found
2020-12-07 10:58:58 -05:00
William Wernert
edc8ccd1b6
Merge branch 'feature/main-ip-validation' into feature/setup
2020-12-07 09:53:38 -05:00
William Wernert
d724fe7357
Merge pull request #2201 from Security-Onion-Solutions/bugfix/reinstall
...
Bugfix/reinstall
2020-12-04 09:38:46 -05:00
William Wernert
3273a63662
[fix] kill old restart pid and assign new pid for start
2020-12-03 15:38:26 -05:00
William Wernert
660c768f8f
Only kill+start on final loop and increase time between status checks
2020-12-03 15:38:26 -05:00
William Wernert
ebade0a5a6
[fix] Also kill+start while trying to restart service initially
2020-12-03 15:38:26 -05:00
William Wernert
b5bfad07dc
[fix] kill/start after if statement
2020-12-03 15:38:26 -05:00
William Wernert
3049718660
[fix] Kill + start salt-minion if it isn't responding
2020-12-03 15:38:25 -05:00
William Wernert
80ce8b5e41
[refactor] Run all changes inside whiptail progress, use grep -q
2020-12-03 15:38:25 -05:00
William Wernert
2c208ec943
[fix] kill -> stop, add indent to service check, revert incorrect logic
2020-12-03 15:38:25 -05:00
William Wernert
76fff28dfa
[fix] Correct logic for service check + bash trap
2020-12-03 15:38:25 -05:00
William Wernert
af8295a651
[reafactor] systemctl stop -> kill
2020-12-03 15:38:25 -05:00
Jason Ertel
967111decc
Add node address to sensoroni pillar
2020-12-03 11:24:45 -05:00
Jason Ertel
cf0ec2f78f
Default to the node's primary IP for the description field
2020-12-02 16:38:33 -05:00
William Wernert
fc7fe23590
[fix] Correct signal naming
2020-12-02 14:06:50 -05:00
William Wernert
cc5d54764a
[fix] sed masks command return code, remove
2020-12-02 13:54:02 -05:00
William Wernert
8fe43d6d56
[fix] Print WARNING instead of ERROR if minion is not responding initially
2020-12-02 13:35:57 -05:00
William Wernert
467f9923b0
[refactor] Add trap to handle script exits, change what files are deleted in /etc/salt/
2020-12-02 13:19:34 -05:00
William Wernert
2d4fe58299
[fix] Also kill currently running jobs
2020-12-01 21:43:38 -05:00
William Wernert
4b5b936abb
[fix] echo -> return
2020-12-01 21:40:41 -05:00
William Wernert
2d6feea5c5
[fix] Syntax fixes
2020-12-01 21:21:32 -05:00
William Wernert
38028a543a
[feat] Add timeout for salt services to stop during reinstall init
2020-12-01 21:18:24 -05:00
m0duspwnens
141d7a35c9
if true cluster enabled allow search nodes to talk to each other https://github.com/Security-Onion-Solutions/securityonion/issues/2079
2020-12-01 15:38:09 -05:00
William Wernert
c2e7e42509
[fix] Don't SIGKILL salt services + disable highstate schedule
2020-12-01 15:36:05 -05:00
William Wernert
8a8885e14f
[feat] Verify that main ip = mngmt ip
...
* Add a check to check whether the src ip in the routing table is also the ip assigned to the management nic
2020-11-30 16:53:02 -05:00
m0duspwnens
65334d15ea
https://github.com/Security-Onion-Solutions/securityonion/issues/2040
2020-11-24 09:33:38 -05:00
William Wernert
ac3b5e4f1b
[fix] Remove echo redirect at beginning of install
2020-11-19 09:48:56 -05:00
m0duspwnens
d68726f6ef
upgrade from salt 3002.1 to salt 3002.2
2020-11-18 18:25:02 -05:00
William Wernert
1c55bb6db2
[fix] Only backup /nsm/mysql and /nsm/wazuh
2020-11-18 15:34:40 -05:00
William Wernert
e65c53dbb1
[fix] Don't rename /nsm/docker-registry
2020-11-18 14:01:33 -05:00
William Wernert
280cde43ff
[fix] install_type -> setup_type
2020-11-18 13:51:55 -05:00
William Wernert
81b9658499
[fix] Don't remove accept_changes file
2020-11-18 13:51:55 -05:00
William Wernert
ad74b4b3e0
[refactor][fix] Update reinstall logic
...
* Only set reinstall flag if new accept_changes file exists
* Instead of stopping highstate from running, kill all salt processes and remove their configs
* Make end of non-reinstall logs clear in cases where user cancels (and log not rotated)
2020-11-18 12:29:54 -05:00
William Wernert
b146700303
[feat] Remove so-setup permission from sudoers file after iso setup
...
Closes #1701
2020-11-17 15:36:25 -05:00