diff --git a/front/README.md b/front/README.md index ac1c9fe..1294ba4 100644 --- a/front/README.md +++ b/front/README.md @@ -10,23 +10,19 @@ It runs with Django. The information are daily generated by an ansible playbook, ## Install -Dependencies in case of Debian 8. -```shell - apt-get install python3-venv libmysqlclient-dev mysql-client python3-dev -``` Dependencies in case of Debian 10. ``` apt install python3-venv libmariadb-dev-compat libmariadb-dev mariadb-client python3-dev gcc ``` Following procedure to install the apps. ``` - useradd -d /var/www/updates-dashboard-sol/ -g www-data -M -s /bin/false www-updash + useradd -d /var/www/updates-dashboard/ -g www-data -M -s /bin/false www-updash cd /var/www/ - git clone git@git.smile.fr:smile-outsourcing/updates-dashboard-sol.git updates-dashboard-sol - chown -R www-updash:www-data updates-dashboard-sol + git clone git@gitlab.infolegale.net:infrastructure/updates-dashboard.git updates-dashboard + chown -R www-updash:www-data updates-dashboard touch /var/log/gunicorn.log chown www-updash:www-data /var/log/gunicorn.log - cd updates-dashboard-sol + cd updates-dashboard python3 -m venv updash-venv source updash-venv/bin/activate (updash-venv) pip install -r requirements.txt diff --git a/front/dashboard/fixtures/os.yaml b/front/dashboard/fixtures/os.yaml index 811339a..084ec21 100644 --- a/front/dashboard/fixtures/os.yaml +++ b/front/dashboard/fixtures/os.yaml @@ -1,8 +1,8 @@ # This is initial data for OS / distributions # Includes: -# - Debian 4 to 9 +# - Debian 4 to 11 # - CentOS 4 to 7 -# - Ubuntu Server 10.04 to 17.10 +# - Ubuntu Server 10.04 to 22.04 # - FreeBSD 9.0 to 10.3 # - OpenBSD 5.0 to 6.4 @@ -58,6 +58,20 @@ version: '9', end_of_support: 2022-06-30 } +- model: dashboard.os + pk: null + fields: { + distribution: Debian, + version: '10', + end_of_support: 2024-06-30 + } +- model: dashboard.os + pk: null + fields: { + distribution: Debian, + version: '11', + end_of_support: 2026-06-30 + } # Ubuntu Server - model: dashboard.os @@ -172,6 +186,27 @@ version: '17.10', end_of_support: 2018-07-31 } +- model: dashboard.os + pk: null + fields: { + distribution: Ubuntu, + version: '18.04', + end_of_support: 2023-04-01 + } +- model: dashboard.os + pk: null + fields: { + distribution: Ubuntu, + version: '20.04', + end_of_support: 2025-04-01 + } +- model: dashboard.os + pk: null + fields: { + distribution: Ubuntu, + version: '22.04', + end_of_support: 2027-04-01 + } # CentOS - model: dashboard.os diff --git a/front/dashboard/fixtures/teams.yaml b/front/dashboard/fixtures/teams.yaml index f588c1c..2dfe9c0 100644 --- a/front/dashboard/fixtures/teams.yaml +++ b/front/dashboard/fixtures/teams.yaml @@ -3,18 +3,6 @@ - model: dashboard.team pk: null fields: { - name: Pink (Smart Lyon), + name: System, color: pink } -- model: dashboard.team - pk: null - fields: { - name: Green (Smart Montpellier), - color: green - } -- model: dashboard.team - pk: null - fields: { - name: Purple (MyOps), - color: purple - }