Merge pull request #4 from Martin819/master
Optimize 'noservices' condition
diff --git a/aodh/server.sls b/aodh/server.sls
index 52f4ac2..6803730 100644
--- a/aodh/server.sls
+++ b/aodh/server.sls
@@ -14,17 +14,16 @@
- require:
- pkg: server_packages
-{%- if not grains.get('noservices', False) %}
-
aodh_syncdb:
cmd.run:
- name: aodh-dbsync
+ {%- if grains.get('noservices') %}
+ - onlyif: /bin/false
+ {%- endif %}
- require:
- file: /etc/aodh/aodh.conf
- pkg: server_packages
-{%- endif %}
-
aodh_server_services:
service.running:
- names: {{ server.services }}