ProvisionerAPIV11 provides v10 of the provisioner facade. It relies on agent-set origin when calling SetHostMachineNetworkConfig.

Hierarchy

  • default

Implements

Constructors

Properties

NAME: string = "Provisioner"
VERSION: number = 11
_transport: Transport
NAME: string = "Provisioner"
VERSION: number = 11

Methods

  • APIAddresses returns the list of addresses used to connect to the API.

    Parameters

    • params: any

    Returns Promise<StringsResult>

  • APIHostPorts returns the API server addresses.

    Parameters

    • params: any

    Returns Promise<APIHostPortsResult>

  • AvailabilityZone returns a provider-specific availability zone for each given machine entity

    Parameters

    Returns Promise<StringResults>

  • CACert returns the certificate used to validate the state connection.

    Parameters

    • params: any

    Returns Promise<BytesResult>

  • ContainerConfig returns information from the model config that is needed for container cloud-init.

    Parameters

    • params: any

    Returns Promise<ContainerConfig>

  • ControllerConfig returns the controller's configuration.

    Parameters

    • params: any

    Returns Promise<ControllerConfigResult>

  • DistributionGroup returns, for each given machine entity, a slice of instance.Ids that belong to the same distribution group as that machine. This information may be used to distribute instances for high availability.

    Parameters

    Returns Promise<DistributionGroupResults>

  • DistributionGroupByMachineId returns, for each given machine entity, a slice of machine.Ids that belong to the same distribution group as that machine. This information may be used to distribute instances for high availability.

    Parameters

    Returns Promise<StringsResults>

  • EnsureDead calls EnsureDead on each given entity from state. It will fail if the entity is not present. If it's Alive, nothing will happen (see state/EnsureDead() for units or machines).

    Parameters

    Returns Promise<ErrorResults>

  • GetContainerProfileInfo returns information to configure a lxd profile(s) for a container based on the charms deployed to the container. It accepts container tags as arguments. Unlike machineLXDProfileNames which has the environ write the lxd profiles and returns the names of profiles already written.

    Parameters

    Returns Promise<ContainerProfileResults>

  • HostChangesForContainers returns the set of changes that need to be done to the host machine to prepare it for the containers to be created. Pass in a list of the containers that you want the changes for.

    Parameters

    Returns Promise<HostNetworkChangeResults>

  • InstanceId returns the provider specific instance id for each given machine or an CodeNotProvisioned error, if not set.

    Parameters

    Returns Promise<StringResults>

  • InstanceStatus returns the instance status for each given entity. Only machine tags are accepted.

    Parameters

    Returns Promise<StatusResults>

  • KeepInstance returns the keep-instance value for each given machine entity.

    Parameters

    Returns Promise<BoolResults>

  • Life returns the life status of every supplied entity, where available.

    Parameters

    Returns Promise<LifeResults>

  • MachinesWithTransientErrors returns status data for machines with provisioning errors which are transient.

    Parameters

    • params: any

    Returns Promise<StatusResults>

  • MarkMachinesForRemoval indicates that the specified machines are ready to have any provider-level resources cleaned up and then be removed.

    Parameters

    Returns Promise<ErrorResults>

  • ModelConfig returns the current model's configuration.

    Parameters

    • params: any

    Returns Promise<ModelConfigResult>

  • ModelUUID returns the model UUID that the current connection is for.

    Parameters

    • params: any

    Returns Promise<StringResult>

  • PrepareContainerInterfaceInfo allocates an address and returns information to configure networking for a container. It accepts container tags as arguments.

    Parameters

    Returns Promise<MachineNetworkConfigResults>

  • ProvisioningInfo returns the provisioning information for each given machine entity. It supports all positive space constraints.

    Parameters

    Returns Promise<ProvisioningInfoResults>

  • ReleaseContainerAddresses finds addresses allocated to a container and marks them as Dead, to be released and removed. It accepts container tags as arguments.

    Parameters

    Returns Promise<ErrorResults>

  • Remove removes every given entity from state, calling EnsureDead first, then Remove. It will fail if the entity is not present.

    Parameters

    Returns Promise<ErrorResults>

  • SetInstanceInfo sets the provider specific machine id, nonce, metadata and network info for each given machine. Once set, the instance id cannot be changed.

    Parameters

    Returns Promise<ErrorResults>

  • SetInstanceStatus updates the instance status for each given entity. Only machine tags are accepted.

    Parameters

    Returns Promise<ErrorResults>

  • SetModificationStatus updates the instance whilst changes are occurring. This is different from SetStatus and SetInstanceStatus, by the fact this holds information about the ongoing changes that are happening to instances. Consider LXD Profile updates that can modify a instance, but may not cause the instance to be placed into a error state. This modification status serves the purpose of highlighting that to the operator. Only machine tags are accepted.

    Parameters

    Returns Promise<ErrorResults>

  • SetObservedNetworkConfig reads the network config for the machine identified by the input args. This config is merged with the new network config supplied in the same args and updated if it has changed.

    Parameters

    Returns Promise<any>

  • SetStatus sets the status of each given entity.

    Parameters

    Returns Promise<ErrorResults>

  • Status returns the status of each given entity.

    Parameters

    Returns Promise<StatusResults>

  • Tools finds the tools necessary for the given agents.

    Parameters

    Returns Promise<ToolsResults>

  • WatchAPIHostPorts watches the API server addresses.

    Parameters

    • params: any

    Returns Promise<NotifyWatchResult>

  • WatchForModelConfigChanges returns a NotifyWatcher that observes changes to the model configuration. Note that although the NotifyWatchResult contains an Error field, it's not used because we are only returning a single watcher, so we use the regular error return.

    Parameters

    • params: any

    Returns Promise<NotifyWatchResult>

  • WatchMachineErrorRetry returns a NotifyWatcher that notifies when the provisioner should retry provisioning machines with transient errors.

    Parameters

    • params: any

    Returns Promise<NotifyWatchResult>

  • WatchModelMachineStartTimes watches the non-container machines in the model for changes to the Life or AgentStartTime fields and reports them as a batch.

    Parameters

    • params: any

    Returns Promise<StringsWatchResult>

  • WatchModelMachines returns a StringsWatcher that notifies of changes to the life cycles of the top level machines in the current model.

    Parameters

    • params: any

    Returns Promise<StringsWatchResult>

Generated using TypeDoc