Commit Graph

644 Commits

Author SHA1 Message Date
Jason Ertel fd7fe72b2a Correct default address pool base value 2020-12-11 23:29:59 -05:00
Jason Ertel bb61c1f745 Cleanup bash imports/sources, function definitions, and variables 2020-12-11 15:33:31 -05:00
Jason Ertel eb735c7289 Replace duplicate random generator with common function 2020-12-11 13:22:13 -05:00
William Wernert b6a0e692c6 [refactor] Use command -v for netplan check 2020-12-11 09:38:44 -05:00
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
TOoSmOotH 101ddd18a5 Fix print statments 2020-12-09 16:08:09 -05:00
Mike Reeves 30e69bf7b2 Merge branch 'escluster' into newescluster 2020-12-09 15:23:49 -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
m0duspwnens b5e0b21400 Merge remote-tracking branch 'remotes/origin/dev' into issue/2188 2020-12-07 11:52:09 -05:00
William Wernert 38324c226e [fix] Don't let grep output message on file not found 2020-12-07 10:58:58 -05:00
m0duspwnens 4fe2de2637 upgrade docker https://github.com/Security-Onion-Solutions/securityonion/issues/2188 2020-12-07 10:47:20 -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
Mike Reeves 69ae4577f5 Merge pull request #2174 from Security-Onion-Solutions/escluster
Escluster
2020-12-02 13:23:08 -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