1 {% from "opendaylight/map.jinja" import server with context %}
3 {%- if server.enabled %}
7 - ppa: {{ server.repo }}
12 - pkgrepo: opendaylight_repo
14 - file: /opt/opendaylight/etc/jetty.xml
15 - file: /opt/opendaylight/bin/setenv
16 - ini: /opt/opendaylight/etc/org.apache.karaf.features.cfg
20 - file: /opt/opendaylight/etc/jetty.xml
21 - file: /opt/opendaylight/bin/setenv
22 - ini: /opt/opendaylight/etc/org.apache.karaf.features.cfg
24 /opt/opendaylight/etc/jetty.xml:
26 - source: salt://opendaylight/files/jetty.xml
31 /opt/opendaylight/bin/setenv:
33 - source: salt://opendaylight/files/setenv.shell
36 - file: /opt/opendaylight/etc/jetty.xml
39 {%- for f in server.karaf_features.itervalues() -%}
40 {{ f | join(',') }}{%- if not loop.last %},{%- endif %}
44 /opt/opendaylight/etc/org.apache.karaf.features.cfg:
47 featuresBoot: {{ features }}
49 {%- if server.get('router_enabled', false) %}
50 /opt/opendaylight/etc/custom.properties:
53 ovsdb.l3.fwd.enabled: 'yes'
58 - service: opendaylight