When installing MAAS as a meta-package
> sudo add-apt-repository -y ppa:maas/3.5-next && sudo apt update -y && sudo apt install -y maas
And then removing the metapackage things are indeed are not removed and Temporal Server will continue working because systemd Unit was installed as a part of `maas-region-api` package (debian/maas-region-api.maas-temporal.service) which by the way is listed for autoremove.
When installing MAAS as a meta-package
> sudo add-apt-repository -y ppa:maas/3.5-next && sudo apt update -y && sudo apt install -y maas
And then removing the metapackage things are indeed are not removed and Temporal Server will continue working because systemd Unit was installed as a part of `maas-region-api` package (debian/ maas-region- api.maas- temporal. service) which by the way is listed for autoremove.
> sudo apt remove -y maas common- data libavahi-common3 libavahi-core7 libc-ares2 libdaemon0 mod-http- geoip2 libnginx- mod-http- image-filter libnginx- mod-http- xslt-filter libnginx-mod-mail mod-stream libnginx- mod-stream- geoip2 libnss-mdns libprotobuf32 libtdb1 libtiff5 libvirt-clients libvirt0 libwebp7 libxpm4 libyajl2 maas-agent maas-cli controller maas-region-api maas-region- controller nginx-common nginx-core os-prober postgresql postgresql-client async-timeout python3-asyncpg python3-boto python3-bs4 charset- normalizer python3-crochet python3-curtin python3-dateutil python3-decorator python3-django python3-django-maas django- piston3 python3-dnspython python3-fastapi python3-formencode python3-frozenlist python3-greenlet python3-h11 python3-html5lib python3-hvac itsdangerous python3-lxml python3-maas-client python3- maas-provisioni ngserver python3- macaroonbakery python3-mimeparse python3-multidict prometheus- client python3-protobuf python3-psycopg2 requests- toolbelt requests- unixsocket python3-rfc3339 python3- seamicroclient python3-simplejson python3- simplestreams python3-sniffio python3-soupsieve python3-sqlalchemy typing- extensions python3-uvicorn python3-uvloop webencodings python3-wrapt python3-ws4py python3-wsproto python3-yarl squid squid-common squid-langpack syslinux-common temporal
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'maas' is not installed, so not removed
The following packages were automatically installed and are no longer required:
avahi-daemon avahi-utils bind9 bind9-utils curtin-common dbconfig-common dbconfig-pgsql dns-root-data fontconfig-config fonts-dejavu-core freeipmi-common
freeipmi-tools grub-common ieee-data isc-dhcp-server javascript-common libavahi-client3 libavahi-
libdbi-perl libdeflate0 libecap3 libfontconfig1 libfreeipmi17 libfreetype6 libgd3 libipmiconsole2 libipmidetect0 libirs-export161 libisccfg-export163 libjbig0
libjpeg-turbo8 libjpeg8 libjs-jquery libltdl7 libnginx-
libnginx-
maas-common maas-dhcp maas-netmon maas-proxy maas-rack-
pxelinux python3-aiodns python3-aiofiles python3-aiohttp python3-aiosignal python3-anyio python3-asgiref python3-
python3-bson python3-bson-ext python3-
python3-
python3-iso8601 python3-
python3-nacl python3-netaddr python3-paramiko python3-pbr python3-petname python3-prettytable python3-
python3-pycares python3-pydantic python3-pyhcl python3-pylxd python3-pymacaroons python3-pypureomapi python3-pyvmomi python3-
python3-
python3-sqlparse python3-starlette python3-tempita python3-temporalio python3-txtftp python3-typeshed python3-
python3-wcwidth python3-
If doing autoremove (or when removing maas-region-api) we can see that Temporal is stopped and removed:
> sudo apt autoremove -y maas
Removing temporal (1.22.5-0ubuntu1) ...
> journalctl -fu maas-temporal service: Deactivated successfully. service: Consumed 1min 51.776s CPU time.
Apr 01 13:33:38 foo systemd[1]: maas-temporal.
Apr 01 13:33:38 foo systemd[1]: Stopped MAAS Temporal.
Apr 01 13:33:38 foo systemd[1]: maas-temporal.
However, we don't remove Temporal config: maas/temporal/ production. yaml maas/temporal/ production. yaml
root@foo:~# ls -al /var/lib/
-rw------- 1 maas maas 1915 Apr 1 12:46 /var/lib/