Use home_dir for rsync cmd
Currently we define path to backup data over home_dir var,
at the same time rsync cmd use string "/srv/backupninja" that can be overrided
Change-Id: I5489300498f021b704ef732df029363ae4d7976b
Closes-Bug: PROD-20685
diff --git a/backupninja/files/rsync.conf b/backupninja/files/rsync.conf
index c58e3d7..25b6c9f 100644
--- a/backupninja/files/rsync.conf
+++ b/backupninja/files/rsync.conf
@@ -213,7 +213,7 @@
# remote rsync program (remote dest only)
{%- if grains.os == 'Ubuntu' and grains.osrelease >= '14.04' %}
-remote_rsync = '{% for backup_name, backup in service_grains.backupninja.backup.iteritems() %}{% for fs_include in backup.get('fs_includes', []) %} mkdir -p /srv/backupninja/{{ network.fqdn }}{{ fs_include }};{% endfor %}{% endfor %} rsync'
+remote_rsync = '{% for backup_name, backup in service_grains.backupninja.backup.iteritems() %}{% for fs_include in backup.get('fs_includes', []) %} mkdir -p { client.target.get('home_dir', '/srv/backupninja') }}/{{ network.fqdn }}{{ fs_include }};{% endfor %}{% endfor %} rsync'
{%- else %}
#remote_rsync = rsync
{%- endif %}