blob: 795c4ce40ae348b0dd8434a46ff1806f3630db3d [file] [log] [blame]
Filip Pytlouncd028e42015-10-06 16:28:32 +02001
2{% set compute = salt['grains.filter_by']({
3 'Debian': {
Jiri Broulikcdb593e2017-02-27 13:46:13 +01004 'pkgs': ['neutron-openvswitch-agent', 'openvswitch-switch', 'python-pycadf'],
Petr Michalec61f7ab22016-11-29 16:29:09 +01005 'services': ['neutron-openvswitch-agent'],
Jakub Pavlik8f83ccc2017-02-27 11:15:39 +01006 'dpdk': false,
Petr Michalec61f7ab22016-11-29 16:29:09 +01007 'audit': {
8 'enabled': false
9 }
Filip Pytlouncd028e42015-10-06 16:28:32 +020010 },
11 'RedHat': {
Petr Michalec61f7ab22016-11-29 16:29:09 +010012 'pkgs': ['openstack-neutron-openvswitch', 'openvswitch', 'python-pycadf'],
13 'services': ['neutron-openvswitch-agent'],
Jakub Pavlik8f83ccc2017-02-27 11:15:39 +010014 'dpdk': false,
Petr Michalec61f7ab22016-11-29 16:29:09 +010015 'audit': {
16 'enabled': false
17 }
Filip Pytlouncd028e42015-10-06 16:28:32 +020018 },
Jakub Pavlik85ae6882016-10-19 15:10:20 +020019}, merge=pillar.neutron.get('compute', {})) %}
Filip Pytlouncd028e42015-10-06 16:28:32 +020020
Jiri Broulik74f61112016-11-21 20:23:47 +010021{% set gateway = salt['grains.filter_by']({
Filip Pytlouncd028e42015-10-06 16:28:32 +020022 'Debian': {
Jiri Broulik74f61112016-11-21 20:23:47 +010023 'pkgs': ['neutron-dhcp-agent', 'neutron-openvswitch-agent', 'neutron-l3-agent', 'openvswitch-common', 'neutron-metadata-agent'],
Jakub Pavlik8f83ccc2017-02-27 11:15:39 +010024 'services': ['neutron-openvswitch-agent', 'neutron-metadata-agent', 'neutron-l3-agent', 'neutron-dhcp-agent'],
25 'dpdk': false
Filip Pytlouncd028e42015-10-06 16:28:32 +020026 },
27 'RedHat': {
28 'pkgs': ['openstack-neutron-openvswitch'],
Jakub Pavlik8f83ccc2017-02-27 11:15:39 +010029 'services': ['neutron-openvswitch-agent', 'neutron-metadata-agent', 'neutron-l3-agent', 'neutron-dhcp-agent'],
30 'dpdk': false
Filip Pytlouncd028e42015-10-06 16:28:32 +020031 },
Jiri Broulik74f61112016-11-21 20:23:47 +010032}, merge=pillar.neutron.get('gateway', {})) %}
Filip Pytlouncd028e42015-10-06 16:28:32 +020033
34{% set server = salt['grains.filter_by']({
35 'Debian': {
Petr Michalec61f7ab22016-11-29 16:29:09 +010036 'pkgs': ['neutron-server','neutron-lbaas-agent', 'gettext-base', 'python-pycadf'],
Filip Pytlouncd028e42015-10-06 16:28:32 +020037 'pkgs_ml2': ['neutron-plugin-ml2'],
38 'services': ['neutron-server'],
Petr Michalec61f7ab22016-11-29 16:29:09 +010039 'notification': False,
Jakub Pavlik8f83ccc2017-02-27 11:15:39 +010040 'dpdk': false,
Petr Michalec61f7ab22016-11-29 16:29:09 +010041 'audit': {
42 'enabled': false
43 }
Filip Pytlouncd028e42015-10-06 16:28:32 +020044 },
45 'RedHat': {
Petr Michalec61f7ab22016-11-29 16:29:09 +010046 'pkgs_ml2': ['openstack-neutron-ml2', 'python-pycadf'],
Filip Pytlouncd028e42015-10-06 16:28:32 +020047 'pkgs': ['openstack-neutron'],
48 'services': ['neutron-server'],
Petr Michalec61f7ab22016-11-29 16:29:09 +010049 'notification': False,
Jakub Pavlik8f83ccc2017-02-27 11:15:39 +010050 'dpdk': false,
Petr Michalec61f7ab22016-11-29 16:29:09 +010051 'audit': {
52 'enabled': false
53 }
Filip Pytlouncd028e42015-10-06 16:28:32 +020054 },
Jakub Pavlik85ae6882016-10-19 15:10:20 +020055}, merge=pillar.neutron.get('server', {})) %}
marcoa4428a32016-06-10 11:50:16 +020056
Jiri Broulikf1b3aa42017-01-26 17:08:44 +010057{% set client = salt['grains.filter_by']({
58 'Debian': {
59 'pkgs': ['python-neutronclient']
60 },
61 'RedHat': {
62 'pkgs': ['python-neutronclient']
63 },
64}, merge=pillar.neutron.get('client', {})) %}
65
Jiri Broulik74f61112016-11-21 20:23:47 +010066{%- if pillar.neutron.server is defined %}
marcoa4428a32016-06-10 11:50:16 +020067
68{%- set tmp_server = pillar.neutron.server %}
69
70{%- if not tmp_server.backend is defined %}
71
Olivier Bourdonf71dd082017-01-25 16:02:51 +010072{%- if pillar.opencontrail is defined and tmp_server.plugin == "contrail" %}
marcoa4428a32016-06-10 11:50:16 +020073
74{%- from "opencontrail/map.jinja" import config with context %}
75
76{%- set backend = {'engine': tmp_server.plugin, 'host': config.discovery.host, 'token': config.identity.token, 'user': config.identity.user, 'password': config.identity.password, 'tenant': config.identity.tenant} %}
77{%- set tmp = server.update({'backend': backend}) %}
78
79{%- endif %}
80
81{%- endif %}
82
Petr Michalec61f7ab22016-11-29 16:29:09 +010083{%- endif %}