provider-openstack

command module
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

README

Openstack CBLE Provider

Generating Provider Config

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!

Example Blueprint

# vars

main_subnet: 10.10.0.0/24
router_ip: 10.10.0.254
host_ip: 10.10.0.1
# blueprint

version: "1.0"

# Host 1
host1:
  resource: openstack.v1.host
  config:
    hostname: host1
    image: ubuntu22.04
    flavor: l2-micro
    disk_size: 10240
    networks:
      network1:
        dhcp: false
        ip: "{{ .host_ip }}"
# Host 2
host2:
  resource: openstack.v1.host
  config:
    hostname: host2
    image: ubuntu22.04
    flavor: l2-micro
    disk_size: 10240
    networks:
      network1:
        dhcp: true
# Network 1
network1:
  resource: openstack.v1.network
  config:
    subnet: "{{ .main_subnet }}"
    gateway: "{{ .router_ip }}"
    dhcp:
      - start: 10.10.0.10
        end: 10.10.0.100
# Router 1
router1:
  resource: openstack.v1.router
  config:
    external_network: MAIN NET
    networks:
      network1:
        dhcp: false
        ip: "{{ .router_ip }}"

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL