setup rsync server
diff --git a/README.md b/README.md
index 5f1f0c6..8f6a0af 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,5 @@
-# rsync server
-
+# rsync
## Sample pillar
@@ -13,4 +12,5 @@
device: /srv/1/node/
read only: False
-## Read more
\ No newline at end of file
+## Read more
+
diff --git a/map.jinja b/map.jinja
new file mode 100644
index 0000000..b6e85ec
--- /dev/null
+++ b/map.jinja
@@ -0,0 +1,15 @@
+
+{% set proxy = salt['grains.filter_by']({
+ 'Debian': {
+ 'pkgs': ['rsync'],
+ 'service': 'rsyncd',
+ 'user': 'root',
+ 'group': 'root',
+ },
+ 'RedHat': {
+ 'pkgs': ['rsync'],
+ 'service': 'rsyncd',
+ 'user': 'root',
+ 'group': 'root',
+ },
+}, merge=salt['pillar.get']('rsync:server')) %}
diff --git a/server.sls b/server.sls
index e69de29..0b527bb 100644
--- a/server.sls
+++ b/server.sls
@@ -0,0 +1 @@
+{% from "rsync/map.jinja" import server with context %}