This repository has been archived by the owner on Jun 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Fabricio Aguiar <[email protected]>
- Loading branch information
Showing
9 changed files
with
593 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bash | ||
set -ex | ||
|
||
COUNT=0 | ||
for sample in */assemblies/samples/* ; do | ||
FILENAME=$(basename $sample) | ||
sed '0,/----/d' $sample | sed -e '/----/,$d' > tests/kuttl/tests/docs-test/0${COUNT}-${FILENAME/adoc/yaml} | ||
cat << __EOF__ >> tests/kuttl/tests/docs-test/0${COUNT}-${FILENAME/adoc/yaml} | ||
--- | ||
apiVersion: network.openstack.org/v1beta1 | ||
kind: DNSMasq | ||
metadata: | ||
name: dnsmasq | ||
spec: | ||
replicas: 1 | ||
options: | ||
- key: server | ||
values: | ||
- 192.168.122.1 | ||
debug: | ||
service: false | ||
__EOF__ | ||
COUNT=$((COUNT + 1)) | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,149 @@ | ||
apiVersion: dataplane.openstack.org/v1beta1 | ||
kind: OpenStackDataPlaneNodeSet | ||
metadata: | ||
name: openstack-edpm-ipam | ||
spec: | ||
env: | ||
- name: ANSIBLE_FORCE_COLOR | ||
value: "True" | ||
baremetalSetTemplate: | ||
bmhLabelSelector: | ||
app: openstack | ||
ctlplaneInterface: enp1s0 | ||
cloudUserName: cloud-admin | ||
nodes: | ||
edpm-compute-0: | ||
hostName: edpm-compute-0 | ||
nodeTemplate: | ||
ansible: | ||
ansiblePort: 22 | ||
ansibleUser: cloud-admin | ||
ansibleVars: | ||
timesync_ntp_servers: | ||
- hostname: pool.ntp.org | ||
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_subnet_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_network_config_hide_sensitive_logs: false | ||
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 | ||
gather_facts: false | ||
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 | ||
service_net_map: | ||
nova_api_network: internalapi | ||
nova_libvirt_network: internalapi | ||
ansibleSSHPrivateKeySecret: dataplane-ansible-ssh-private-key-secret | ||
networks: | ||
- name: CtlPlane | ||
subnetName: subnet1 | ||
defaultRoute: true | ||
- name: InternalApi | ||
subnetName: subnet1 | ||
- name: Storage | ||
subnetName: subnet1 | ||
- name: Tenant | ||
subnetName: subnet1 | ||
managementNetwork: ctlplane | ||
services: | ||
- bootstrap | ||
- download-cache | ||
- configure-network | ||
- validate-network | ||
- install-os | ||
- configure-os | ||
- ssh-known-hosts | ||
- run-os | ||
- reboot-os | ||
- install-certs | ||
- ovn | ||
- neutron-metadata | ||
- libvirt | ||
- nova | ||
- telemetry | ||
status: | ||
allHostnames: | ||
edpm-compute-0: | ||
ctlplane: edpm-compute-0.ctlplane.example.com | ||
internalapi: edpm-compute-0.internalapi.example.com | ||
storage: edpm-compute-0.storage.example.com | ||
tenant: edpm-compute-0.tenant.example.com | ||
allIPs: | ||
edpm-compute-0: | ||
ctlplane: 192.168.122.100 | ||
internalapi: 172.17.0.100 | ||
storage: 172.18.0.100 | ||
tenant: 172.19.0.100 | ||
ctlplaneSearchDomain: ctlplane.example.com | ||
conditions: | ||
- message: Deployment not started | ||
reason: Requested | ||
status: "False" | ||
type: Ready | ||
- message: Deployment not started | ||
reason: Requested | ||
status: "False" | ||
type: DeploymentReady | ||
- message: Input data complete | ||
reason: Ready | ||
status: "True" | ||
type: InputReady | ||
- message: NodeSetDNSDataReady ready | ||
reason: Ready | ||
status: "True" | ||
type: NodeSetDNSDataReady | ||
- message: NodeSetIPReservationReady ready | ||
reason: Ready | ||
status: "True" | ||
type: NodeSetIPReservationReady | ||
- message: ServiceAccount created | ||
reason: Ready | ||
status: "True" | ||
type: ServiceAccountReady | ||
- message: Setup complete | ||
reason: Ready | ||
status: "True" | ||
type: SetupReady |
Oops, something went wrong.