Provide a platform-checks configuration file for HTTP health checks.
The list is extracted from the containers in pillar matching two conditions:
- The service has one or more container running on that engine
- The service has a health check URL set in docker_containers_monitoring
This unit is responsible to provide platform-cheks and its configuration,
not to actually run the tests or provide a runner.
Ref T1704
Generate YAML configuration files
We need to aggregate a checks dictionary from several sources,
here for example from paas_docker.get_health_checks(), but we
plan in following changes to add more monitoring checks sources.
The convert.to_yaml_dictionary() method allow to build arbitrary
dictionaries from several sources and allow to do this aggregation.
It uses the salt.serializers.yaml package, as it allows to represent
objects from the salt.utils.odict.OrderedDict class, with an already
configured dumper for pyyaml.