Matteo Scandolo | 60b640f | 2017-08-08 13:05:22 -0700 | [diff] [blame] | 1 | |
| 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. Bainbridge | 6f2cbe7 | 2016-08-19 15:48:07 -0700 | [diff] [blame] | 17 | - 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. Bainbridge | f5ffb0d | 2016-11-04 16:14:54 +0100 | [diff] [blame] | 33 | changed_when: true |
David K. Bainbridge | 6f2cbe7 | 2016-08-19 15:48:07 -0700 | [diff] [blame] | 34 | |
Andy Bavier | 0f07bb3 | 2017-01-17 10:20:26 -0500 | [diff] [blame] | 35 | - 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 |