Initial commit
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..5f1f0c6
--- /dev/null
+++ b/README.md
@@ -0,0 +1,16 @@
+
+# rsync server
+
+
+## Sample pillar
+
+ rsync:
+ server:
+ enabled: true
+ servers:
+ - name: account6012
+ max connections:
+ device: /srv/1/node/
+ read only: False
+
+## Read more
\ No newline at end of file
diff --git a/conf/rsyncd.conf b/conf/rsyncd.conf
new file mode 100644
index 0000000..c592ae9
--- /dev/null
+++ b/conf/rsyncd.conf
@@ -0,0 +1,83 @@
+uid = <your-user-name>
+gid = <your-user-name>
+log file = /var/log/rsyncd.log
+pid file = /var/run/rsyncd.pid
+address = 127.0.0.1
+
+
+{%- for server in servers %}
+[{{ server.name}}]
+max connections = {{ server.max_connections }}
+path = /srv/1/node/ {{ server.device }}
+read only = {{ server.read_only }}
+lock file = /var/lock/{{ server.name }}.lock
+
+{%- endfor %}
+
+{#
+[account6022]
+max connections = 25
+path = /srv/2/node/
+read only = false
+lock file = /var/lock/account6022.lock
+
+[account6032]
+max connections = 25
+path = /srv/3/node/
+read only = false
+lock file = /var/lock/account6032.lock
+
+[account6042]
+max connections = 25
+path = /srv/4/node/
+read only = false
+lock file = /var/lock/account6042.lock
+
+[container6011]
+max connections = 25
+path = /srv/1/node/
+read only = false
+lock file = /var/lock/container6011.lock
+
+[container6021]
+max connections = 25
+path = /srv/2/node/
+read only = false
+lock file = /var/lock/container6021.lock
+
+[container6031]
+max connections = 25
+path = /srv/3/node/
+read only = false
+lock file = /var/lock/container6031.lock
+
+[container6041]
+max connections = 25
+path = /srv/4/node/
+read only = false
+lock file = /var/lock/container6041.lock
+
+[object6010]
+max connections = 25
+path = /srv/1/node/
+read only = false
+lock file = /var/lock/object6010.lock
+
+[object6020]
+max connections = 25
+path = /srv/2/node/
+read only = false
+lock file = /var/lock/object6020.lock
+
+[object6030]
+max connections = 25
+path = /srv/3/node/
+read only = false
+lock file = /var/lock/object6030.lock
+
+[object6040]
+max connections = 25
+path = /srv/4/node/
+read only = false
+lock file = /var/lock/object6040.lock
+#}
\ No newline at end of file
diff --git a/init.sls b/init.sls
new file mode 100644
index 0000000..b1051a2
--- /dev/null
+++ b/init.sls
@@ -0,0 +1,5 @@
+
+include:
+{%- if pillar.rsync.server is defined %}
+- rsync.server
+{%- endif %}
diff --git a/server.sls b/server.sls
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/server.sls