Documentation ¶
Index ¶
- Variables
- func DetectSeriesAndHardwareCharacteristics(host string, cli manual.WinrmClientAPI) (hc instance.HardwareCharacteristics, series string, err error)
- func InitAdministratorUser(args *manual.ProvisionMachineArgs) error
- func ProvisionMachine(args manual.ProvisionMachineArgs) (machineId string, err error)
- func ProvisioningScript(icfg *instancecfg.InstanceConfig) (string, error)
Constants ¶
This section is empty.
Variables ¶
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.