Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bootstrap ¶
func Bootstrap(ctx environs.BootstrapContext, environ environs.Environ, args BootstrapParams) error
Bootstrap bootstraps the given environment. The supplied constraints are used to provision the instance, and are also set within the bootstrapped environment.
Types ¶
type BootstrapParams ¶
type BootstrapParams struct { // ModelConstraints are merged with the bootstrap constraints // to choose the initial instance, and will be stored in the // initial models' states. ModelConstraints constraints.Value // BootstrapConstraints are used to choose the initial instance. // BootstrapConstraints does not affect the model constraints. BootstrapConstraints constraints.Value // BootstrapSeries, if specified, is the series to use for the // initial bootstrap machine. BootstrapSeries string // BootstrapImage, if specified, is the image ID to use for the // initial bootstrap machine. BootstrapImage string // HostedModelConfig is the set of config attributes to be overlaid // on the controller config to construct the initial hosted model // config. HostedModelConfig map[string]interface{} // Placement, if non-empty, holds an environment-specific placement // directive used to choose the initial instance. Placement string // UploadTools reports whether we should upload the local tools and // override the environment's specified agent-version. UploadTools bool // MetadataDir is an optional path to a local directory containing // tools and/or image metadata. MetadataDir string // AgentVersion, if set, determines the exact tools version that // will be used to start the Juju agents. AgentVersion *version.Number // GUIDataSourceBaseURL holds the simplestreams data source base URL // used to retrieve the Juju GUI archive installed in the controller. // If not set, the Juju GUI is not installed from simplestreams. GUIDataSourceBaseURL string }
BootstrapParams holds the parameters for bootstrapping an environment.
Click to show internal directories.
Click to hide internal directories.