blob: a459b74ff3f684b477c67d9e2ea62b75dcfbb5a3 [file] [log] [blame]
Mohammed Naser298f0272024-07-29 18:43:25 -04001# Copyright (c) 2022 VEXXHOST, Inc.
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may
4# not use this file except in compliance with the License. You may obtain
5# a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations
13# under the License.
14
15- name: Create bare metal network
16 run_once: true
17 openstack.cloud.network:
18 cloud: atmosphere
19 # Network settings
20 name: "{{ ironic_bare_metal_network_name }}"
21 provider_physical_network: "{{ ironic_bare_metal_network_provider_physical_network }}"
22 provider_network_type: "{{ ironic_bare_metal_network_provider_network_type }}"
23 provider_segmentation_id: "{{ ironic_bare_metal_network_provider_segmentation_id }}"
24 register: ironic_bare_metal_network
25
26- name: Create bare metal network subnet
27 run_once: true
Mohammed Naser8ccabb62025-02-05 13:20:09 -050028 vexxhost.atmosphere.subnet:
Mohammed Naser298f0272024-07-29 18:43:25 -040029 cloud: atmosphere
30 # Subnet settings
31 network_name: "{{ ironic_bare_metal_subnet_name }}"
32 name: "{{ ironic_bare_metal_subnet_name }}"
33 cidr: "{{ ironic_bare_metal_subnet_cidr }}"
34 allocation_pool_start: "{{ ironic_bare_metal_subnet_allocation_pool_start | default(omit) }}"
35 allocation_pool_end: "{{ ironic_bare_metal_subnet_allocation_pool_end | default(omit) }}"