[odl] Create openflowplugin.cfg if not present 55/62855/1
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 17:13:00 +0000 (17:13 +0000)
Salt's `ini.options_present` expects the file to be present.

Change-Id: Ib62b324ae0bd154a35b8a80e4ab2ec0002bc6bce
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 5693a22613d2ba0bd454490646c8a29b47a74329)

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: