intial commit
diff --git a/README.rst b/README.rst
new file mode 100644
index 0000000..6fb9241
--- /dev/null
+++ b/README.rst
@@ -0,0 +1,10 @@
+
+========
+PowerDNS
+========
+
+
+
+
+Read more
+=========
\ No newline at end of file
diff --git a/files/powerdns.conf b/files/powerdns.conf
new file mode 100644
index 0000000..8df2a61
--- /dev/null
+++ b/files/powerdns.conf
@@ -0,0 +1,2 @@
+
+...
diff --git a/inits.sls b/inits.sls
new file mode 100644
index 0000000..4fd26ca
--- /dev/null
+++ b/inits.sls
@@ -0,0 +1,7 @@
+
+{%- if pillar.powerdns is defined %}
+include:
+{%- if pillar.powerdns.server is defined %}
+- powerdns.server
+{%- endif %}
+{%- endif %}
diff --git a/map.jinja b/map.jinja
new file mode 100644
index 0000000..d645d06
--- /dev/null
+++ b/map.jinja
@@ -0,0 +1,11 @@
+
+{%- set server = salt['grains.filter_by']({
+ 'Debian': {
+ 'pkgs': ['powerdns'],
+ 'service': 'powerdns',
+ },
+ 'RedHat': {
+ 'pkgs': ['powerdns'],
+ 'service': 'powerdns',
+ },
+}, merge=salt['pillar.get']('powerdns:server')) %}
diff --git a/server/init.sls b/server/init.sls
new file mode 100644
index 0000000..6a611f4
--- /dev/null
+++ b/server/init.sls
@@ -0,0 +1,3 @@
+include:
+- powerdns.server.service
+- powerdns.server.zone
diff --git a/server/service.sls b/server/service.sls
new file mode 100644
index 0000000..19e6325
--- /dev/null
+++ b/server/service.sls
@@ -0,0 +1,25 @@
+{%- from "powerdns/map.jinja" import server with context %}
+{%- if server.enabled %}
+
+powerdns_packages:
+ pkg.installed:
+ - names: {{ server.pkgs }}
+
+/etc/powerdns.conf:
+ file.managed:
+ - source: salt://powerdns/files/powerdns.conf
+ - template: jinja
+ - user: root
+ - group: root
+ - mode: 644
+ - require:
+ - pkg: powerdns_packages
+
+powerdns_service:
+ service.running:
+ - enable: true
+ - name: {{ server.service }}
+ - watch:
+ - file: /etc/powerdns.conf
+
+{%- endif %}
\ No newline at end of file
diff --git a/server/zone.sls b/server/zone.sls
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/server/zone.sls