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
Go to file
Andrea Dell'Amico abdd0b2760
Make use of pylint to cleanup the syntax.
2022-08-21 17:34:30 +02:00
dircreate Make use of pylint to cleanup the syntax. 2022-08-21 17:34:30 +02:00
.gitignore First working prototype. 2022-04-13 19:29:34 +02:00
LICENSE Initial commit 2022-04-05 19:06:55 +02:00
README.md Fix the gunicorn command. 2022-04-15 18:50:41 +02:00
createdir.service Fix the gunicorn command. 2022-04-15 18:50:41 +02:00
requirements.txt First working prototype. 2022-04-13 19:29:34 +02:00

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