To process hash entries in deterministic order.
Without this patch, config entries were different for every run
and required a service restart when nothing actually changed.
Doing it similar to
0fe2f7e66b
Updates the archlinux, debian, freebsd templates to support passing a
list of values to `masters` instead of a string. This is already
supported by the redhat template, but lacking in the other 3.