OS Upgrade » History » Version 3
Marc Dequènes, 2021-10-14 15:32
| 1 | 1 | Marc Dequènes | h1. OS Upgrade |
|---|---|---|---|
| 2 | |||
| 3 | This is a list of steps as guidelines for OS upgrades. |
||
| 4 | |||
| 5 | * create a temporary _group_vars/<new-suite>/system.yml_ in a git branch: |
||
| 6 | |||
| 7 | <pre> |
||
| 8 | --- |
||
| 9 | system: |
||
| 10 | distribution: |
||
| 11 | debian: |
||
| 12 | codename: bullseye |
||
| 13 | dc: |
||
| 14 | codename: bullseye |
||
| 15 | |||
| 16 | </pre> |
||
| 17 | |||
| 18 | 3 | Marc Dequènes | * (I often choose Elwing first) ansible-playbook --diff -l Elwing -t apt playbooks/common.yml | tee /tmp/dc.log |
| 19 | 1 | Marc Dequènes | * apt upgrade |
| 20 | * apt dist-upgrade (check if removed packages are problematic) |
||
| 21 | ** accept new version of /etc/services and copy-paste content of _local services_ from _/etc/services.dpkg-old_ to avoid having to redeploy all services |
||
| 22 | ** do not accept new versions for: |
||
| 23 | *** /etc/smartd.conf |
||
| 24 | *** /etc/snmp/snmp.conf |
||
| 25 | *** /etc/oidentd.conf |
||
| 26 | *** /etc/sudoers |
||
| 27 | *** /etc/rsyslog.conf |
||
| 28 | 2 | Marc Dequènes | *** /etc/apt-cacher-ng/acng.conf |
| 29 | *** /etc/zabbix/* |
||
| 30 | *** /etc/logrotate.d/* |
||
| 31 | 1 | Marc Dequènes | ** check the diff manually for other files |
| 32 | 3 | Marc Dequènes | * if PHP FPM: (to avoid having to redeploy all vhosts) (example for PHP 7.3->7.4) |
| 33 | ** rm /etc/php/7.4/fpm/pool.d/www.conf |
||
| 34 | ** cp /etc/php/7.3/fpm/pool.d/* /etc/php/7.4/fpm/pool.d/ |
||
| 35 | ** sed -i 's/7\.3/7.4/g' /etc/php/7.4/fpm/pool.d/* |