UNPKG

@muhlba91/pulumi-proxmoxve

Version:

A Pulumi package for creating and managing Proxmox Virtual Environment cloud resources.

96 lines 3.52 kB
import * as pulumi from "@pulumi/pulumi"; /** * Manages Proxmox VE node configuration. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as proxmoxve from "@muhlba91/pulumi-proxmoxve"; * import * as std from "@pulumi/std"; * * const example = new proxmoxve.node.Config("example", { * nodeName: "pve", * description: "Managed by Pulumi", * }); * const multiline = new proxmoxve.node.Config("multiline", { * nodeName: "pve2", * description: std.trimspace({ * input: `Managed by Terraform. * * Owner: ops@example.com * Role: storage * `, * }).then(invoke => invoke.result), * }); * ``` * * ## Import * * !/usr/bin/env sh * Node config is per-node and can be imported by node name: * * ```sh * $ pulumi import proxmoxve:node/config:Config example pve * ``` */ export declare class Config extends pulumi.CustomResource { /** * Get an existing Config resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ConfigState, opts?: pulumi.CustomResourceOptions): Config; /** * Returns true if the given object is an instance of Config. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Config; /** * Description of the node. Shown in the web-interface node notes panel. This is saved as a comment inside the configuration file. Trailing newlines are not supported by PVE; use trimspace() with heredoc values. */ readonly description: pulumi.Output<string | undefined>; /** * The name of the node. */ readonly nodeName: pulumi.Output<string>; /** * Create a Config resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ConfigArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Config resources. */ export interface ConfigState { /** * Description of the node. Shown in the web-interface node notes panel. This is saved as a comment inside the configuration file. Trailing newlines are not supported by PVE; use trimspace() with heredoc values. */ description?: pulumi.Input<string | undefined>; /** * The name of the node. */ nodeName?: pulumi.Input<string | undefined>; } /** * The set of arguments for constructing a Config resource. */ export interface ConfigArgs { /** * Description of the node. Shown in the web-interface node notes panel. This is saved as a comment inside the configuration file. Trailing newlines are not supported by PVE; use trimspace() with heredoc values. */ description?: pulumi.Input<string | undefined>; /** * The name of the node. */ nodeName: pulumi.Input<string>; } //# sourceMappingURL=config.d.ts.map