├── .env ├── .gitignore ├── CODE_OF_CONDUCT.md ├── LICENCE ├── README.md ├── VIRTUAL_MACHINE.md ├── ansible.cfg ├── cli ├── __init__.py ├── bin │ └── knee.sh ├── src │ ├── __init__.py │ ├── caching_tools │ │ └── redis.py │ ├── callbacks.py │ ├── databases │ │ ├── __init__.py │ │ ├── mongodb.py │ │ ├── mysql.py │ │ └── postgresql.py │ ├── frameworks │ │ ├── __init__.py │ │ └── system_framework.py │ ├── input_selection.py │ ├── main.py │ ├── utils │ │ ├── __init__.py │ │ ├── constants │ │ │ ├── constants.py │ │ │ ├── enum.py │ │ │ └── prompt.py │ │ ├── file_manager.py │ │ ├── runner.py │ │ └── utils.py │ └── webservers │ │ ├── __init__.py │ │ ├── golang.py │ │ ├── nodejs.py │ │ ├── python.py │ │ └── ruby.py └── tests │ ├── caching_tools │ └── test_redis.py │ ├── databases │ ├── test_mongodb.py │ ├── test_mysql.py │ └── test_postgresql.py │ ├── frameworks │ ├── __init__.py │ └── test_system_framework.py │ ├── test_callbacks.py │ ├── utils │ ├── test_file_manager.py │ ├── test_runner.py │ └── test_utils.py │ └── webservers │ ├── test_golang.py │ ├── test_nodejs.py │ ├── test_python.py │ └── test_ruby.py ├── conftest.py ├── inventories ├── local │ └── hosts.yml ├── production │ └── hosts.yml └── staging │ └── hosts.yml ├── knee ├── playbooks ├── golang_server.yml ├── group_vars │ ├── all.yml │ ├── golang_server.yml │ ├── mongodb_replica_server.yml │ ├── mongodb_server.yml │ ├── mysql_replica_server.yml │ ├── mysql_server.yml │ ├── node_server.yml │ ├── postgres_replica_server.yml │ ├── postgres_server.yml │ ├── python_webserver.yml │ ├── redis_server.yml │ ├── ruby_webserver.yml │ └── webservers.yml ├── mongodb_replica_server.yml ├── mongodb_server.yml ├── mysql_replica_server.yml ├── mysql_server.yml ├── node_server.yml ├── postgres_replica_server.yml ├── postgres_server.yml ├── python_webserver.yml ├── redis_server.yml ├── ruby_webserver.yml ├── user_management.yml └── webserver_base.yml ├── requirements.txt └── templates └── systemd.service.j2 /.env: -------------------------------------------------------------------------------- 1 | PYTHONPATH=cli/ -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/.gitignore -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /LICENCE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/LICENCE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/README.md -------------------------------------------------------------------------------- /VIRTUAL_MACHINE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/VIRTUAL_MACHINE.md -------------------------------------------------------------------------------- /ansible.cfg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/bin/knee.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/cli/bin/knee.sh -------------------------------------------------------------------------------- /cli/src/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/src/caching_tools/redis.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/cli/src/caching_tools/redis.py -------------------------------------------------------------------------------- /cli/src/callbacks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/cli/src/callbacks.py -------------------------------------------------------------------------------- /cli/src/databases/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/src/databases/mongodb.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/cli/src/databases/mongodb.py -------------------------------------------------------------------------------- /cli/src/databases/mysql.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/cli/src/databases/mysql.py -------------------------------------------------------------------------------- /cli/src/databases/postgresql.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/cli/src/databases/postgresql.py -------------------------------------------------------------------------------- /cli/src/frameworks/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/src/frameworks/system_framework.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/cli/src/frameworks/system_framework.py -------------------------------------------------------------------------------- /cli/src/input_selection.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/cli/src/input_selection.py -------------------------------------------------------------------------------- /cli/src/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/cli/src/main.py -------------------------------------------------------------------------------- /cli/src/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/src/utils/constants/constants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/cli/src/utils/constants/constants.py -------------------------------------------------------------------------------- /cli/src/utils/constants/enum.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/cli/src/utils/constants/enum.py -------------------------------------------------------------------------------- /cli/src/utils/constants/prompt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/cli/src/utils/constants/prompt.py -------------------------------------------------------------------------------- /cli/src/utils/file_manager.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/cli/src/utils/file_manager.py -------------------------------------------------------------------------------- /cli/src/utils/runner.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/cli/src/utils/runner.py -------------------------------------------------------------------------------- /cli/src/utils/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/cli/src/utils/utils.py -------------------------------------------------------------------------------- /cli/src/webservers/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/src/webservers/golang.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/cli/src/webservers/golang.py -------------------------------------------------------------------------------- /cli/src/webservers/nodejs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/cli/src/webservers/nodejs.py -------------------------------------------------------------------------------- /cli/src/webservers/python.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/cli/src/webservers/python.py -------------------------------------------------------------------------------- /cli/src/webservers/ruby.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/cli/src/webservers/ruby.py -------------------------------------------------------------------------------- /cli/tests/caching_tools/test_redis.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/cli/tests/caching_tools/test_redis.py -------------------------------------------------------------------------------- /cli/tests/databases/test_mongodb.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/cli/tests/databases/test_mongodb.py -------------------------------------------------------------------------------- /cli/tests/databases/test_mysql.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/cli/tests/databases/test_mysql.py -------------------------------------------------------------------------------- /cli/tests/databases/test_postgresql.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/cli/tests/databases/test_postgresql.py -------------------------------------------------------------------------------- /cli/tests/frameworks/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/tests/frameworks/test_system_framework.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/cli/tests/frameworks/test_system_framework.py -------------------------------------------------------------------------------- /cli/tests/test_callbacks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/cli/tests/test_callbacks.py -------------------------------------------------------------------------------- /cli/tests/utils/test_file_manager.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/cli/tests/utils/test_file_manager.py -------------------------------------------------------------------------------- /cli/tests/utils/test_runner.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/cli/tests/utils/test_runner.py -------------------------------------------------------------------------------- /cli/tests/utils/test_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/cli/tests/utils/test_utils.py -------------------------------------------------------------------------------- /cli/tests/webservers/test_golang.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/cli/tests/webservers/test_golang.py -------------------------------------------------------------------------------- /cli/tests/webservers/test_nodejs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/cli/tests/webservers/test_nodejs.py -------------------------------------------------------------------------------- /cli/tests/webservers/test_python.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/cli/tests/webservers/test_python.py -------------------------------------------------------------------------------- /cli/tests/webservers/test_ruby.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/cli/tests/webservers/test_ruby.py -------------------------------------------------------------------------------- /conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/conftest.py -------------------------------------------------------------------------------- /inventories/local/hosts.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/inventories/local/hosts.yml -------------------------------------------------------------------------------- /inventories/production/hosts.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/inventories/production/hosts.yml -------------------------------------------------------------------------------- /inventories/staging/hosts.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/inventories/staging/hosts.yml -------------------------------------------------------------------------------- /knee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/knee -------------------------------------------------------------------------------- /playbooks/golang_server.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/playbooks/golang_server.yml -------------------------------------------------------------------------------- /playbooks/group_vars/all.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/playbooks/group_vars/all.yml -------------------------------------------------------------------------------- /playbooks/group_vars/golang_server.yml: -------------------------------------------------------------------------------- 1 | golang_version: 1.22.0 2 | -------------------------------------------------------------------------------- /playbooks/group_vars/mongodb_replica_server.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/playbooks/group_vars/mongodb_replica_server.yml -------------------------------------------------------------------------------- /playbooks/group_vars/mongodb_server.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/playbooks/group_vars/mongodb_server.yml -------------------------------------------------------------------------------- /playbooks/group_vars/mysql_replica_server.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/playbooks/group_vars/mysql_replica_server.yml -------------------------------------------------------------------------------- /playbooks/group_vars/mysql_server.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/playbooks/group_vars/mysql_server.yml -------------------------------------------------------------------------------- /playbooks/group_vars/node_server.yml: -------------------------------------------------------------------------------- 1 | node_version: 20 2 | -------------------------------------------------------------------------------- /playbooks/group_vars/postgres_replica_server.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/playbooks/group_vars/postgres_replica_server.yml -------------------------------------------------------------------------------- /playbooks/group_vars/postgres_server.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/playbooks/group_vars/postgres_server.yml -------------------------------------------------------------------------------- /playbooks/group_vars/python_webserver.yml: -------------------------------------------------------------------------------- 1 | python_version: 3.12.1 2 | -------------------------------------------------------------------------------- /playbooks/group_vars/redis_server.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/playbooks/group_vars/redis_server.yml -------------------------------------------------------------------------------- /playbooks/group_vars/ruby_webserver.yml: -------------------------------------------------------------------------------- 1 | ruby_version: 3.0.2 2 | -------------------------------------------------------------------------------- /playbooks/group_vars/webservers.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/playbooks/group_vars/webservers.yml -------------------------------------------------------------------------------- /playbooks/mongodb_replica_server.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/playbooks/mongodb_replica_server.yml -------------------------------------------------------------------------------- /playbooks/mongodb_server.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/playbooks/mongodb_server.yml -------------------------------------------------------------------------------- /playbooks/mysql_replica_server.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/playbooks/mysql_replica_server.yml -------------------------------------------------------------------------------- /playbooks/mysql_server.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/playbooks/mysql_server.yml -------------------------------------------------------------------------------- /playbooks/node_server.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/playbooks/node_server.yml -------------------------------------------------------------------------------- /playbooks/postgres_replica_server.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/playbooks/postgres_replica_server.yml -------------------------------------------------------------------------------- /playbooks/postgres_server.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/playbooks/postgres_server.yml -------------------------------------------------------------------------------- /playbooks/python_webserver.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/playbooks/python_webserver.yml -------------------------------------------------------------------------------- /playbooks/redis_server.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/playbooks/redis_server.yml -------------------------------------------------------------------------------- /playbooks/ruby_webserver.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/playbooks/ruby_webserver.yml -------------------------------------------------------------------------------- /playbooks/user_management.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/playbooks/user_management.yml -------------------------------------------------------------------------------- /playbooks/webserver_base.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/playbooks/webserver_base.yml -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/requirements.txt -------------------------------------------------------------------------------- /templates/systemd.service.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shurutech/knee/HEAD/templates/systemd.service.j2 --------------------------------------------------------------------------------