diff --git a/postgres/server/init.sls b/postgres/server/init.sls
index 51601bed14a5cf5253bb1d35ca6a833f77d4a3f5..d9a540975fcc49f9c55084f3919b912e54e225b2 100644
--- a/postgres/server/init.sls
+++ b/postgres/server/init.sls
@@ -17,7 +17,7 @@ include:
 # Install, configure and start PostgreSQL server
 postgresql-server:
   pkg.installed:
-    - pkgs: {{ pkgs }}
+    - pkgs: {{ pkgs | json }}
 {%- if postgres.use_upstream_repo == true %}
     - refresh: True
     - require: