From 0181f319f6468ef640dccd6a654f500566f1e46a Mon Sep 17 00:00:00 2001 From: Zolfa Date: Tue, 31 Mar 2020 17:04:49 +0200 Subject: [PATCH] updated requirements and MIGRATION.md explanations MIGRATION.md contains a table to track the revision and update process of each module. Maybe it would have been better to user a GitHub Issue? --- MIGRATION.md | 42 ++++++++++++++++++++++++++++++++++++++++++ requirements.txt | 41 +++++++++++++++++++++++------------------ 2 files changed, 65 insertions(+), 18 deletions(-) create mode 100644 MIGRATION.md diff --git a/MIGRATION.md b/MIGRATION.md new file mode 100644 index 0000000..4ddf0e7 --- /dev/null +++ b/MIGRATION.md @@ -0,0 +1,42 @@ +# State of migration of each role + +Each new role will be tested against: + +On the controller: + +- `python==3.7.3` (Debian Stable) +- `python==3.8.2` +- `ansible==2.9.6` + +On the hosts: + +- `python==3.7.3` +- `debian==buster` (physical hosts and containers) +- `openwrt` (firewall) + +# Current status + +## Roles + +| Role name | Modified? | Tested? | Production? | Notes | +|--------------------|:---------:|:--------:|:-----------:|------------------------------------------------------------------------------------------| +|`roles/service` | **YES** | **YES** | NO | Changes in Ansible built-in `apt` module. | +|`roles/ssh_server` | **YES** | **YES** | NO | `lxc_ssh.py` --> `ssh_lxc.py`. | +|`roles/ca` | **YES** | ReadNote | NO | Changes in Ansible built-in `apt` module. Needs update of `ca_manager` to [1] to work. | +|`prepare_host.yaml` | **YES** | NO | NO | Install `python3` and `python3-lxc` instead of version 2. | +|`roles/ldap` | NO | NO | NO | | +|`roles/nginx` | NO | NO | NO | | +|`roles/projects` | NO | NO | NO | | +|`roles/dns_record` | NO | NO | NO | | +|`roles/openvpn` | NO | NO | NO | | + + +## Plugins and Modules + +| Plugin/Module name | Modified? | Tested? | Production? | Notes | +|------------------------|:---------:|:---------:|:-----------:|--------------------------------------| +|`connection/lxc_ssh.py` | *REMOVED* | | | | +|`connection/ssh_lxc.py` | **NEW** | **YES** | NO | Replace `lxc_ssh.py`. | +|`library/ssh_cert.py` | **YES** | **YES** | NO | Migrate from `python2` to `python3`. | + +[1]: https://github.com/LILiK-117bis/ca_manager/tree/peewee3%2Brfc5280 diff --git a/requirements.txt b/requirements.txt index d17bfb5..7eb0b6d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,18 +1,23 @@ -ansible==2.2.0.0 -asn1crypto==0.23.0 -bcrypt==3.1.4 -cffi==1.11.2 -cryptography==2.1.3 -enum34==1.1.6 -idna==2.6 -ipaddress==1.0.18 -Jinja2==2.9.6 -MarkupSafe==1.0 -paramiko==2.3.1 -pkg-resources==0.0.0 -pyasn1==0.3.7 -pycparser==2.18 -pycrypto==2.6.1 -PyNaCl==1.2.0 -PyYAML==3.12 -six==1.11.0 +ansible==2.9.6 +cffi==1.14.0 +cryptography==2.8 +Jinja2==2.11.1 +MarkupSafe==1.1.1 +pycparser==2.20 +PyYAML==5.3.1 +six==1.14.0 + +# Bare minimum uncommentend +# Other packages will be added while progressing migration of roles, +# in case they are still needed +# +#asn1crypto==0.24.0 +#bcrypt==3.1.6 +#enum34==1.1.6 +#idna==2.6 +#ipaddress==1.0.18 +#paramiko==2.4.2 +#pkg-resources==0.0.0 +#pyasn1==0.4.2 +#pycrypto==2.6.1 +#PyNaCl==1.3.0