summaryrefslogtreecommitdiffstats
path: root/mcp/salt-formulas/salt-formula-opendaylight
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2018-09-23 17:18:40 +0200
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2018-09-23 18:11:24 +0200
commit5693a22613d2ba0bd454490646c8a29b47a74329 (patch)
tree809ca324ffaf2c336f7aebf8dc0d061b6598e2e3 /mcp/salt-formulas/salt-formula-opendaylight
parent54164b84abc2b6b8772d2ac083e11ce7c137cc7c (diff)
[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 <Alexandru.Avadanii@enea.com>
Diffstat (limited to 'mcp/salt-formulas/salt-formula-opendaylight')
-rw-r--r--mcp/salt-formulas/salt-formula-opendaylight/opendaylight/server.sls6
1 files changed, 6 insertions, 0 deletions
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: