From 068021752e26e49792500786e1923f651443a955 Mon Sep 17 00:00:00 2001 From: Michael Polenchuk Date: Fri, 7 Sep 2018 10:54:50 +0400 Subject: [odl] Create parent directories for dhcp config Change-Id: I7d16bcd42a059817d7a4e6b06490e03001354f4f Signed-off-by: Michael Polenchuk --- mcp/salt-formulas/salt-formula-opendaylight/opendaylight/server.sls | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mcp/salt-formulas/salt-formula-opendaylight/opendaylight') diff --git a/mcp/salt-formulas/salt-formula-opendaylight/opendaylight/server.sls b/mcp/salt-formulas/salt-formula-opendaylight/opendaylight/server.sls index ff5a0bbfa..35ab35391 100644 --- a/mcp/salt-formulas/salt-formula-opendaylight/opendaylight/server.sls +++ b/mcp/salt-formulas/salt-formula-opendaylight/opendaylight/server.sls @@ -53,7 +53,6 @@ opendaylight: {%- endif %} - watch: - file: /opt/opendaylight/etc/jetty.xml - - file: /opt/opendaylight/etc/opendaylight/datastore/initial/config/netvirt-dhcpservice-config.xml - file: /opt/opendaylight/bin/setenv - ini: /opt/opendaylight/etc/org.apache.karaf.features.cfg - ini: /opt/opendaylight/etc/org.ops4j.pax.web.cfg @@ -101,11 +100,16 @@ opendaylight: - service: opendaylight {%- endif %} +{%- if server.dhcp.enabled %} /opt/opendaylight/etc/opendaylight/datastore/initial/config/netvirt-dhcpservice-config.xml: file.managed: - source: salt://opendaylight/files/netvirt-dhcpservice-config.xml + - makedirs: true + - watch_in: + - service: opendaylight - use: - file: /opt/opendaylight/etc/jetty.xml +{%- endif %} {%- if grains['cpuarch'] == 'aarch64' %} opendaylight-leveldbjni: -- cgit 1.2.3-korg