boshinit

package
v0.0.5-1e8c57 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAWSBosh

func NewAWSBosh(cfg BoshInitConfig) *enaml.DeploymentManifest

func NewAWSCloudProvider

func NewAWSCloudProvider(awsElasticIP, awsPEMFilePath string, awsProperty aws_cpi.Aws, ntpProperty []string) enaml.CloudProvider

func NewAzureBosh

func NewAzureBosh(cfg BoshInitConfig) *enaml.DeploymentManifest

func NewAzureCloudProvider

func NewAzureCloudProvider(myazure cpi.Azure, cpiTemplate enaml.Template, pubip, keypath string, ntpProperty []string) enaml.CloudProvider

func NewAzureProperty

func NewAzureProperty(azureenv, subid, tenantid, clientid, clientsecret, resourcegroup, storageaccount, securitygroup, sshuser, sshkey string) cpi.Azure

func NewBoshDeploymentBase

func NewBoshDeploymentBase(cfg BoshInitConfig, cpiname string, ntpProperty []string) *enaml.DeploymentManifest

func NewHealthMonitor

func NewHealthMonitor(resurrectorEnabled bool) health_monitor.Hm

func NewNTP

func NewNTP(ntp ...string) []string

func NewNats

func NewNats(user, pass string) director.Nats

func NewVSphereBosh

func NewVSphereBosh(cfg BoshInitConfig) *enaml.DeploymentManifest

NewVSphereBosh creates a new enaml deployment manifest for vSphere

func NewVSphereCloudProvider

func NewVSphereCloudProvider(directorIP string, vcenterProperty vsphere_cpi.Vcenter, ntpProperty []string) enaml.CloudProvider

NewVSphereCloudProvider creates a new cloud_provider instance for a vSphere bosh deployment

Types

type Ar

type Ar aws_cpi.Registry

type BoshInitConfig

type BoshInitConfig struct {
	Name                              string
	BoshReleaseVersion                string
	BoshReleaseSHA                    string
	BoshPrivateIP                     string
	BoshCPIReleaseVersion             string
	BoshCPIReleaseSHA                 string
	GoAgentVersion                    string
	GoAgentSHA                        string
	BoshAvailabilityZone              string
	BoshInstanceSize                  string
	BoshDirectorName                  string
	BoshCIDR                          string
	BoshGateway                       string
	BoshDNS                           []string
	AWSSubnet                         string
	AWSElasticIP                      string
	AWSPEMFilePath                    string
	AWSAccessKeyID                    string
	AWSSecretKey                      string
	AWSRegion                         string
	AWSSecurityGroups                 []string
	AWSKeyName                        string
	AzurePublicIP                     string
	AzureVnet                         string
	AzureSubnet                       string
	AzureSubscriptionID               string
	AzureTenantID                     string
	AzureClientID                     string
	AzureClientSecret                 string
	AzureResourceGroup                string
	AzureStorageAccount               string
	AzureDefaultSecurityGroup         string
	AzureSSHPubKey                    string
	AzureSSHUser                      string
	AzureEnvironment                  string
	AzurePrivateKeyPath               string
	VSphereAddress                    string
	VSphereUser                       string
	VSpherePassword                   string
	VSphereDatacenterName             string
	VSphereVMFolder                   string
	VSphereTemplateFolder             string
	VSphereDatastorePattern           string
	VSpherePersistentDatastorePattern string
	VSphereDiskPath                   string
	VSphereClusters                   []string
	VSphereNetworks                   []Network
}

type DirectorProperty

type DirectorProperty struct {
	director.Director `yaml:",inline"`
	Address           string
}

func NewDirectorProperty

func NewDirectorProperty(name, cpijob string, db *director.Db) DirectorProperty

type Network

type Network struct {
	Name    string
	Range   string
	Gateway string
	DNS     []string
}

type PgSql

type PgSql struct {
	User     string
	Host     string
	Password string
	Database string
	Adapter  string
}

func NewPostgres

func NewPostgres(user, host, pass, database, adapter string) (psql *PgSql)

func (*PgSql) GetDirectorDB

func (s *PgSql) GetDirectorDB() *director.Db

func (*PgSql) GetPostgresDB

func (s *PgSql) GetPostgresDB() postgres.Postgres

func (*PgSql) GetRegistryDB

func (s *PgSql) GetRegistryDB() *registry.Db

type Postgres

type Postgres interface {
	GetDirectorDB() *director.Db
	GetRegistryDB() *registry.Db
	GetPostgresDB() postgres.Postgres
}

type RegistryProperty

type RegistryProperty struct {
	Rr      `yaml:",inline"`
	Ar      `yaml:",inline"`
	Address string `yaml:"address"`
}

func GetRegistry

func GetRegistry(cfg BoshInitConfig, postgresDB *PgSql) RegistryProperty

type Rr

type Rr registry.Registry

type VSphereDatacenter

type VSphereDatacenter struct {
	Name                       string   `yaml:"name"`                         // [String, required]: vSphere datacenter name.
	VMFolder                   string   `yaml:"vm_folder"`                    // [String, required]: The folder to create PCF VMs in.
	TemplateFolder             string   `yaml:"template_folder"`              // [String, required]: The folder to store stemcells in.
	DatastorePattern           string   `yaml:"datastore_pattern"`            // [String, required]: The pattern to the vSphere datastore.
	PersistentDatastorePattern string   `yaml:"persistent_datastore_pattern"` // [String, required]: The pattern to the vSphere datastore for persistent disks.
	DiskPath                   string   `yaml:"disk_path"`                    // [String, required]: The disk path.
	Clusters                   []string `yaml:"clusters"`                     // [[]String], required]: The vSphere cluster(s).
}

type VSphereDatacenters

type VSphereDatacenters []VSphereDatacenter

type VSpherecloudpropertiesNetwork

type VSpherecloudpropertiesNetwork struct {
	Name string `yaml:"name,omitempty"` // [String, required]: vSphere network name.
}

type VSpherecloudpropertiesResourcePool

type VSpherecloudpropertiesResourcePool struct {
	CPU  int `yaml:"cpu,omitempty"`  // [Integer, required]: Number of CPUs.
	RAM  int `yaml:"ram,omitempty"`  // [Integer, required]: Specified the amount of RAM in megabytes.
	Disk int `yaml:"disk,omitempty"` // [Integer, required]: Specifies the disk size in megabytes.
}

Directories

Path Synopsis
enaml-gen
cpi

Jump to

Keyboard shortcuts

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