William Wernert
cda36f178b
Merge pull request #2979 from Security-Onion-Solutions/foxtrot
...
Setup fixes/improvements
2021-02-16 17:14:59 -05:00
m0duspwnens
996bf0768b
fix logic for log_size_limit https://github.com/Security-Onion-Solutions/securityonion/issues/2737
2021-02-16 15:40:01 -05:00
William Wernert
0bd5ddf6a6
Grammar + misc fixes per PR review
...
* Remove unnecessary `apt-get update` commands
* Change `if ! (command); then exit 1; fi` to `command || exit 1` to avoid subshell
2021-02-16 14:17:41 -05:00
William Wernert
3323e900ef
[fix] Fix indent (pt 2)
2021-02-16 11:17:36 -05:00
William Wernert
7a9f801eb1
[fix] Add more apt-get update commands
...
Fixes #2962
2021-02-16 10:24:58 -05:00
William Wernert
38a5b86813
Make apt-get syntax consistent
2021-02-16 10:24:07 -05:00
William Wernert
5e8d09be51
[fix] Fix indent
2021-02-16 09:42:35 -05:00
William Wernert
724f5cad78
Warn user if using "securityonion" as hostname
2021-02-12 12:55:55 -05:00
William Wernert
188d844d27
Redirect stderr of minion grep to /dev/null
2021-02-11 13:49:39 -05:00
William Wernert
ce8db8abdb
[fix] Only run salt commands during reinstall if master is configured
2021-02-11 10:51:04 -05:00
Mike Reeves
f8903c2554
Fix extra character
2021-02-10 12:58:02 -05:00
Mike Reeves
9eb1e6a448
Prevent the tun interface from being disabled
2021-02-10 12:51:26 -05:00
William Wernert
daebe90b6e
[fix] fix retry command handling
...
* use eval "$cmd" to handle strings correctly
* add-apt-repo doesn't need dpkg lock so don't use retry for those lines
2021-02-01 12:06:19 -05:00
William Wernert
02f0ef989b
[fix] <cmd> || <fail_reactor>; exit 1 will always exit, fix this
2021-02-01 11:11:01 -05:00
William Wernert
36ce389202
Remove wait_for_apt, use common retry function to run apt commands
2021-02-01 10:55:14 -05:00
William Wernert
7b2ec05dbf
[fix] Add missing fi
2021-01-25 19:57:34 -05:00
Mike Reeves
3b1cea94d1
Merge branch 'dev' into telegraf3
2021-01-25 19:36:49 -05:00
Mike Reeves
4ef38f8d04
Add EPS and RAID status collection for telegraf
2021-01-25 19:14:46 -05:00
m0duspwnens
50345628f0
Merge remote-tracking branch 'remotes/origin/dev' into automation/ssh_prompts
2021-01-25 13:48:08 -05:00
m0duspwnens
7dcca6f364
change when we detect os and wait_for_apt when installing sshpass
2021-01-25 13:47:51 -05:00
Mike Reeves
2e32b53158
Fix function for appliances
2021-01-25 13:20:46 -05:00
Mike Reeves
b4c8b439a0
Detect if this is an SOS appliance
2021-01-24 12:02:34 -05:00
Mike Reeves
85e2a14f1e
Put functions in correct order
2021-01-24 11:52:45 -05:00
William Wernert
8023e79020
[fix] Don't remove answer file when checking version on manager, file does not yet exist
2021-01-19 11:28:33 -05:00
William Wernert
650008e1e6
[fix] Replace leftover /root/install_opt strings with variable
2021-01-19 11:20:53 -05:00
William Wernert
32839f8a53
[feat] Various input validation changes + fixes
...
* Keep invalid input in subsequent prompts
* Remove useless placeholder values
* Only set PROCS variable once
* Make input collection loops more consistent
2021-01-15 18:05:29 -05:00
William Wernert
8cb836a17a
[fix] Don't preset HOSTNAME var, interferes with automation
2021-01-15 16:22:07 -05:00
William Wernert
e440f6c44a
[fix] Set variables used by sensor pillar before generating the pillar
2021-01-15 10:29:51 -05:00
William Wernert
ed129bcf1f
[fix] Add verbose flag so that so-monitor-add only sees necessary information
2021-01-15 09:25:04 -05:00
William Wernert
f4de5e28bf
[fix] Padding 3->4 spaces, don't use lookup_pillar before salt is installed
2021-01-15 08:57:14 -05:00
William Wernert
0f6805823e
[fix] Add spacing to whiptail menu + preset err
2021-01-15 08:35:37 -05:00
William Wernert
df07cc578c
[fix] Only update err if return code is non-zero
2021-01-14 13:20:56 -05:00
William Wernert
2e23e0d690
[fix] Only update err if return code is non-zero
2021-01-14 13:20:29 -05:00
William Wernert
a7b9b565fd
[fix] Only return after all interfaces added to bond0
2021-01-14 13:19:29 -05:00
William Wernert
0db439df1e
Merge branch 'dev' into feature/setup
2021-01-14 13:06:32 -05:00
William Wernert
90f085b2d7
[fix] Fail setup early if we can't determine version of manager
2021-01-13 15:57:21 -05:00
William Wernert
4dc3a6aa35
[refactor] Standardize list inputs to comma separated
2021-01-13 11:36:20 -05:00
William Wernert
d254fd960a
[feat] Add message explaining strings cannot contain spaces
2021-01-13 11:04:35 -05:00
William Wernert
ebac17ce38
[wip] Attempting to fix missing patch schedule prompts
2021-01-13 10:29:36 -05:00
m0duspwnens
dbb9f90f00
fix quotes
2021-01-12 14:07:04 -05:00
William Wernert
dd20002fd5
[fix] Dockernet prompt is negative, continue on "no"
2021-01-12 11:28:24 -05:00
William Wernert
5c6f8f9d47
[fix] Correct function call (pt 2)
2021-01-12 11:27:03 -05:00
William Wernert
ff69d022b3
[fix] Correct function call
2021-01-12 11:26:20 -05:00
William Wernert
38e37a0385
[refactor] Remove whiptail shard count prompt
2021-01-12 11:04:40 -05:00
William Wernert
5d077d278e
[feat] Add input validation to inputbox whiptail prompts
2021-01-12 11:02:33 -05:00
m0duspwnens
9405990a2e
remote quotes
2021-01-12 09:50:08 -05:00
m0duspwnens
48f81d9ac6
reduce setting ssh commands down to 1 function and 1 function call
2021-01-06 08:58:33 -05:00
m0duspwnens
0f9bf9deb6
make sshcmd, scpcmd, ssh_copy_id_cmd global to so-functions;
2021-01-05 13:49:51 -05:00
m0duspwnens
c93dfa7b33
hardcode automation pw
2021-01-05 11:47:22 -05:00
m0duspwnens
81c4d879eb
first round of testing for automated testing ssh/scp
2021-01-05 10:26:19 -05:00