cluster

package
v6.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetNodesResult

type GetNodesResult struct {
	// The CPU count for each node.
	CpuCounts []int `pulumi:"cpuCounts"`
	// The CPU utilization on each node.
	CpuUtilizations []float64 `pulumi:"cpuUtilizations"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The memory available on each node.
	MemoryAvailables []int `pulumi:"memoryAvailables"`
	// The memory used on each node.
	MemoryUseds []int `pulumi:"memoryUseds"`
	// The node names.
	Names []string `pulumi:"names"`
	// Whether a node is online.
	Onlines []bool `pulumi:"onlines"`
	// The SSL fingerprint for each node.
	SslFingerprints []string `pulumi:"sslFingerprints"`
	// The support level for each node.
	SupportLevels []string `pulumi:"supportLevels"`
	// The uptime in seconds for each node.
	Uptimes []int `pulumi:"uptimes"`
}

A collection of values returned by getNodes.

func GetNodes

func GetNodes(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetNodesResult, error)

Retrieves information about all available nodes.

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/muhlba91/pulumi-proxmoxve/sdk/v6/go/proxmoxve/Cluster"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Cluster.GetNodes(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

type GetNodesResultOutput

type GetNodesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getNodes.

func GetNodesOutput

func GetNodesOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetNodesResultOutput

func (GetNodesResultOutput) CpuCounts

The CPU count for each node.

func (GetNodesResultOutput) CpuUtilizations

func (o GetNodesResultOutput) CpuUtilizations() pulumi.Float64ArrayOutput

The CPU utilization on each node.

func (GetNodesResultOutput) ElementType

func (GetNodesResultOutput) ElementType() reflect.Type

func (GetNodesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetNodesResultOutput) MemoryAvailables

func (o GetNodesResultOutput) MemoryAvailables() pulumi.IntArrayOutput

The memory available on each node.

func (GetNodesResultOutput) MemoryUseds

func (o GetNodesResultOutput) MemoryUseds() pulumi.IntArrayOutput

The memory used on each node.

func (GetNodesResultOutput) Names

The node names.

func (GetNodesResultOutput) Onlines

Whether a node is online.

func (GetNodesResultOutput) SslFingerprints

func (o GetNodesResultOutput) SslFingerprints() pulumi.StringArrayOutput

The SSL fingerprint for each node.

func (GetNodesResultOutput) SupportLevels

func (o GetNodesResultOutput) SupportLevels() pulumi.StringArrayOutput

The support level for each node.

func (GetNodesResultOutput) ToGetNodesResultOutput

func (o GetNodesResultOutput) ToGetNodesResultOutput() GetNodesResultOutput

func (GetNodesResultOutput) ToGetNodesResultOutputWithContext

func (o GetNodesResultOutput) ToGetNodesResultOutputWithContext(ctx context.Context) GetNodesResultOutput

func (GetNodesResultOutput) Uptimes

The uptime in seconds for each node.

type Options

type Options struct {
	pulumi.CustomResourceState

	// Clone I/O bandwidth limit in KiB/s.
	BandwidthLimitClone pulumi.IntPtrOutput `pulumi:"bandwidthLimitClone"`
	// Default I/O bandwidth limit in KiB/s.
	BandwidthLimitDefault pulumi.IntPtrOutput `pulumi:"bandwidthLimitDefault"`
	// Migration I/O bandwidth limit in KiB/s.
	BandwidthLimitMigration pulumi.IntPtrOutput `pulumi:"bandwidthLimitMigration"`
	// Move I/O bandwidth limit in KiB/s.
	BandwidthLimitMove pulumi.IntPtrOutput `pulumi:"bandwidthLimitMove"`
	// Restore I/O bandwidth limit in KiB/s.
	BandwidthLimitRestore pulumi.IntPtrOutput `pulumi:"bandwidthLimitRestore"`
	// Select the default Console viewer. Must be `applet` | `vv`| `html5` | `xtermjs`. You can either use the builtin java applet (VNC; deprecated and maps to html5), an external virt-viewer compatible application (SPICE), an HTML5 based vnc viewer (noVNC), or an HTML5 based console client (xtermjs). If the selected viewer is not available (e.g. SPICE not activated for the VM), the fallback is noVNC.
	Console pulumi.StringPtrOutput `pulumi:"console"`
	// Cluster resource scheduling setting for HA. Must be `static` | `basic` (default is `basic`).
	CrsHa pulumi.StringOutput `pulumi:"crsHa"`
	// Cluster resource scheduling setting for HA rebalance on start.
	CrsHaRebalanceOnStart pulumi.BoolPtrOutput `pulumi:"crsHaRebalanceOnStart"`
	// Datacenter description. Shown in the web-interface datacenter notes panel. This is saved as comment inside the configuration file.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// email address to send notification from (default is root@$hostname).
	EmailFrom pulumi.StringPtrOutput `pulumi:"emailFrom"`
	// Cluster wide HA shutdown policy (). Must be `freeze` | `failover` | `migrate` | `conditional` (default is `conditional`).
	HaShutdownPolicy pulumi.StringPtrOutput `pulumi:"haShutdownPolicy"`
	// Specify external http proxy which is used for downloads (example: `http://username:password@host:port/`).
	HttpProxy pulumi.StringPtrOutput `pulumi:"httpProxy"`
	// Default keyboard layout for vnc server. Must be `de` | `de-ch` | `da` | `en-gb` | `en-us` | `es` | `fi` | `fr` | `fr-be` | `fr-ca` | `fr-ch` | `hu` | `is` | `it` | `ja` | `lt` | `mk` | `nl` | `no` | `pl` | `pt` | `pt-br` | `sv` | `sl` | `tr`.
	Keyboard pulumi.StringPtrOutput `pulumi:"keyboard"`
	// Default GUI language. Must be `ca` | `da` | `de` | `en` | `es` | `eu` | `fa` | `fr` | `he` | `it` | `ja` | `nb` | `nn` | `pl` | `pt_BR` | `ru` | `sl` | `sv` | `tr` | `zh_CN` | `zh_TW`.
	Language pulumi.StringPtrOutput `pulumi:"language"`
	// Prefix for autogenerated MAC addresses.
	MacPrefix pulumi.StringOutput `pulumi:"macPrefix"`
	// Defines how many workers (per node) are maximal started on actions like 'stopall VMs' or task from the ha-manager.
	MaxWorkers pulumi.IntPtrOutput `pulumi:"maxWorkers"`
	// Cluster wide migration network CIDR.
	MigrationCidr pulumi.StringPtrOutput `pulumi:"migrationCidr"`
	// Cluster wide migration type. Must be `secure` | `unsecure` (default is `secure`).
	MigrationType pulumi.StringPtrOutput `pulumi:"migrationType"`
}

Manages Proxmox VE Cluster Datacenter options.

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/muhlba91/pulumi-proxmoxve/sdk/v6/go/proxmoxve/Cluster"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Cluster.NewOptions(ctx, "options", &Cluster.OptionsArgs{
			BandwidthLimitDefault:   pulumi.Int(666666),
			BandwidthLimitMigration: pulumi.Int(555555),
			EmailFrom:               pulumi.String("ged@gont.earthsea"),
			Keyboard:                pulumi.String("pl"),
			Language:                pulumi.String("en"),
			MaxWorkers:              pulumi.Int(5),
			MigrationCidr:           pulumi.String("10.0.0.0/8"),
			MigrationType:           pulumi.String("secure"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

#!/usr/bin/env sh

Cluster options are global and can be imported using e.g.:

```sh $ pulumi import proxmoxve:Cluster/options:Options options cluster ```

func GetOptions

func GetOptions(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *OptionsState, opts ...pulumi.ResourceOption) (*Options, error)

GetOptions gets an existing Options resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewOptions

func NewOptions(ctx *pulumi.Context,
	name string, args *OptionsArgs, opts ...pulumi.ResourceOption) (*Options, error)

NewOptions registers a new resource with the given unique name, arguments, and options.

func (*Options) ElementType

func (*Options) ElementType() reflect.Type

func (*Options) ToOptionsOutput

func (i *Options) ToOptionsOutput() OptionsOutput

func (*Options) ToOptionsOutputWithContext

func (i *Options) ToOptionsOutputWithContext(ctx context.Context) OptionsOutput

type OptionsArgs

type OptionsArgs struct {
	// Clone I/O bandwidth limit in KiB/s.
	BandwidthLimitClone pulumi.IntPtrInput
	// Default I/O bandwidth limit in KiB/s.
	BandwidthLimitDefault pulumi.IntPtrInput
	// Migration I/O bandwidth limit in KiB/s.
	BandwidthLimitMigration pulumi.IntPtrInput
	// Move I/O bandwidth limit in KiB/s.
	BandwidthLimitMove pulumi.IntPtrInput
	// Restore I/O bandwidth limit in KiB/s.
	BandwidthLimitRestore pulumi.IntPtrInput
	// Select the default Console viewer. Must be `applet` | `vv`| `html5` | `xtermjs`. You can either use the builtin java applet (VNC; deprecated and maps to html5), an external virt-viewer compatible application (SPICE), an HTML5 based vnc viewer (noVNC), or an HTML5 based console client (xtermjs). If the selected viewer is not available (e.g. SPICE not activated for the VM), the fallback is noVNC.
	Console pulumi.StringPtrInput
	// Cluster resource scheduling setting for HA. Must be `static` | `basic` (default is `basic`).
	CrsHa pulumi.StringPtrInput
	// Cluster resource scheduling setting for HA rebalance on start.
	CrsHaRebalanceOnStart pulumi.BoolPtrInput
	// Datacenter description. Shown in the web-interface datacenter notes panel. This is saved as comment inside the configuration file.
	Description pulumi.StringPtrInput
	// email address to send notification from (default is root@$hostname).
	EmailFrom pulumi.StringPtrInput
	// Cluster wide HA shutdown policy (). Must be `freeze` | `failover` | `migrate` | `conditional` (default is `conditional`).
	HaShutdownPolicy pulumi.StringPtrInput
	// Specify external http proxy which is used for downloads (example: `http://username:password@host:port/`).
	HttpProxy pulumi.StringPtrInput
	// Default keyboard layout for vnc server. Must be `de` | `de-ch` | `da` | `en-gb` | `en-us` | `es` | `fi` | `fr` | `fr-be` | `fr-ca` | `fr-ch` | `hu` | `is` | `it` | `ja` | `lt` | `mk` | `nl` | `no` | `pl` | `pt` | `pt-br` | `sv` | `sl` | `tr`.
	Keyboard pulumi.StringPtrInput
	// Default GUI language. Must be `ca` | `da` | `de` | `en` | `es` | `eu` | `fa` | `fr` | `he` | `it` | `ja` | `nb` | `nn` | `pl` | `pt_BR` | `ru` | `sl` | `sv` | `tr` | `zh_CN` | `zh_TW`.
	Language pulumi.StringPtrInput
	// Prefix for autogenerated MAC addresses.
	MacPrefix pulumi.StringPtrInput
	// Defines how many workers (per node) are maximal started on actions like 'stopall VMs' or task from the ha-manager.
	MaxWorkers pulumi.IntPtrInput
	// Cluster wide migration network CIDR.
	MigrationCidr pulumi.StringPtrInput
	// Cluster wide migration type. Must be `secure` | `unsecure` (default is `secure`).
	MigrationType pulumi.StringPtrInput
}

The set of arguments for constructing a Options resource.

func (OptionsArgs) ElementType

func (OptionsArgs) ElementType() reflect.Type

type OptionsArray

type OptionsArray []OptionsInput

func (OptionsArray) ElementType

func (OptionsArray) ElementType() reflect.Type

func (OptionsArray) ToOptionsArrayOutput

func (i OptionsArray) ToOptionsArrayOutput() OptionsArrayOutput

func (OptionsArray) ToOptionsArrayOutputWithContext

func (i OptionsArray) ToOptionsArrayOutputWithContext(ctx context.Context) OptionsArrayOutput

type OptionsArrayInput

type OptionsArrayInput interface {
	pulumi.Input

	ToOptionsArrayOutput() OptionsArrayOutput
	ToOptionsArrayOutputWithContext(context.Context) OptionsArrayOutput
}

OptionsArrayInput is an input type that accepts OptionsArray and OptionsArrayOutput values. You can construct a concrete instance of `OptionsArrayInput` via:

OptionsArray{ OptionsArgs{...} }

type OptionsArrayOutput

type OptionsArrayOutput struct{ *pulumi.OutputState }

func (OptionsArrayOutput) ElementType

func (OptionsArrayOutput) ElementType() reflect.Type

func (OptionsArrayOutput) Index

func (OptionsArrayOutput) ToOptionsArrayOutput

func (o OptionsArrayOutput) ToOptionsArrayOutput() OptionsArrayOutput

func (OptionsArrayOutput) ToOptionsArrayOutputWithContext

func (o OptionsArrayOutput) ToOptionsArrayOutputWithContext(ctx context.Context) OptionsArrayOutput

type OptionsInput

type OptionsInput interface {
	pulumi.Input

	ToOptionsOutput() OptionsOutput
	ToOptionsOutputWithContext(ctx context.Context) OptionsOutput
}

type OptionsMap

type OptionsMap map[string]OptionsInput

func (OptionsMap) ElementType

func (OptionsMap) ElementType() reflect.Type

func (OptionsMap) ToOptionsMapOutput

func (i OptionsMap) ToOptionsMapOutput() OptionsMapOutput

func (OptionsMap) ToOptionsMapOutputWithContext

func (i OptionsMap) ToOptionsMapOutputWithContext(ctx context.Context) OptionsMapOutput

type OptionsMapInput

type OptionsMapInput interface {
	pulumi.Input

	ToOptionsMapOutput() OptionsMapOutput
	ToOptionsMapOutputWithContext(context.Context) OptionsMapOutput
}

OptionsMapInput is an input type that accepts OptionsMap and OptionsMapOutput values. You can construct a concrete instance of `OptionsMapInput` via:

OptionsMap{ "key": OptionsArgs{...} }

type OptionsMapOutput

type OptionsMapOutput struct{ *pulumi.OutputState }

func (OptionsMapOutput) ElementType

func (OptionsMapOutput) ElementType() reflect.Type

func (OptionsMapOutput) MapIndex

func (OptionsMapOutput) ToOptionsMapOutput

func (o OptionsMapOutput) ToOptionsMapOutput() OptionsMapOutput

func (OptionsMapOutput) ToOptionsMapOutputWithContext

func (o OptionsMapOutput) ToOptionsMapOutputWithContext(ctx context.Context) OptionsMapOutput

type OptionsOutput

type OptionsOutput struct{ *pulumi.OutputState }

func (OptionsOutput) BandwidthLimitClone

func (o OptionsOutput) BandwidthLimitClone() pulumi.IntPtrOutput

Clone I/O bandwidth limit in KiB/s.

func (OptionsOutput) BandwidthLimitDefault

func (o OptionsOutput) BandwidthLimitDefault() pulumi.IntPtrOutput

Default I/O bandwidth limit in KiB/s.

func (OptionsOutput) BandwidthLimitMigration

func (o OptionsOutput) BandwidthLimitMigration() pulumi.IntPtrOutput

Migration I/O bandwidth limit in KiB/s.

func (OptionsOutput) BandwidthLimitMove

func (o OptionsOutput) BandwidthLimitMove() pulumi.IntPtrOutput

Move I/O bandwidth limit in KiB/s.

func (OptionsOutput) BandwidthLimitRestore

func (o OptionsOutput) BandwidthLimitRestore() pulumi.IntPtrOutput

Restore I/O bandwidth limit in KiB/s.

func (OptionsOutput) Console

func (o OptionsOutput) Console() pulumi.StringPtrOutput

Select the default Console viewer. Must be `applet` | `vv`| `html5` | `xtermjs`. You can either use the builtin java applet (VNC; deprecated and maps to html5), an external virt-viewer compatible application (SPICE), an HTML5 based vnc viewer (noVNC), or an HTML5 based console client (xtermjs). If the selected viewer is not available (e.g. SPICE not activated for the VM), the fallback is noVNC.

func (OptionsOutput) CrsHa

func (o OptionsOutput) CrsHa() pulumi.StringOutput

Cluster resource scheduling setting for HA. Must be `static` | `basic` (default is `basic`).

func (OptionsOutput) CrsHaRebalanceOnStart

func (o OptionsOutput) CrsHaRebalanceOnStart() pulumi.BoolPtrOutput

Cluster resource scheduling setting for HA rebalance on start.

func (OptionsOutput) Description

func (o OptionsOutput) Description() pulumi.StringPtrOutput

Datacenter description. Shown in the web-interface datacenter notes panel. This is saved as comment inside the configuration file.

func (OptionsOutput) ElementType

func (OptionsOutput) ElementType() reflect.Type

func (OptionsOutput) EmailFrom

func (o OptionsOutput) EmailFrom() pulumi.StringPtrOutput

email address to send notification from (default is root@$hostname).

func (OptionsOutput) HaShutdownPolicy

func (o OptionsOutput) HaShutdownPolicy() pulumi.StringPtrOutput

Cluster wide HA shutdown policy (). Must be `freeze` | `failover` | `migrate` | `conditional` (default is `conditional`).

func (OptionsOutput) HttpProxy

func (o OptionsOutput) HttpProxy() pulumi.StringPtrOutput

Specify external http proxy which is used for downloads (example: `http://username:password@host:port/`).

func (OptionsOutput) Keyboard

func (o OptionsOutput) Keyboard() pulumi.StringPtrOutput

Default keyboard layout for vnc server. Must be `de` | `de-ch` | `da` | `en-gb` | `en-us` | `es` | `fi` | `fr` | `fr-be` | `fr-ca` | `fr-ch` | `hu` | `is` | `it` | `ja` | `lt` | `mk` | `nl` | `no` | `pl` | `pt` | `pt-br` | `sv` | `sl` | `tr`.

func (OptionsOutput) Language

func (o OptionsOutput) Language() pulumi.StringPtrOutput

Default GUI language. Must be `ca` | `da` | `de` | `en` | `es` | `eu` | `fa` | `fr` | `he` | `it` | `ja` | `nb` | `nn` | `pl` | `pt_BR` | `ru` | `sl` | `sv` | `tr` | `zh_CN` | `zh_TW`.

func (OptionsOutput) MacPrefix

func (o OptionsOutput) MacPrefix() pulumi.StringOutput

Prefix for autogenerated MAC addresses.

func (OptionsOutput) MaxWorkers

func (o OptionsOutput) MaxWorkers() pulumi.IntPtrOutput

Defines how many workers (per node) are maximal started on actions like 'stopall VMs' or task from the ha-manager.

func (OptionsOutput) MigrationCidr

func (o OptionsOutput) MigrationCidr() pulumi.StringPtrOutput

Cluster wide migration network CIDR.

func (OptionsOutput) MigrationType

func (o OptionsOutput) MigrationType() pulumi.StringPtrOutput

Cluster wide migration type. Must be `secure` | `unsecure` (default is `secure`).

func (OptionsOutput) ToOptionsOutput

func (o OptionsOutput) ToOptionsOutput() OptionsOutput

func (OptionsOutput) ToOptionsOutputWithContext

func (o OptionsOutput) ToOptionsOutputWithContext(ctx context.Context) OptionsOutput

type OptionsState

type OptionsState struct {
	// Clone I/O bandwidth limit in KiB/s.
	BandwidthLimitClone pulumi.IntPtrInput
	// Default I/O bandwidth limit in KiB/s.
	BandwidthLimitDefault pulumi.IntPtrInput
	// Migration I/O bandwidth limit in KiB/s.
	BandwidthLimitMigration pulumi.IntPtrInput
	// Move I/O bandwidth limit in KiB/s.
	BandwidthLimitMove pulumi.IntPtrInput
	// Restore I/O bandwidth limit in KiB/s.
	BandwidthLimitRestore pulumi.IntPtrInput
	// Select the default Console viewer. Must be `applet` | `vv`| `html5` | `xtermjs`. You can either use the builtin java applet (VNC; deprecated and maps to html5), an external virt-viewer compatible application (SPICE), an HTML5 based vnc viewer (noVNC), or an HTML5 based console client (xtermjs). If the selected viewer is not available (e.g. SPICE not activated for the VM), the fallback is noVNC.
	Console pulumi.StringPtrInput
	// Cluster resource scheduling setting for HA. Must be `static` | `basic` (default is `basic`).
	CrsHa pulumi.StringPtrInput
	// Cluster resource scheduling setting for HA rebalance on start.
	CrsHaRebalanceOnStart pulumi.BoolPtrInput
	// Datacenter description. Shown in the web-interface datacenter notes panel. This is saved as comment inside the configuration file.
	Description pulumi.StringPtrInput
	// email address to send notification from (default is root@$hostname).
	EmailFrom pulumi.StringPtrInput
	// Cluster wide HA shutdown policy (). Must be `freeze` | `failover` | `migrate` | `conditional` (default is `conditional`).
	HaShutdownPolicy pulumi.StringPtrInput
	// Specify external http proxy which is used for downloads (example: `http://username:password@host:port/`).
	HttpProxy pulumi.StringPtrInput
	// Default keyboard layout for vnc server. Must be `de` | `de-ch` | `da` | `en-gb` | `en-us` | `es` | `fi` | `fr` | `fr-be` | `fr-ca` | `fr-ch` | `hu` | `is` | `it` | `ja` | `lt` | `mk` | `nl` | `no` | `pl` | `pt` | `pt-br` | `sv` | `sl` | `tr`.
	Keyboard pulumi.StringPtrInput
	// Default GUI language. Must be `ca` | `da` | `de` | `en` | `es` | `eu` | `fa` | `fr` | `he` | `it` | `ja` | `nb` | `nn` | `pl` | `pt_BR` | `ru` | `sl` | `sv` | `tr` | `zh_CN` | `zh_TW`.
	Language pulumi.StringPtrInput
	// Prefix for autogenerated MAC addresses.
	MacPrefix pulumi.StringPtrInput
	// Defines how many workers (per node) are maximal started on actions like 'stopall VMs' or task from the ha-manager.
	MaxWorkers pulumi.IntPtrInput
	// Cluster wide migration network CIDR.
	MigrationCidr pulumi.StringPtrInput
	// Cluster wide migration type. Must be `secure` | `unsecure` (default is `secure`).
	MigrationType pulumi.StringPtrInput
}

func (OptionsState) ElementType

func (OptionsState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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