diff --git a/common/ctx.yaml b/common/ctx.yaml
index af4f497a3a296905eb1b756eab72d98a4649a47e..42d469b6546bc4364c3e88c216ba5e09e8205561 100644
--- a/common/ctx.yaml
+++ b/common/ctx.yaml
@@ -1,5 +1,11 @@
 #cloud-config
 
+merge_type:
+ - name: list
+   settings: [append]
+ - name: dict
+   settings: [recurse_array]
+
 manage_etc_hosts: false
 
 timezone: Europe/Prague
diff --git a/deploy.tf b/deploy.tf
index 6a8858df57dc9a39e121e77d58e07ad5f83a8102..b44d887b61eb45c1becccaf409d0af5c10b89491 100644
--- a/deploy.tf
+++ b/deploy.tf
@@ -43,6 +43,11 @@ data "template_cloudinit_config" "ctx" {
 		content = <<EOT
 #cloud-config
 
+merge_type:
+  - name: list
+    settings: [append]
+  - name: dict
+    settings: [recurse_array]
 %{ if count.index != 0 ~}
 
 fs_setup:
@@ -72,7 +77,6 @@ users:
 
 write_files:
   - path: /home/deployadm/.ssh/id_rsa
-    owner: deployadm:deployadm
     permissions: '0600'
     content: |
       ${indent(6, openstack_compute_keypair_v2.localkey.private_key)~}