2024-03-29 12:49:42 +00:00
|
|
|
This repo has some scripts that I use for managing machines and containers.
|
2024-03-29 12:06:44 +00:00
|
|
|
|
2024-03-29 12:49:42 +00:00
|
|
|
# Samples
|
|
|
|
|
|
|
|
## Set up a machine with a named non-root user and some secure ssh config.
|
2024-03-29 12:06:44 +00:00
|
|
|
|
|
|
|
```sh
|
2024-03-29 12:49:42 +00:00
|
|
|
python3 src/machine_setup.py
|
2024-03-29 12:06:44 +00:00
|
|
|
```
|
|
|
|
|
2024-03-29 12:49:42 +00:00
|
|
|
# Running Tests
|
2024-03-29 12:06:44 +00:00
|
|
|
|
|
|
|
```sh
|
2024-03-29 12:49:42 +00:00
|
|
|
python3 -m venv --prompt machine_admin .venv
|
|
|
|
source .venv/bin/activate
|
|
|
|
pip install -r test/requirements.txt
|
|
|
|
pytest
|
2024-03-29 12:06:44 +00:00
|
|
|
```
|
2024-03-29 09:56:25 +00:00
|
|
|
|
2024-03-29 12:49:42 +00:00
|
|
|
# Copyright
|
|
|
|
|
|
|
|
The contents of this repo are Copyright James Grogan 2024. Software is licensed under the AGPL. See the included LICENSE file for details.
|
|
|
|
|