aboutsummaryrefslogtreecommitdiffstats
path: root/mcp/salt-formulas/opendaylight
diff options
context:
space:
mode:
Diffstat (limited to 'mcp/salt-formulas/opendaylight')
-rw-r--r--mcp/salt-formulas/opendaylight/server.sls8
1 files changed, 8 insertions, 0 deletions
diff --git a/mcp/salt-formulas/opendaylight/server.sls b/mcp/salt-formulas/opendaylight/server.sls
index edacc7855..5f53e6a18 100644
--- a/mcp/salt-formulas/opendaylight/server.sls
+++ b/mcp/salt-formulas/opendaylight/server.sls
@@ -32,9 +32,15 @@ opendaylight_repo:
- name: deb http://ppa.launchpad.net/odl-team/{{ server.version }}/ubuntu xenial main
- file: /etc/apt/sources.list.d/odl-team-ubuntu-{{ server.version }}-xenial.list
+{%- if grains['saltversioninfo'] < [2017, 7] %}
+service.mask:
+ module.run:
+ - m_name: opendaylight
+{%- else %}
opendaylight_service_mask:
service.masked:
- name: opendaylight
+{%- endif %}
opendaylight:
pkg.installed:
@@ -47,7 +53,9 @@ opendaylight:
- ini: /opt/opendaylight/etc/org.ops4j.pax.web.cfg
service.running:
- enable: true
+{%- if grains['saltversioninfo'] >= [2017, 7] %}
- unmask: true
+{%- endif %}
- watch:
- file: /opt/opendaylight/etc/jetty.xml
- file: /opt/opendaylight/bin/setenv