Merge pull request #2 from ityaptin/master

Add dbsync to Aodh deployment
diff --git a/aodh/server.sls b/aodh/server.sls
index bdf9eda..58c97a9 100644
--- a/aodh/server.sls
+++ b/aodh/server.sls
@@ -1,7 +1,7 @@
 {%- from "aodh/map.jinja" import server with context %}
 {%- if server.enabled %}
 # Exclude unsupported openstack versions
-{%- if server.version >= "mitaka"  %}
+{%- if server.version not in ['liberty', 'juno', 'kilo'] %}
 
 server_packages:
   pkg.installed:
@@ -14,6 +14,13 @@
   - require:
     - pkg: server_packages
 
+aodh_syncdb:
+  cmd.run:
+  - name: aodh-dbsync
+  - require:
+    - file: /etc/aodh/aodh.conf
+    - pkg: server_packages
+
 aodh_server_services:
   service.running:
   - names: {{ server.services }}