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 %}
9 {% from "linux/map.jinja" import system with context %}
11 {%- if server.enabled %}
13 opendaylight_repo_key:
15 - name: "apt-key adv --keyserver keyserver.ubuntu.com --recv 44C05248"
16 {%- if system.proxy is defined and system.proxy.pkg is defined %}
18 {%- if system.proxy.pkg.http is defined %}
19 - http_proxy: {{ system.proxy.pkg.http }}
21 {%- if system.proxy.pkg.https is defined %}
22 - https_proxy: {{ system.proxy.pkg.https }}
28 # NOTE(armband): PPA handling behind proxy broken, define it explicitly
29 # https://github.com/saltstack/salt/pull/45224
30 # - ppa: {{ server.repo }}
31 - human_name: opendaylight-ppa
32 - name: deb http://ppa.launchpad.net/odl-team/{{ server.version }}/ubuntu xenial main
33 - file: /etc/apt/sources.list.d/odl-team-ubuntu-{{ server.version }}-xenial.list
35 {%- if grains['saltversioninfo'] < [2017, 7] %}
38 - m_name: opendaylight
40 opendaylight_service_mask:
48 - pkgrepo: opendaylight_repo
50 - file: /opt/opendaylight/etc/jetty.xml
51 - file: /opt/opendaylight/bin/setenv
52 - ini: /opt/opendaylight/etc/org.apache.karaf.features.cfg
53 - ini: /opt/opendaylight/etc/org.ops4j.pax.web.cfg
56 {%- if grains['saltversioninfo'] >= [2017, 7] %}
60 - file: /opt/opendaylight/etc/jetty.xml
61 - file: /opt/opendaylight/bin/setenv
62 - ini: /opt/opendaylight/etc/org.apache.karaf.features.cfg
63 - ini: /opt/opendaylight/etc/org.ops4j.pax.web.cfg
65 /opt/opendaylight/etc/jetty.xml:
67 - source: salt://opendaylight/files/jetty.xml
72 /opt/opendaylight/bin/setenv:
74 - source: salt://opendaylight/files/setenv.shell
77 - file: /opt/opendaylight/etc/jetty.xml
80 {%- for f in server.karaf_features.itervalues() -%}
81 {{ f | join(',') }}{%- if not loop.last %},{%- endif %}
85 /opt/opendaylight/etc/org.apache.karaf.features.cfg:
88 featuresBoot: {{ features }}
90 /opt/opendaylight/etc/org.ops4j.pax.web.cfg:
93 org.ops4j.pax.web.listening.addresses: {{ server.odl_bind_ip }}
94 org.osgi.service.http.port: {{ server.odl_rest_port }}
96 {%- if server.get('router_enabled', false) %}
97 /opt/opendaylight/etc/custom.properties:
100 ovsdb.l3.fwd.enabled: 'yes'
101 ovsdb.of.version: 1.3
105 - service: opendaylight
108 {%- if grains['cpuarch'] == 'aarch64' %}
109 opendaylight-leveldbjni: