Initial version
diff --git a/CHANGELOG.rst b/CHANGELOG.rst
new file mode 100644
index 0000000..305c815
--- /dev/null
+++ b/CHANGELOG.rst
@@ -0,0 +1,6 @@
+{{cookiecutter.service_name}} formula
+=========================================
+
+0.0.1 (2015-08-22)
+
+- Initial formula setup
\ No newline at end of file
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..e7019f4
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,13 @@
+Copyright (c) 2014-2015 {{cookiecutter.license_holder}}
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
\ No newline at end of file
diff --git a/README.rst b/README.rst
new file mode 100644
index 0000000..59cad3c
--- /dev/null
+++ b/README.rst
@@ -0,0 +1,23 @@
+
+==================================
+{{cookiecutter.service_name}}
+==================================
+
+Service {{cookiecutter.service_name}} description
+
+Sample pillars
+==============
+
+Single {{cookiecutter.service_name}} service
+
+.. code-block:: yaml
+
+    {{cookiecutter.service_name}}:
+      server:
+        enabled: true
+        version: icehouse
+
+Read more
+=========
+
+* links
diff --git a/VERSION b/VERSION
new file mode 100644
index 0000000..49d5957
--- /dev/null
+++ b/VERSION
@@ -0,0 +1 @@
+0.1
diff --git a/cookiecutter.json b/cookiecutter.json
new file mode 100644
index 0000000..4d42877
--- /dev/null
+++ b/cookiecutter.json
@@ -0,0 +1,6 @@
+{
+    "project_name": "salt-formula",
+    "repo_name": "{{ cookiecutter.project_name|replace('-', '_') }}",
+    "service_name": "{{ cookiecutter.project_name.split('-')[0] }}",
+    "license_holder": "tcp cloud a.s."
+}
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..052f791
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,11 @@
+salt-formula-heat (0.2) trusty; urgency=medium
+
+  * First public release
+
+ -- Filip Pytloun <filip.pytloun@tcpcloud.eu>  Tue, 06 Oct 2015 16:38:42 +0200
+
+salt-formula-heat (0.1) trusty; urgency=medium
+
+  * Initial release
+
+ -- Ales Komarek <ales.komarek@tcpcloud.eu>  Thu, 13 Aug 2015 23:23:41 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..17ade00
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,15 @@
+Source: salt-formula-heat
+Maintainer: Ales Komarek <ales.komarek@tcpcloud.eu>
+Section: admin
+Priority: optional
+Build-Depends: debhelper (>= 9)
+Standards-Version: 3.9.6
+Homepage: http://www.tcpcloud.eu
+Vcs-Browser: https://github.com/tcpcloud/salt-formula-heat
+Vcs-Git: https://github.com/tcpcloud/salt-formula-heat.git
+
+Package: salt-formula-heat
+Architecture: all
+Depends: ${misc:Depends}, salt-master, reclass
+Description: Heat salt formula
+ Configure Heat system.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..537f1e7
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,15 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: salt-formula-heat
+Upstream-Contact: Ales Komarek <ales.komarek@tcpcloud.eu>
+Source: https://github.com/tcpcloud/salt-formula-heat
+
+Files: *
+Copyright: 2014-2015 tcp cloud a.s.
+License: Apache-2.0
+  Copyright (C) 2014-2015 tcp cloud a.s.
+  .
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  .
+  On a Debian system you can find a copy of this license in
+  /usr/share/common-licenses/Apache-2.0.
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..d585829
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,3 @@
+README.rst
+CHANGELOG.rst
+VERSION
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..ae9527b
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,4 @@
+_modules/*         /usr/share/salt-formulas/env/_modules/
+_states/*         /usr/share/salt-formulas/env/_states/
+heat/*             /usr/share/salt-formulas/env/heat/
+metadata/service/*      /usr/share/salt-formulas/reclass/service/heat/
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..abde6ef
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,5 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@
+
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..89ae9db
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (native)
diff --git "a/metadata/service/\173\173cookiecutter.role_name\175\175/cluster.yml" "b/metadata/service/\173\173cookiecutter.role_name\175\175/cluster.yml"
new file mode 100644
index 0000000..c9dc550
--- /dev/null
+++ "b/metadata/service/\173\173cookiecutter.role_name\175\175/cluster.yml"
@@ -0,0 +1,45 @@
+applications:
+- heat
+parameters:
+  heat:
+    server:
+      enabled: true
+      version: ${_param:heat_version}
+      bind:
+        api_cfn:
+          address: ${_param:cluster_local_address}
+        api_cloudwatch:
+          address: ${_param:cluster_local_address}
+        api:
+          address: ${_param:cluster_local_address}
+      database:
+        engine: mysql
+        host: ${_param:cluster_vip_address}
+        port: 3306
+        name: heat
+        user: heat
+        password: ${_param:mysql_heat_password}
+      metadata:
+        host: ${_param:cluster_vip_address}
+        port: 8000
+      waitcondition:
+        host: ${_param:cluster_vip_address}
+        port: 8000
+      watch:
+        host: ${_param:cluster_vip_address}
+        port: 8003
+      identity:
+        engine: keystone
+        host: ${_param:cluster_vip_address}
+        port: 35357
+        tenant: service
+        user: heat
+        password: ${_param:keystone_heat_password}
+      message_queue:
+        engine: rabbitmq
+        host: ${_param:cluster_vip_address}
+        port: 5672
+        user: openstack
+        password: ${_param:rabbitmq_openstack_password}
+        virtual_host: '/openstack'
+        ha_queues: true
diff --git "a/metadata/service/\173\173cookiecutter.role_name\175\175/single.yml" "b/metadata/service/\173\173cookiecutter.role_name\175\175/single.yml"
new file mode 100644
index 0000000..8853853
--- /dev/null
+++ "b/metadata/service/\173\173cookiecutter.role_name\175\175/single.yml"
@@ -0,0 +1,6 @@
+applications:
+- {{cookiecutter.service_name}}
+parameters:
+  {{cookiecutter.service_name}}:
+    {{cookiecutter.role_name}}:
+      enabled: true
diff --git "a/\173\173cookiecutter.service_name\175\175/files/sensu.conf" "b/\173\173cookiecutter.service_name\175\175/files/sensu.conf"
new file mode 100644
index 0000000..903e2f2
--- /dev/null
+++ "b/\173\173cookiecutter.service_name\175\175/files/sensu.conf"
@@ -0,0 +1,6 @@
+local_{{cookiecutter.service_name}}_proc:
+  command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_procs -C {{cookiecutter.service_name}} -u {{cookiecutter.service_name}} -c 1:1"
+  interval: 60
+  occurrences: 1
+  subscribers:
+  - local-{{cookiecutter.service_name}}-{{cookiecutter.role_name}}
diff --git "a/\173\173cookiecutter.service_name\175\175/init.sls" "b/\173\173cookiecutter.service_name\175\175/init.sls"
new file mode 100644
index 0000000..f740af3
--- /dev/null
+++ "b/\173\173cookiecutter.service_name\175\175/init.sls"
@@ -0,0 +1,6 @@
+{%- if pillar.{{cookiecutter.service_name}} is defined %}
+include:
+{%- if pillar.{{cookiecutter.service_name}}.{{cookiecutter.role_name}} is defined %}
+- {{cookiecutter.service_name}}.{{cookiecutter.role_name}}
+{%- endif %}
+{%- endif %}
\ No newline at end of file
diff --git "a/\173\173cookiecutter.service_name\175\175/map.jinja" "b/\173\173cookiecutter.service_name\175\175/map.jinja"
new file mode 100644
index 0000000..6208ea6
--- /dev/null
+++ "b/\173\173cookiecutter.service_name\175\175/map.jinja"
@@ -0,0 +1,28 @@
+{%- set source_engine = salt['pillar.get']('{{cookiecutter.service_name}}:{{cookiecutter.role_name}}:source:engine') %}
+
+{%- load_yaml as base_defaults %}
+{%- if source_engine == 'git' %}
+Debian:
+  pkgs:
+  - python-psycopg2
+  dir:
+    base: /srv/{{cookiecutter.service_name}}/venv
+    home: /var/lib/{{cookiecutter.service_name}}
+    workspace: /srv/{{cookiecutter.service_name}}/workspace
+RedHat:
+  pkgs:
+  - python-psycopg2
+  dir:
+    base: /srv/{{cookiecutter.service_name}}/venv
+    home: /var/lib/{{cookiecutter.service_name}}
+    workspace: /srv/{{cookiecutter.service_name}}/workspace
+{%- else %}
+Debian:
+  pkgs:
+  - helpdesk
+  dir:
+    base: /usr/lib/{{cookiecutter.service_name}}
+{%- endif %}
+{%- endload %}
+
+{%- set {{cookiecutter.role_name}} = salt['grains.filter_by'](base_defaults, merge=salt['pillar.get']('{{cookiecutter.service_name}}:{{cookiecutter.role_name}}')) %}
\ No newline at end of file
diff --git "a/\173\173cookiecutter.service_name\175\175/\173\173cookiecutter.role_name\175\175.sls" "b/\173\173cookiecutter.service_name\175\175/\173\173cookiecutter.role_name\175\175.sls"
new file mode 100644
index 0000000..92c5a31
--- /dev/null
+++ "b/\173\173cookiecutter.service_name\175\175/\173\173cookiecutter.role_name\175\175.sls"
@@ -0,0 +1,4 @@
+{%- from "{{cookiecutter.service_name}}/map.jinja" import {{cookiecutter.role_name}} with context %}
+{%- if {{cookiecutter.role_name}}.enabled %}
+
+{%- endif %}