A configurable workstation checker
Project description
SecDev Workstation Check - A simple workstation setup tool
https://github.com/asecurityteam/secdev-check
SecDev Workstation Check Determines if a machine has SecDev's recommended language and software requirements installed. In cases where a requirement is missing or out-of-date, Workstation Checker will install the software via brew.
How to add new requirements:
- Create a variable under the "Requirement Versions" section below, like so:
PYTHON="3.6"
- Add a new command call for the req_checker function in the "Requirement Checks" section near the bottom of the script. req_checker takes 5 arguments:
req_checker <requirement name> <command> <version extraction manipulations> <required version> <installation command>
For instance, if you wanted to add a Python 3.6 requirement, you would add the command:
req_checker "Python" "python" "--version | cut -d ' ' -f2 2>&1" $PYTHON "brew install python3"
Why on earth is this written as a clunky bash script?
The Workstation Check is designed to work on fresh systems. It's fair to assume any new system will have bash by default, and not much else. This was written to purposefully be a self-reliant file, thus it doesn't require any configuration from the end-user.
To make matters worse, there is no standard method to extract an isolated version number so each, individual installation will require its own string manipulations.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for station_check-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 381e9bf1fdfb14060c2adb7cacfc9b8dfef618ce384619d24099fc21c82be608 |
|
MD5 | cf8b2cfc5772f79e475c135e4f8c8261 |
|
BLAKE2b-256 | 8765969ab7e6eca6bb7800730cef5e6c03912759c06cdca05a8adfdeaaed7986 |