Build in opendaylight service mask 81/55681/1
authorMichael Polenchuk <mpolenchuk@mirantis.com>
Fri, 13 Apr 2018 08:54:17 +0000 (12:54 +0400)
committerMichael Polenchuk <mpolenchuk@mirantis.com>
Fri, 13 Apr 2018 13:11:06 +0000 (17:11 +0400)
Oxygen has an issue with broken config/data cache caused
by service restart in the middle of initial boot.

Change-Id: Ia30c76b67566ab8a2fb9045d0e10ca788f1a06a6
Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
mcp/salt-formulas/opendaylight/server.sls

index 069dc27..51a4d9f 100644 (file)
@@ -49,6 +49,13 @@ opendaylight:
     - ini: /opt/opendaylight/etc/org.apache.karaf.features.cfg
     - ini: /opt/opendaylight/etc/org.ops4j.pax.web.cfg
 
+# TODO: use service.masked state once salt get updated to 2017.7.0+
+service.mask:
+  module.run:
+  - m_name: opendaylight
+  - require_in:
+    - pkg: opendaylight
+
 /opt/opendaylight/etc/jetty.xml:
   file.managed:
   - source: salt://opendaylight/files/jetty.xml