Initial commit

Adding salt-formula for gnocchi 4.0. Two main roles are supported:
- server
- statsd
They could be installed on different nodes (and on same node too)
gnocchi:common class is used to provide common options for both.

Change-Id: I0e0c9dd4f6d0a1539b9e9aef0084282867012852
Related-Prod: https://mirantis.jira.com/browse/PROD-17704
diff --git a/.kitchen.yml b/.kitchen.yml
new file mode 100644
index 0000000..177281b
--- /dev/null
+++ b/.kitchen.yml
@@ -0,0 +1,83 @@
+---
+driver:
+  name: docker
+  hostname: gnocchi.ci.local
+  use_sudo: false
+
+provisioner:
+  name: salt_solo
+  salt_install: bootstrap
+  salt_bootstrap_url: https://bootstrap.saltstack.com
+  salt_version: latest
+  require_chef: false
+  log_level: error
+  formula: gnocchi
+  grains:
+    noservices: True
+  dependencies:
+    - name: linux
+      repo: git
+      source: https://github.com/salt-formulas/salt-formula-linux
+    - name: apache
+      repo: git
+      source: https://github.com/salt-formulas/salt-formula-apache
+  state_top:
+    base:
+      "*":
+        - linux.system
+        - apache
+        - gnocchi
+  pillars:
+    top.sls:
+      base:
+        "*":
+          - linux_repo_openstack
+          - gnocchi
+          - release
+          - storage
+  pillars-from-files:
+    linux_repo_openstack.sls: tests/pillar/repo_mcp_openstack_<%= ENV['OS_VERSION'] || 'pike' %>.sls
+
+verifier:
+  name: inspec
+  sudo: true
+
+platforms:
+  - name: <%= ENV['PLATFORM'] || 'ubuntu-xenial' %>
+    driver_config:
+      image: <%= ENV['PLATFORM'] || 'epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3' %>
+      platform: ubuntu
+
+suites:
+
+  - name: server_cluster
+    provisioner:
+      pillars-from-files:
+        gnocchi.sls: tests/pillar/server_cluster.sls
+      pillars:
+        release.sls:
+          gnocchi:
+            common:
+              version: <%= ENV['GNOCCHI_VERSION'] || '4.0' %>
+        storage.sls:
+          gnocchi:
+            common:
+              storage:
+                driver: <%= ENV['GNOCCHI_STORAGE'] || 'file' %>
+
+  - name: server_single
+    provisioner:
+      pillars-from-files:
+        gnocchi.sls: tests/pillar/server_single.sls
+      pillars:
+        release.sls:
+          gnocchi:
+            common:
+              version: <%= ENV['GNOCCHI_VERSION'] || '4.0' %>
+        storage.sls:
+          gnocchi:
+            common:
+              storage:
+                driver: <%= ENV['GNOCCHI_STORAGE'] || 'file' %>
+
+# vim: ft=yaml sw=2 ts=2 sts=2 tw=125