Fix multiworker changes
Multiworker commit broke deploys of OC4 on Ubuntu 14.04 nodes,
because the Ubuntu 14.04 does not have systemd init.
To be safe we are now using config_only, to decide if the
restart of services is needed.
PROD-18175
Change-Id: I8260208e1e30891506b8c7981e3244d123f0dce3
diff --git a/opencontrail/config.sls b/opencontrail/config.sls
index 09846e8..d580a1e 100644
--- a/opencontrail/config.sls
+++ b/opencontrail/config.sls
@@ -117,8 +117,10 @@
- source: salt://opencontrail/files/{{ config.version }}/contrail-api.ini
- template: jinja
- makedirs: true
+{%- if config.get('config_only', False) %}
- watch_in:
- service: opencontrail_config_services
+{%- endif %}
/etc/init.d/contrail-api:
file.managed: