Creates a directory into a NFS server exported file system. We use it to create the users' home directory before trying the mount via autofs
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Andrea Dell'Amico abdd0b2760
Make use of pylint to cleanup the syntax.
2 years ago
dircreate Make use of pylint to cleanup the syntax. 2 years ago
.gitignore First working prototype. 2 years ago
LICENSE Initial commit 2 years ago
README.md Fix the gunicorn command. 2 years ago
createdir.service Fix the gunicorn command. 2 years ago
requirements.txt First working prototype. 2 years ago

README.md

nfs-dirmaker

Creates a directory into a NFS server exported file system. We use it to create the users' home directory before trying the mount via autofs.

Requirements

  • Python 3.8+
  • Flask 2.1
  • gunicorn

Build the environment

python3 -m venv venv
. venv/bin/activate
pip install Flask

Test the service

source ./venv/bin/activate
export FLASK_APP=dircreate
export FLASK_ENV=development
flask run

Use gunincorn when in production