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 # NOTE(armband): PPA handling behind proxy broken, define it explicitly
15 # https://github.com/saltstack/salt/pull/45224
16 # - ppa: {{ server.repo }}
17 - human_name: opendaylight-ppa
18 - name: deb http://ppa.launchpad.net/odl-team/nitrogen/ubuntu xenial main
19 - file: /etc/apt/sources.list.d/odl-team-ubuntu-nitrogen-xenial.list
20 - keyid: 49B07274951063870A8B7EAE7B8AA1A344C05248
21 - keyserver: keyserver.ubuntu.com
26 - pkgrepo: opendaylight_repo
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
35 - file: /opt/opendaylight/etc/jetty.xml
36 - file: /opt/opendaylight/bin/setenv
37 - ini: /opt/opendaylight/etc/org.apache.karaf.features.cfg
38 - ini: /opt/opendaylight/etc/org.ops4j.pax.web.cfg
40 /opt/opendaylight/etc/jetty.xml:
42 - source: salt://opendaylight/files/jetty.xml
47 /opt/opendaylight/bin/setenv:
49 - source: salt://opendaylight/files/setenv.shell
52 - file: /opt/opendaylight/etc/jetty.xml
55 {%- for f in server.karaf_features.itervalues() -%}
56 {{ f | join(',') }}{%- if not loop.last %},{%- endif %}
60 /opt/opendaylight/etc/org.apache.karaf.features.cfg:
63 featuresBoot: {{ features }}
65 /opt/opendaylight/etc/org.ops4j.pax.web.cfg:
68 org.ops4j.pax.web.listening.addresses: {{ server.odl_bind_ip }}
70 {%- if server.get('router_enabled', false) %}
71 /opt/opendaylight/etc/custom.properties:
74 ovsdb.l3.fwd.enabled: 'yes'
79 - service: opendaylight