1. Packages
  2. Talos Linux
  3. API Docs
  4. machine
  5. Secrets
talos v0.2.0 published on Thursday, Dec 21, 2023 by Pulumiverse

talos.machine.Secrets

Explore with Pulumi AI

talos logo
talos v0.2.0 published on Thursday, Dec 21, 2023 by Pulumiverse

    Generate machine secrets for Talos cluster.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Talos = Pulumiverse.Talos;
    
    return await Deployment.RunAsync(() => 
    {
        var machineSecrets = new Talos.Machine.Secrets("machineSecrets");
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-talos/sdk/go/talos/machine"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := machine.NewSecrets(ctx, "machineSecrets", nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.talos.machine.Secrets;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var machineSecrets = new Secrets("machineSecrets");
    
        }
    }
    
    import pulumi
    import pulumiverse_talos as talos
    
    machine_secrets = talos.machine.Secrets("machineSecrets")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as talos from "@pulumiverse/talos";
    
    const machineSecrets = new talos.machine.Secrets("machineSecrets", {});
    
    resources:
      machineSecrets:
        type: talos:machine:Secrets
    

    Create Secrets Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Secrets(name: string, args?: SecretsArgs, opts?: CustomResourceOptions);
    @overload
    def Secrets(resource_name: str,
                args: Optional[SecretsInitArgs] = None,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Secrets(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                talos_version: Optional[str] = None)
    func NewSecrets(ctx *Context, name string, args *SecretsArgs, opts ...ResourceOption) (*Secrets, error)
    public Secrets(string name, SecretsArgs? args = null, CustomResourceOptions? opts = null)
    public Secrets(String name, SecretsArgs args)
    public Secrets(String name, SecretsArgs args, CustomResourceOptions options)
    
    type: talos:machine:Secrets
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args SecretsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SecretsInitArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SecretsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SecretsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SecretsArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var secretsResource = new Talos.Machine.Secrets("secretsResource", new()
    {
        TalosVersion = "string",
    });
    
    example, err := machine.NewSecrets(ctx, "secretsResource", &machine.SecretsArgs{
    	TalosVersion: pulumi.String("string"),
    })
    
    var secretsResource = new Secrets("secretsResource", SecretsArgs.builder()
        .talosVersion("string")
        .build());
    
    secrets_resource = talos.machine.Secrets("secretsResource", talos_version="string")
    
    const secretsResource = new talos.machine.Secrets("secretsResource", {talosVersion: "string"});
    
    type: talos:machine:Secrets
    properties:
        talosVersion: string
    

    Secrets Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Secrets resource accepts the following input properties:

    TalosVersion string
    The version of talos features to use in generated machine configuration
    TalosVersion string
    The version of talos features to use in generated machine configuration
    talosVersion String
    The version of talos features to use in generated machine configuration
    talosVersion string
    The version of talos features to use in generated machine configuration
    talos_version str
    The version of talos features to use in generated machine configuration
    talosVersion String
    The version of talos features to use in generated machine configuration

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Secrets resource produces the following output properties:

    ClientConfiguration Pulumiverse.Talos.Machine.Outputs.SecretsClientConfiguration
    The generated client configuration data
    Id string
    The provider-assigned unique ID for this managed resource.
    MachineSecrets Pulumiverse.Talos.Machine.Outputs.MachineSecrets
    The secrets for the talos cluster
    ClientConfiguration SecretsClientConfiguration
    The generated client configuration data
    Id string
    The provider-assigned unique ID for this managed resource.
    MachineSecrets MachineSecrets
    The secrets for the talos cluster
    clientConfiguration SecretsClientConfiguration
    The generated client configuration data
    id String
    The provider-assigned unique ID for this managed resource.
    machineSecrets MachineSecrets
    The secrets for the talos cluster
    clientConfiguration SecretsClientConfiguration
    The generated client configuration data
    id string
    The provider-assigned unique ID for this managed resource.
    machineSecrets MachineSecrets
    The secrets for the talos cluster
    client_configuration SecretsClientConfiguration
    The generated client configuration data
    id str
    The provider-assigned unique ID for this managed resource.
    machine_secrets MachineSecrets
    The secrets for the talos cluster
    clientConfiguration Property Map
    The generated client configuration data
    id String
    The provider-assigned unique ID for this managed resource.
    machineSecrets Property Map
    The secrets for the talos cluster

    Look up Existing Secrets Resource

    Get an existing Secrets resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: SecretsState, opts?: CustomResourceOptions): Secrets
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            client_configuration: Optional[SecretsClientConfigurationArgs] = None,
            machine_secrets: Optional[MachineSecretsArgs] = None,
            talos_version: Optional[str] = None) -> Secrets
    func GetSecrets(ctx *Context, name string, id IDInput, state *SecretsState, opts ...ResourceOption) (*Secrets, error)
    public static Secrets Get(string name, Input<string> id, SecretsState? state, CustomResourceOptions? opts = null)
    public static Secrets get(String name, Output<String> id, SecretsState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ClientConfiguration Pulumiverse.Talos.Machine.Inputs.SecretsClientConfiguration
    The generated client configuration data
    MachineSecrets Pulumiverse.Talos.Machine.Inputs.MachineSecrets
    The secrets for the talos cluster
    TalosVersion string
    The version of talos features to use in generated machine configuration
    ClientConfiguration SecretsClientConfigurationArgs
    The generated client configuration data
    MachineSecrets MachineSecretsArgs
    The secrets for the talos cluster
    TalosVersion string
    The version of talos features to use in generated machine configuration
    clientConfiguration SecretsClientConfiguration
    The generated client configuration data
    machineSecrets MachineSecrets
    The secrets for the talos cluster
    talosVersion String
    The version of talos features to use in generated machine configuration
    clientConfiguration SecretsClientConfiguration
    The generated client configuration data
    machineSecrets MachineSecrets
    The secrets for the talos cluster
    talosVersion string
    The version of talos features to use in generated machine configuration
    client_configuration SecretsClientConfigurationArgs
    The generated client configuration data
    machine_secrets MachineSecretsArgs
    The secrets for the talos cluster
    talos_version str
    The version of talos features to use in generated machine configuration
    clientConfiguration Property Map
    The generated client configuration data
    machineSecrets Property Map
    The secrets for the talos cluster
    talosVersion String
    The version of talos features to use in generated machine configuration

    Supporting Types

    Certificate, CertificateArgs

    Cert string
    Certificate
    Key string
    Private Key
    Cert string
    Certificate
    Key string
    Private Key
    cert String
    Certificate
    key String
    Private Key
    cert string
    Certificate
    key string
    Private Key
    cert str
    Certificate
    key str
    Private Key
    cert String
    Certificate
    key String
    Private Key

    Certificates, CertificatesArgs

    Cluster, ClusterArgs

    Id string
    Certificate
    Secret string
    Private Key
    Id string
    Certificate
    Secret string
    Private Key
    id String
    Certificate
    secret String
    Private Key
    id string
    Certificate
    secret string
    Private Key
    id str
    Certificate
    secret str
    Private Key
    id String
    Certificate
    secret String
    Private Key

    Key, KeyArgs

    Key string
    Private Key
    Key string
    Private Key
    key String
    Private Key
    key string
    Private Key
    key str
    Private Key
    key String
    Private Key

    MachineSecrets, MachineSecretsArgs

    Secrets, SecretsArgs

    Bootstrap_token string
    The bootstrap token for the talos kubernetes cluster
    Secretbox_encryption_secret string
    The secretbox encryption secret for the talos kubernetes cluster
    Bootstrap_token string
    The bootstrap token for the talos kubernetes cluster
    Secretbox_encryption_secret string
    The secretbox encryption secret for the talos kubernetes cluster
    bootstrap_token String
    The bootstrap token for the talos kubernetes cluster
    secretbox_encryption_secret String
    The secretbox encryption secret for the talos kubernetes cluster
    bootstrap_token string
    The bootstrap token for the talos kubernetes cluster
    secretbox_encryption_secret string
    The secretbox encryption secret for the talos kubernetes cluster
    bootstrap_token str
    The bootstrap token for the talos kubernetes cluster
    secretbox_encryption_secret str
    The secretbox encryption secret for the talos kubernetes cluster
    bootstrap_token String
    The bootstrap token for the talos kubernetes cluster
    secretbox_encryption_secret String
    The secretbox encryption secret for the talos kubernetes cluster

    SecretsClientConfiguration, SecretsClientConfigurationArgs

    CaCertificate string
    The client CA certificate
    ClientCertificate string
    The client certificate
    ClientKey string
    The client key
    CaCertificate string
    The client CA certificate
    ClientCertificate string
    The client certificate
    ClientKey string
    The client key
    caCertificate String
    The client CA certificate
    clientCertificate String
    The client certificate
    clientKey String
    The client key
    caCertificate string
    The client CA certificate
    clientCertificate string
    The client certificate
    clientKey string
    The client key
    ca_certificate str
    The client CA certificate
    client_certificate str
    The client certificate
    client_key str
    The client key
    caCertificate String
    The client CA certificate
    clientCertificate String
    The client certificate
    clientKey String
    The client key

    TrustdInfo, TrustdInfoArgs

    Token string
    The trustd token for the talos kubernetes cluster
    Token string
    The trustd token for the talos kubernetes cluster
    token String
    The trustd token for the talos kubernetes cluster
    token string
    The trustd token for the talos kubernetes cluster
    token str
    The trustd token for the talos kubernetes cluster
    token String
    The trustd token for the talos kubernetes cluster

    Import

    terraform machine secrets can be imported from an existing secrets file

     $ pulumi import talos:machine/secrets:Secrets this <path-to-secrets.yaml>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    talos pulumiverse/pulumi-talos
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the talos Terraform Provider.
    talos logo
    talos v0.2.0 published on Thursday, Dec 21, 2023 by Pulumiverse