1 ##############################################################################
2 # Copyright (c) 2017 Mirantis Inc. and others.
3 # All rights reserved. This program and the accompanying materials
4 # are made available under the terms of the Apache License, Version 2.0
5 # which accompanies this distribution, and is available at
6 # http://www.apache.org/licenses/LICENSE-2.0
7 ##############################################################################
8 {% from "opendaylight/map.jinja" import server with context %}
10 {%- if server.enabled %}
14 - ppa: {{ server.repo }}
19 - pkgrepo: opendaylight_repo
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
28 - file: /opt/opendaylight/etc/jetty.xml
29 - file: /opt/opendaylight/bin/setenv
30 - ini: /opt/opendaylight/etc/org.apache.karaf.features.cfg
31 - ini: /opt/opendaylight/etc/org.ops4j.pax.web.cfg
33 /opt/opendaylight/etc/jetty.xml:
35 - source: salt://opendaylight/files/jetty.xml
40 /opt/opendaylight/bin/setenv:
42 - source: salt://opendaylight/files/setenv.shell
45 - file: /opt/opendaylight/etc/jetty.xml
48 {%- for f in server.karaf_features.itervalues() -%}
49 {{ f | join(',') }}{%- if not loop.last %},{%- endif %}
53 /opt/opendaylight/etc/org.apache.karaf.features.cfg:
56 featuresBoot: {{ features }}
58 /opt/opendaylight/etc/org.ops4j.pax.web.cfg:
61 org.ops4j.pax.web.listening.addresses: {{ server.odl_bind_ip }}
63 {%- if server.get('router_enabled', false) %}
64 /opt/opendaylight/etc/custom.properties:
67 ovsdb.l3.fwd.enabled: 'yes'
72 - service: opendaylight