To be ensured that ~/.ssh directory exists
The patch creates parent directory .ssh for authorized_keys
locate in home directory.
Change-Id: Id658dbbcec2fdc7f00e633048625b00fac7c449f
Related-PROD: PROD-19104
diff --git a/xtrabackup/server.sls b/xtrabackup/server.sls
index 59296ff..745e9a3 100644
--- a/xtrabackup/server.sls
+++ b/xtrabackup/server.sls
@@ -42,6 +42,14 @@
- user: xtrabackup_user
- pkg: xtrabackup_server_packages
+{{ server.backup_dir }}/.ssh:
+ file.directory:
+ - mode: 700
+ - user: xtrabackup
+ - group: xtrabackup
+ - require:
+ - user: xtrabackup_user
+
{{ server.backup_dir }}/.ssh/authorized_keys:
file.managed:
- user: xtrabackup
@@ -51,6 +59,7 @@
- require:
- file: {{ server.backup_dir }}/full
- file: {{ server.backup_dir }}/incr
+ - file: {{ server.backup_dir }}/.ssh
xtrabackup_server_script:
file.managed: