Made some attempts to get the CentOS testing working again but ran into a number of hurdles. #### `centos-6` This was actually working as-is a few months back for `version: '4.4`: * https://travis-ci.com/github/saltstack-formulas/zabbix-formula/jobs/250901749 - This is the last run that worked on `centos-6`. The `zabbix-server-mysql` package is no longer available in the repo: * https://repo.zabbix.com/zabbix/4.4/rhel/6/x86_64/ The highest version that still has it available is `2.4` (this isn't really useful, though): * https://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/ #### `centos-7` & `centos-8` Essentially, these are failing due to issues between `docker` and `systemd`. The main error that reoccurs: ``` New main PID does not belong to service, and PID file is not owned by root. Refusing. ``` Research: * https://github.com/docker/for-linux/issues/835#issuecomment-545583680 - Suggestion here is to bypass the service and just run the binary directly when in a container. * https://github.com/voxpupuli/puppet-zabbix/issues/645 * https://github.com/moby/moby/issues/38749 * https://github.com/systemd/systemd/issues/11752#issuecomment-464814918 - Get the same duplication as well for `systemd`. #### Potential solutions 1. Check if we're in a container and then run the service manually instead, using a check similar to: 1. https://github.com/saltstack-formulas/ntp-formula/pull/45 1. Use Vagrant boxes instead: 1. Biggest issue here is that this will only be local testing, which is always difficult to work with.
Made some attempts to get the CentOS testing working again but ran into a number of hurdles.
centos-6This was actually working as-is a few months back for
version: '4.4:centos-6.The
zabbix-server-mysqlpackage is no longer available in the repo:The highest version that still has it available is
2.4(this isn't really useful, though):centos-7¢os-8Essentially, these are failing due to issues between
dockerandsystemd. The main error that reoccurs:Research:
systemd.Potential solutions
grains.getto detect containers ntp-formula#45