cloudconfig

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

README

How to work with cpis

$ enaml generate-jobs https://bosh.io/d/github.com/cloudfoundry-incubator/bosh-aws-cpi-release?v=51
Could not find release in local cache. Downloading now.
27874562/27874562
completed generating release job structs for  https://bosh.io/d/github.com/cloudfoundry-incubator/bosh-aws-cpi-release?v=51

$ enaml generate-jobs https://bosh.io/d/github.com/cloudfoundry-incubator/bosh-openstack-cpi-release?v=24
Could not find release in local cache. Downloading now.
32781885/32781885
completed generating release job structs for  https://bosh.io/d/github.com/cloudfoundry-incubator/bosh-openstack-cpi-release?v=24

$ enaml generate-jobs https://bosh.io/d/github.com/cloudfoundry-incubator/bosh-vsphere-cpi-release?v=20
Could not find release in local cache. Downloading now.
29587401/29587401
completed generating release job structs for  https://bosh.io/d/github.com/cloudfoundry-incubator/bosh-vsphere-cpi-release?v=20

$ ls enaml-gen/*
enaml-gen/aws_cpi:
agent.go             aws.go               awscpi.go            blobstore.go         connectionoptions.go env.go               nats.go              registry.go          stemcell.go

enaml-gen/openstack_cpi:
agent.go        blobstore.go    env.go          nats.go         openstack.go    openstackcpi.go registry.go

enaml-gen/vsphere_cpi:
agent.go             blobstore.go         connectionoptions.go env.go               nats.go              vcenter.go           vspherecpi.go

Documentation

Index

Constants

View Source
const (
	DefaultDiskType         = "gp2"
	DiskSmallName           = "small"
	DiskMediumName          = "medium"
	DiskLargeName           = "large"
	SmallVMName             = "small"
	SmallVMSize             = "t2.micro"
	MediumVMName            = "medium"
	MediumVMSize            = "m3.medium"
	MediumDiskType          = DefaultDiskType
	MediumEphemeralDiskSize = 30000
	SmallDiskType           = DefaultDiskType
	SmallEphemeralDiskSize  = 3000
	PrivateNetworkName      = "private"
	VIPNetworkName          = "vip"
)

Variables

View Source
var (
	Region                string
	DefaultSecurityGroups []string
)

Functions

func AddAZs

func AddAZs(cfg *enaml.CloudConfigManifest, subnets []SubnetBucket)

func AddCompilation

func AddCompilation(cfg *enaml.CloudConfigManifest, az string, vmtype string, network string)

func AddDisk

func AddDisk(cfg *enaml.CloudConfigManifest)

func AddNetwork

func AddNetwork(cfg *enaml.CloudConfigManifest, subnets []SubnetBucket)

func AddVMTypes

func AddVMTypes(cfg *enaml.CloudConfigManifest)

func NewAWSCloudConfig

func NewAWSCloudConfig(region string, securityGroupList []string, subnets []SubnetBucket) (awsCloudConfig *enaml.CloudConfigManifest)

func NewVMCloudProperty

func NewVMCloudProperty(instanceType, diskType string, diskSize int) awscloudproperties.VMType

Types

type SubnetBucket

type SubnetBucket struct {
	BoshAZName       string
	Cidr             string
	Gateway          string
	DNS              []string
	AWSAZName        string
	AWSSubnetName    string
	BoshReserveRange []string
}

Directories

Path Synopsis
enaml-gen

Jump to

Keyboard shortcuts

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