Zack Williams | e695dea | 2020-11-19 17:17:40 -0700 | [diff] [blame] | 1 | --- |
| 2 | # netprep molecule/default/verify.yml |
| 3 | # |
| 4 | # SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org> |
| 5 | # SPDX-License-Identifier: Apache-2.0 |
| 6 | |
| 7 | - name: Converge |
| 8 | hosts: all |
Wei-Yu Chen | 6509d74 | 2021-07-29 21:14:51 +0800 | [diff] [blame] | 9 | become: true |
| 10 | pre_tasks: |
| 11 | - name: Create an additional Docker network |
| 12 | docker_network: |
| 13 | name: limited_network |
| 14 | driver_options: |
| 15 | com.docker.network.bridge.name: docker1 |
| 16 | ipam_options: |
| 17 | subnet: '172.27.0.0/16' |
| 18 | gateway: 172.27.0.1 |
Zack Williams | e695dea | 2020-11-19 17:17:40 -0700 | [diff] [blame] | 19 | tasks: |
| 20 | - name: "Include netprep" |
| 21 | include_role: |
| 22 | name: "netprep" |
Wei-Yu Chen | 6509d74 | 2021-07-29 21:14:51 +0800 | [diff] [blame] | 23 | vars: |
| 24 | netprep_router: true |
| 25 | netprep_netplan: |
| 26 | ethernets: |
| 27 | eth0: |
| 28 | dhcp4: true |
| 29 | netprep_nftables: |
| 30 | internal_if: docker0 |
| 31 | external_if: docker1 |
| 32 | services: |
| 33 | - name: nginx8080 |
| 34 | port: 8080 |
| 35 | protocol: tcp |
| 36 | allow_subnets: |
| 37 | - 172.17.0.0/16 |