Icinga2 using mysql-client81

I have a server 14.2 with mysql 8.1 running from pkg and I want to add monitoring from icinga2, however installing that from packages will install mysql-client80 and remove mysql-server81 and mysql-client81. Obviously, this is not what I want to happen. So what would be the best way for me to get icinga2 running with mysql-client81 as dependency and not run in any update (pkg) fiasco in the future?

Thanks in advance!
 
So what would be the best way for me to get icinga2 running with mysql-client81 as dependency and not run in any update (pkg) fiasco in the future?
Package dependencies are set in stone and cannot be changed once the package has been created. All you can do is set DEFAULT_VERSIONS+= mysql=8.1 in make.conf and build from ports (or set up your own package repository with MySQL set to 8.1)
 
hmm fresh ports git checkout in main or quarterly branch without updating my make.conf already gives an error.

===> icinga2-2.14.3_1 cannot install: unknown MySQL version: 81.
*** Error code 1

and I dont see 8.1 as pkg version either anymore. It's an upgraded BSD install, luckily not yet in production. I have some time to fiddle
 
did pkg upgrade on both (master - master setup) from 8.1 to 8.4. The A node went fine was back up in a minute, the B node however spend an hour on its upgrade to 8.4 which didnt feel right. Rebooted it and it was up in a minute too. Now to get back to icinga2 ports build :)
 
Now to get back to icinga2 ports build
Use DEFAULT_VERSIONS+= mysql=8.4 so everything will neatly depend on MySQL 8.4.

Building your own package repository is super useful, you get the best of both worlds. The versatility of ports and the ease of maintenance from packages. Granted, it takes time and resources, but the befits are huge.
 
Back
Top