Commit Graph

255 Commits

Author SHA1 Message Date
William Wernert
6ae91c2ff0 [feat] Use getent instead of hosts in case the hostsfile has already been updated 2020-05-04 09:34:36 -04:00
William Wernert
299709108f [fix] Don't run check_exitstatus in whiptail_homenet_sensor 2020-05-01 11:04:35 -04:00
William Wernert
a44158261a [fix] Run salt command to check in to master before accepting salt key 2020-04-30 12:45:48 -04:00
William Wernert
6359da0010 [fix] Move salt-key accept to after the ca + ssl states 2020-04-30 11:31:33 -04:00
William Wernert
4c6b841b16 [fix] Set minion id after prompting for hostname 2020-04-30 10:06:53 -04:00
William Wernert
a281f59319 [fix] Update packages before setting highstate on salt startup in case it updates 2020-04-30 08:51:38 -04:00
William Wernert
1f030160b0 [feat] Update salt ver to 2019.2.4 2020-04-30 08:49:16 -04:00
William Wernert
93493b204f [fix] Add new whitespace 2020-04-29 18:15:21 -04:00
William Wernert
bf41fe838c [fix] Correct order of setup salt states 2020-04-28 22:40:21 -04:00
William Wernert
31f9f31ff2 [fix] Run docker pull once more if the first time fails 2020-04-28 22:39:45 -04:00
William Wernert
8afacd9709 [fix] Run elasticsearch state earlier in setup 2020-04-28 16:19:26 -04:00
William Wernert
0ea8c349fb [fix] Fix typo + permissions 2020-04-28 13:34:36 -04:00
William Wernert
fa09a0ef4d [fix] Add back missing containers 2020-04-28 13:19:01 -04:00
William Wernert
e6492d4852 [fix] Don't set startup state until end of setup 2020-04-28 13:02:27 -04:00
William Wernert
7a456c2c6b [fix] Install netcat so nc command works 2020-04-28 10:58:32 -04:00
William Wernert
54127cf77a [fix] Revert changes to collect_webuser_inputs 2020-04-28 10:58:16 -04:00
William Wernert
34ddc69bfe [refactor][fix] Move so_version to so-variables 2020-04-28 09:01:27 -04:00
William Wernert
1eb387dcdd [fix] Change docker image prune back to docker rmi 2020-04-28 09:01:01 -04:00
William Wernert
af7accd1e9 [fix] Only disable unused nics if the array is not empty 2020-04-28 09:00:22 -04:00
William Wernert
b4f65955fe [fix] Update FS variables to correct names 2020-04-28 02:34:47 -04:00
William Wernert
3bfaa6f8de [merge] Merge master into feature/setup-refactor 2020-04-28 01:35:09 -04:00
William Wernert
5c5a97ca75 [fix] Change order of ip link parsing 2020-04-27 12:10:59 -04:00
William Wernert
dc8ed1978d [fix] Redirect further lines to setup log, and fix issues with install 2020-04-27 08:48:06 -04:00
William Wernert
3f8d063bde [fix] Install wget on CentOS 2020-04-23 12:12:35 -04:00
William Wernert
46fd4cf96e [fix] Move common package install and fix typo 2020-04-23 11:52:21 -04:00
William Wernert
805299bc75 [fix[ Don't repeat whiptail menu 2020-04-22 23:06:46 -04:00
William Wernert
948e6fd20d [fix] Correct conversion ratio for log_size_limit 2020-04-22 22:48:41 -04:00
William Wernert
10e46b6fc3 [fix] Calc log_size_limit more accurately + actually call function 2020-04-22 22:42:24 -04:00
William Wernert
09c22bbe43 [fix] Create arrays for bro_pins and suricata_pins 2020-04-22 16:59:31 -04:00
William Wernert
02cd1a7623 [fix] Provide more feedback about whiptail exit status to user 2020-04-22 16:58:33 -04:00
William Wernert
5b3584d738 [fix] Add check for TESTHOST being blank, only install packages before setup if missing 2020-04-22 15:56:27 -04:00
William Wernert
d011be3faa [fix] Sensor should also set minion flag 2020-04-22 15:35:08 -04:00
William Wernert
4024c9758c [fix] Don't trim double quotes inline, masks whiptail cancel ret code 2020-04-22 15:25:25 -04:00
William Wernert
158f380dac [fix] Change =<(...) to =$(...) 2020-04-22 14:59:46 -04:00
William Wernert
5c9e2f1820 [fix] Blank terminal before whiptail starts 2020-04-22 14:57:37 -04:00
William Wernert
8404453cec [refactor] Use nproc to calculate number of cpu cores 2020-04-22 14:48:52 -04:00
William Wernert
212e57a16c [fix] Correct calculation order in calculate_useable_cores 2020-04-22 14:41:54 -04:00
William Wernert
088e9f1e7d [fix] Propagate variable rename CPUCORES -> num_cpu_cores 2020-04-22 14:37:27 -04:00
William Wernert
7c1bf39ff4 [fix] Don't print hostname in whiptail_set_redirect
* Fixes #598
2020-04-22 14:14:57 -04:00
William Wernert
a3927e2e5a [fix] Move get_redirect to run under any master node 2020-04-22 13:59:57 -04:00
William Wernert
1d55d00caf [fix] Redirect so-user command output to setup log 2020-04-22 13:57:24 -04:00
William Wernert
25432b745d [fix] Export instead of declaring dynamic variables 2020-04-22 13:56:53 -04:00
William Wernert
89674a0697 [fix] Add back web user prompts to setup 2020-04-22 13:27:49 -04:00
William Wernert
39e6f8ecbd [fix] Misc fixes for setup to run properly 2020-04-22 13:15:39 -04:00
William Wernert
3f264163d4 [fix] Test if QUIET var is set, and convert whiptail output to arrays
Also rewrite filter_unused_nics so it is the only source for list of nics
2020-04-22 13:15:08 -04:00
William Wernert
0250bf026a [fix] Redirect command outputs within saltify and docker_install 2020-04-22 13:12:12 -04:00
William Wernert
739989473d [fix] Provide feedback when first running script, and execute whiptail commands 2020-04-20 15:41:01 -04:00
William Wernert
12e87d119b [fix] Reference correct variable when checking for setup type 2020-04-20 15:30:30 -04:00
Josh Patterson
9f1a4ddf9b Update so-functions 2020-04-18 19:15:55 -04:00
William Wernert
c76ce035a6 [refactor][WIP] Initial main setup script refactor
Untested, probably broken
2020-04-18 19:11:16 -04:00