Skip to content

Commit

Permalink
Add Swift nodeset and service
Browse files Browse the repository at this point in the history
  • Loading branch information
cschwede committed Feb 7, 2024
1 parent 0b4aeec commit f57480e
Show file tree
Hide file tree
Showing 2 changed files with 136 additions and 0 deletions.
124 changes: 124 additions & 0 deletions config/samples/dataplane_v1beta1_openstackdataplanenodeset_swift.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
apiVersion: dataplane.openstack.org/v1beta1
kind: OpenStackDataPlaneNodeSet
metadata:
name: openstack-edpm
namespace: openstack
spec:
networkAttachments:
- ctlplane
- storage
nodeTemplate:
ansible:
ansiblePort: 22
ansibleUser: cloud-admin
ansibleVars:
edpm_swift_disks:
- device: /dev/vdb
path: /srv/node/vdb
ctlplane_dns_nameservers:
- 192.168.122.1
ctlplane_gateway_ip: 192.168.122.1
ctlplane_host_routes:
- ip_netmask: 0.0.0.0/0
next_hop: 192.168.122.1
ctlplane_mtu: 1500
ctlplane_cidr: 24
dns_search_domains: []
timesync_ntp_servers:
- hostname: pool.ntp.org
edpm_network_config_hide_sensitive_logs: false
edpm_network_config_template: |
---
{% set mtu_list = [ctlplane_mtu] %}
{% for network in role_networks %}
{{ mtu_list.append(lookup('vars', networks_lower[network] ~ '_mtu')) }}
{%- endfor %}
{% set min_viable_mtu = mtu_list | max %}
network_config:
- type: ovs_bridge
name: {{ neutron_physical_bridge_name }}
mtu: {{ min_viable_mtu }}
use_dhcp: false
dns_servers: {{ ctlplane_dns_nameservers }}
domain: {{ dns_search_domains }}
addresses:
- ip_netmask: {{ ctlplane_ip }}/{{ ctlplane_cidr }}
routes: {{ ctlplane_host_routes }}
members:
- type: interface
name: nic1
mtu: {{ min_viable_mtu }}
# force the MAC address of the bridge to this interface
primary: true
{% for network in role_networks %}
- type: vlan
mtu: {{ lookup('vars', networks_lower[network] ~ '_mtu') }}
vlan_id: {{ lookup('vars', networks_lower[network] ~ '_vlan_id') }}
addresses:
- ip_netmask:
{{ lookup('vars', networks_lower[network] ~ '_ip') }}/{{ lookup('vars', networks_lower[network] ~ '_cidr') }}
routes: {{ lookup('vars', networks_lower[network] ~ '_host_routes') }}
{% endfor %}
edpm_nodes_validation_validate_controllers_icmp: false
edpm_nodes_validation_validate_gateway_icmp: false
edpm_selinux_mode: enforcing
edpm_sshd_allowed_ranges:
- 192.168.122.0/24
edpm_sshd_configure_firewall: true
enable_debug: false
external_cidr: "24"
external_host_routes: []
external_mtu: 1500
external_vlan_id: 44
gather_facts: false
internalapi_cidr: "24"
internalapi_host_routes: []
internalapi_mtu: 1500
internalapi_vlan_id: 20
networks_lower:
external: external
internalapi: internalapi
storage: storage
tenant: tenant
neutron_physical_bridge_name: br-ex
neutron_public_interface_name: eth0
role_networks:
- internalapi
- storage
- tenant
storage_cidr: "24"
storage_host_routes: []
storage_vlan_id: 21
storage_mtu: 9000
tenant_cidr: "24"
tenant_host_routes: []
tenant_mtu: 1500
tenant_vlan_id: 22
ansibleSSHPrivateKeySecret: dataplane-ansible-ssh-private-key-secret
managementNetwork: ctlplane
nodes:
edpm-compute-0:
ansible:
ansibleHost: 192.168.122.100
hostName: edpm-compute-0
networks:
- defaultRoute: true
fixedIP: 192.168.122.100
name: ctlplane
subnetName: subnet1
- name: internalapi
subnetName: subnet1
- name: storage
subnetName: subnet1
- name: tenant
subnetName: subnet1
preProvisioned: true
services:
- bootstrap
- configure-network
- validate-network
- install-os
- configure-os
- run-os
- install-certs
- swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: dataplane.openstack.org/v1beta1
kind: OpenStackDataPlaneService
metadata:
name: swift
spec:
label: swift
playbook: osp.edpm.swift
secrets:
- swift-conf
configMaps:
- swift-storage-config-data
- swift-ring-files

0 comments on commit f57480e

Please sign in to comment.