This issue is causing logrotate install to fail. https://github.com/saltstack/salt/issues/51925 I've added | json to mitigate.
Following the template-formula example.