First, download the <project_name>-rc.sh file from your Openstack deployment. Then pass it into the generate_config.sh script:
$ ./generate_config.sh path/to/some-rc.sh
Generating config from path/to/some-rc.sh...
Please enter your OpenStack Password for project <project name> as user <username>:
Generated Openstack provider config config.yaml!# varsmain_subnet: 10.10.0.0/24router_ip: 10.10.0.254host_ip: 10.10.0.1# blueprintversion: "1.0"# Host 1host1:
resource: openstack.v1.hostconfig:
hostname: host1image: ubuntu22.04flavor: l2-microdisk_size: 10240networks:
network1:
dhcp: falseip: "{{ .host_ip }}"# Host 2host2:
resource: openstack.v1.hostconfig:
hostname: host2image: ubuntu22.04flavor: l2-microdisk_size: 10240networks:
network1:
dhcp: true# Network 1network1:
resource: openstack.v1.networkconfig:
subnet: "{{ .main_subnet }}"gateway: "{{ .router_ip }}"dhcp:
- start: 10.10.0.10end: 10.10.0.100# Router 1router1:
resource: openstack.v1.routerconfig:
external_network: MAIN NETnetworks:
network1:
dhcp: falseip: "{{ .router_ip }}"