[odl] Create openflowplugin.cfg if not present 53/62853/2
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Sun, 23 Sep 2018 15:18:40 +0000 (17:18 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Sun, 23 Sep 2018 16:11:24 +0000 (18:11 +0200)
Salt's `ini.options_present` expects the file to be present.

Change-Id: Ib62b324ae0bd154a35b8a80e4ab2ec0002bc6bce
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
mcp/salt-formulas/salt-formula-opendaylight/opendaylight/server.sls

index e0fb091..bf2f01d 100644 (file)
@@ -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: