Initial commit
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..2859892
--- /dev/null
+++ b/README.md
@@ -0,0 +1,42 @@
+
+# Docker
+
+Formulas for working with Docker
+
+## Sample pillar
+
+    django_pki:
+      server:
+        enabled: true
+        secret_key: 'y5m^_^ak6+y5m^_y5m^_^ak6+^ak6+5(f...'
+        default_key_length: 2048
+        default_country: 'CZ'
+        passphrase_min_length: 12
+        workers: 3
+        bind:
+          address: 0.0.0.0
+          port: 8642
+          protocol: tcp
+        source:
+          engine: 'git'
+          address: 'git@repo.domain.com:django/django-pki.git'
+          rev: 'master'
+        cache:
+          engine: 'memcached'
+          host: '127.0.0.1'
+          prefix: 'CACHE_DJANGO_PKI'
+        database:
+          engine: 'postgresql'
+          host: '127.0.0.1'
+          name: 'django_pki'
+          password: 'pwd'
+          user: 'django_pki'
+        mail:
+          host: 'mail.domain.com'
+          password: 'mail-pwd'
+          user: 'mail-user'
+
+## Read more
+
+* https://github.com/saltstack-formulas/docker-formula
+* 
\ No newline at end of file
diff --git a/control.sls b/control.sls
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/control.sls
diff --git a/host.sls b/host.sls
new file mode 100644
index 0000000..117cc34
--- /dev/null
+++ b/host.sls
@@ -0,0 +1,33 @@
+{% from "docker/map.jinja" import host with context %}
+{%- if host.enabled %}
+
+docker_packages:
+  pkg.installed:
+    - names: 
+
+    python-apt
+
+docker-dependencies:
+   pkg.installed:
+    - pkgs:
+      - iptables
+      - ca-certificates
+      - lxc
+
+docker_repo:
+  pkgrepo.managed:
+  - repo: 'deb http://get.docker.io/ubuntu docker main'
+  - file: '/etc/apt/sources.list.d/docker.list'
+  - key_url: salt://docker/docker.pgp
+  - require_in:
+    - pkg: lxc-docker
+    - require:
+      - pkg: docker-python-apt
+
+lxc-docker:
+  pkg.latest:
+    - require:
+      - pkg: docker-dependencies
+
+docker:
+  service.running
\ No newline at end of file
diff --git a/init.sls b/init.sls
new file mode 100644
index 0000000..0d3039d
--- /dev/null
+++ b/init.sls
@@ -0,0 +1,9 @@
+{%- if pillar.docker is defined %}
+include:
+{%- if pillar.docker.host is defined %}
+- docker.host
+{%- endif %}
+{%- if pillar.docker.control is defined %}
+- docker.control
+{%- endif %}
+{%- endif %}
\ No newline at end of file
diff --git a/map.jinja b/map.jinja
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/map.jinja