Ansible adaptions

This commit is contained in:
Dirk Alders 2023-11-04 13:45:15 +01:00
parent faae45b030
commit 2540e1536a
3 changed files with 16 additions and 8 deletions

View File

@ -1,12 +1,12 @@
{
"editor.formatOnSave": true,
"python.defaultInterpreterPath": "./venv/bin/python",
"autopep8.args": ["--max-line-length=150"],
"python.formatting.provider": "none",
"[python]": {
"python.formatting.provider": "none",
"editor.defaultFormatter": "ms-python.autopep8",
"editor.formatOnSave": true
},
"editor.fontSize": 16,
"editor.fontSize": 14,
"emmet.includeLanguages": { "django-html": "html" },
"python.testing.pytestArgs": ["-v", "--cov", "--cov-report=xml", "__test__"],
"python.testing.unittestEnabled": false,

View File

@ -1,14 +1,14 @@
# Folder to be monitored for new files
TARGET_FOLDER = "/home/scan"
TARGET_FOLDER = "<target_folder>"
# Recipiant for the files found in TARGET_PATH
SEND_TO = "scan@mount-mockery.de"
# Sender
SEND_FROM = "Scanner-Buchen <scan@mount-mockery.de>"
SMTP_SERVER = "mount-mockery.de"
SMTP_USER = "smtp-sendmail"
SMTP_PASSWORD = "----XXX----"
SEND_FROM = "Scanner <scan@<smtp_server>>"
SMTP_SERVER = "<smtp_server>"
SMTP_USER = "<smtp_user>"
SMTP_PASSWORD = "<smtp_password>"
# Possible log-levels: DEBUG, INFO, WARNING, ERROR
LOG_LEVEL = "INFO"

8
init_venv Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
#
BASEPATH=`realpath $(dirname $0)`
python3 -m venv $BASEPATH/venv
$BASEPATH/venv/bin/pip install --upgrade pip
find $BASEPATH -name requirements.txt | xargs -L 1 $BASEPATH/venv/bin/pip install -r
$BASEPATH/venv/bin/pip list --outdated --format=json | jq -r '.[] | .name'|xargs -n1 $BASEPATH/venv/bin/pip install -U