winrmprovisioner

package
v0.0.0-...-b0bff92 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RunProvisionScript = runProvisionScript

RunProvisionScript exported for testing purposes

Functions

func DetectSeriesAndHardwareCharacteristics

func DetectSeriesAndHardwareCharacteristics(host string, cli manual.WinrmClientAPI) (hc instance.HardwareCharacteristics, series string, err error)

DetectSeriesAndHardwareCharacteristics detects the windows OS series and hardware characteristics of the remote machine by connecting to the machine and executing a bash script.

func InitAdministratorUser

func InitAdministratorUser(args *manual.ProvisionMachineArgs) error

InitAdministratorUser will initially attempt to login as the Administrator user using the secure client only if this is false then this will make a new attempt with the unsecure http client.

func ProvisionMachine

func ProvisionMachine(args manual.ProvisionMachineArgs) (machineId string, err error)

ProvisionMachine returns a new machineId and nil if the provision process is done successfully The function will manual provision a windows machine using as comunication protocol WinRM(windows remote manager)

func ProvisioningScript

func ProvisioningScript(icfg *instancecfg.InstanceConfig) (string, error)

ProvisioningScript generates a powershell script that can be executed on a remote host to carry out the cloud-init configuration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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