From 5693a22613d2ba0bd454490646c8a29b47a74329 Mon Sep 17 00:00:00 2001 From: Alexandru Avadanii Date: Sun, 23 Sep 2018 17:18:40 +0200 Subject: [odl] Create openflowplugin.cfg if not present Salt's `ini.options_present` expects the file to be present. Change-Id: Ib62b324ae0bd154a35b8a80e4ab2ec0002bc6bce Signed-off-by: Alexandru Avadanii --- mcp/salt-formulas/salt-formula-opendaylight/opendaylight/server.sls | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mcp/salt-formulas/salt-formula-opendaylight/opendaylight/server.sls b/mcp/salt-formulas/salt-formula-opendaylight/opendaylight/server.sls index e0fb0912c..bf2f01d7b 100644 --- a/mcp/salt-formulas/salt-formula-opendaylight/opendaylight/server.sls +++ b/mcp/salt-formulas/salt-formula-opendaylight/opendaylight/server.sls @@ -91,6 +91,12 @@ opendaylight: org.ops4j.pax.web.listening.addresses: {{ server.odl_bind_ip }} org.osgi.service.http.port: {{ server.odl_rest_port }} +/opt/opendaylight/etc/org.opendaylight.openflowplugin.cfg_present: + file.managed: + - name: /opt/opendaylight/etc/org.opendaylight.openflowplugin.cfg + - require_in: + - ini: /opt/opendaylight/etc/org.opendaylight.openflowplugin.cfg + /opt/opendaylight/etc/org.opendaylight.openflowplugin.cfg: ini.options_present: - sections: -- cgit 1.2.3-korg