libvirt

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultIfName is the default interface name for libvirt.
	DefaultIfName = "osbr0"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Libvirt

type Libvirt struct {
	URI         string `json:"tectonic_libvirt_uri,omitempty" yaml:"uri"`
	Image       string `json:"tectonic_os_image,omitempty" yaml:"image"`
	Network     `json:",inline" yaml:"network"`
	MasterIPs   []string `json:"tectonic_libvirt_master_ips,omitempty" yaml:"masterIPs"`
	WorkerIPs   []string `json:"tectonic_libvirt_worker_ips,omitempty" yaml:"workerIPs"`
	BootstrapIP string   `json:"tectonic_libvirt_bootstrap_ip,omitempty" yaml:"bootstrapIP"`
}

Libvirt encompasses configuration specific to libvirt.

func (*Libvirt) TFVars

func (l *Libvirt) TFVars(masterCount int, workerCount int) error

TFVars fills in computed Terraform variables.

func (*Libvirt) UseCachedImage

func (libvirt *Libvirt) UseCachedImage() (err error)

UseCachedImage leaves non-file:// image URIs unalterered. Other URIs are retrieved with a local cache at $XDG_CACHE_HOME/openshift-install/libvirt 1. This allows you to use the same remote image URI multiple times without needing to worry about redundant downloads, although you will want to periodically blow away your cache.

type Network

type Network struct {
	Name    string `json:"tectonic_libvirt_network_name,omitempty" yaml:"name"`
	IfName  string `json:"tectonic_libvirt_network_if,omitempty" yaml:"ifName"`
	IPRange string `json:"tectonic_libvirt_ip_range,omitempty" yaml:"ipRange"`
}

Network describes a libvirt network configuration.

Jump to

Keyboard shortcuts

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