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
17 - ini: /opt/opendaylight/etc/org.ops4j.pax.web.cfg
21 - file: /opt/opendaylight/etc/jetty.xml
22 - file: /opt/opendaylight/bin/setenv
23 - ini: /opt/opendaylight/etc/org.apache.karaf.features.cfg
24 - ini: /opt/opendaylight/etc/org.ops4j.pax.web.cfg
26 /opt/opendaylight/etc/jetty.xml:
28 - source: salt://opendaylight/files/jetty.xml
33 /opt/opendaylight/bin/setenv:
35 - source: salt://opendaylight/files/setenv.shell
38 - file: /opt/opendaylight/etc/jetty.xml
41 {%- for f in server.karaf_features.itervalues() -%}
42 {{ f | join(',') }}{%- if not loop.last %},{%- endif %}
46 /opt/opendaylight/etc/org.apache.karaf.features.cfg:
49 featuresBoot: {{ features }}
51 /opt/opendaylight/etc/org.ops4j.pax.web.cfg:
54 org.ops4j.pax.web.listening.addresses: {{ server.odl_bind_ip }}
56 {%- if server.get('router_enabled', false) %}
57 /opt/opendaylight/etc/custom.properties:
60 ovsdb.l3.fwd.enabled: 'yes'
65 - service: opendaylight