diff --git a/templates/services/userdata.yml.j2 b/templates/services/userdata.yml.j2 index 512a8a6..04f8e4e 100644 --- a/templates/services/userdata.yml.j2 +++ b/templates/services/userdata.yml.j2 @@ -51,13 +51,13 @@ write_files: - path: /root/.docker/config.json content: | - {{ inst.docker_auth_config | default(droneci_autoscaler_docker_auth_config) | to_nice_json | indent(width=6, indentfirst=False) }} + {{ inst.docker_auth_config | default(droneci_autoscaler_docker_auth_config) | to_nice_json(indent=2) | indent(width=6) }} {% endif %} - path: /etc/drone.conf content: | {% if inst.docker_auth_config | default(droneci_autoscaler_docker_auth_config) is defined %} - PLUGIN_CONFIG={{ inst.docker_auth_config | default(droneci_autoscaler_docker_auth_config) | regex_replace("\s+", " ") }} + PLUGIN_CONFIG={{ inst.docker_auth_config | default(droneci_autoscaler_docker_auth_config) | to_nice_json(indent=2) | regex_replace("\s+", " ") }} {% endif %} - path: /etc/docker/ca.pem