Closed jolbol1 closed 2 years ago
localhost.yml is where users will edit anything. Not all.yml as that will get overwritten.
localhost.yml is where users will edit anything. Not all.yml as that will get overwritten.
But you can still put docker_log_driver in localhost correct?
Or is there another way to have a customisable global variable?
Yes, that is how you do it. Was just letting you know since you seem to have misunderstood :)
added something similar in https://github.com/saltyorg/Saltbox/commit/14001041558b8b891e3a324ca57c150ffd669f06
This adds the ability for a user to customise the log driver and log options using
docker_log_driver
anddocker_log_options
in group vars all.yml, as well as allowing it per containerROLE_docker_log_options
andROLE_docker_log_driver
. If none of these are present it will omit, thus using defaults.This is useful for promtail and loki.