blob: 98424fc6ca4f3bbd919504dbdfcc0d192ffa3e11 [file] [log] [blame]
Matteo Scandolo60b640f2017-08-08 13:05:22 -07001
2# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16
David K. Bainbridge6f2cbe72016-08-19 15:48:07 -070017- name: Bridge Support is Present
18 apt:
19 name: bridge-utils
20 force: yes
21 tags: [prod]
22
23- name: Ensure Management Bridge
24 copy:
25 src: mgmtbr.cfg
26 dest: /etc/network/interfaces.d/mgmtbr.cfg
27 owner: root
28 group: root
29 mode: 0644
30
31- name: Ensure Management Bridge Up
32 command: ifup mgmtbr
David K. Bainbridgef5ffb0d2016-11-04 16:14:54 +010033 changed_when: true
David K. Bainbridge6f2cbe72016-08-19 15:48:07 -070034
Andy Bavier0f07bb32017-01-17 10:20:26 -050035- name: Ensure fabric bridge
36 copy:
37 src: fabric.cfg
38 dest: /etc/network/interfaces.d/fabric.cfg
39 owner: root
40 group: root
41 mode: 0644
42
43- name: Ensure fabric bridge
44 command: ifup {{ item }}
45 changed_when: true
46 with_items:
47 - fabric
48 - fabric:0
49 - fabric:1