talos.machine.ConfigurationApply
Explore with Pulumi AI
The machine configuration apply resource allows to apply machine configuration to a node
Create ConfigurationApply Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ConfigurationApply(name: string, args: ConfigurationApplyArgs, opts?: CustomResourceOptions);
@overload
def ConfigurationApply(resource_name: str,
args: ConfigurationApplyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ConfigurationApply(resource_name: str,
opts: Optional[ResourceOptions] = None,
client_configuration: Optional[ClientConfigurationArgs] = None,
machine_configuration_input: Optional[str] = None,
node: Optional[str] = None,
apply_mode: Optional[str] = None,
config_patches: Optional[Sequence[str]] = None,
endpoint: Optional[str] = None,
on_destroy: Optional[ConfigurationApplyOnDestroyArgs] = None,
timeouts: Optional[TimeoutArgs] = None)
func NewConfigurationApply(ctx *Context, name string, args ConfigurationApplyArgs, opts ...ResourceOption) (*ConfigurationApply, error)
public ConfigurationApply(string name, ConfigurationApplyArgs args, CustomResourceOptions? opts = null)
public ConfigurationApply(String name, ConfigurationApplyArgs args)
public ConfigurationApply(String name, ConfigurationApplyArgs args, CustomResourceOptions options)
type: talos:machine:ConfigurationApply
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 ConfigurationApplyArgs
- 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 ConfigurationApplyArgs
- 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 ConfigurationApplyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConfigurationApplyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ConfigurationApplyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var configurationApplyResource = new Talos.Machine.ConfigurationApply("configurationApplyResource", new()
{
ClientConfiguration = new Talos.Machine.Inputs.ClientConfigurationArgs
{
CaCertificate = "string",
ClientCertificate = "string",
ClientKey = "string",
},
MachineConfigurationInput = "string",
Node = "string",
ApplyMode = "string",
ConfigPatches = new[]
{
"string",
},
Endpoint = "string",
OnDestroy = new Talos.Machine.Inputs.ConfigurationApplyOnDestroyArgs
{
Graceful = false,
Reboot = false,
Reset = false,
},
Timeouts = new Talos.Machine.Inputs.TimeoutArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
});
example, err := machine.NewConfigurationApply(ctx, "configurationApplyResource", &machine.ConfigurationApplyArgs{
ClientConfiguration: &machine.ClientConfigurationArgs{
CaCertificate: pulumi.String("string"),
ClientCertificate: pulumi.String("string"),
ClientKey: pulumi.String("string"),
},
MachineConfigurationInput: pulumi.String("string"),
Node: pulumi.String("string"),
ApplyMode: pulumi.String("string"),
ConfigPatches: pulumi.StringArray{
pulumi.String("string"),
},
Endpoint: pulumi.String("string"),
OnDestroy: &machine.ConfigurationApplyOnDestroyArgs{
Graceful: pulumi.Bool(false),
Reboot: pulumi.Bool(false),
Reset: pulumi.Bool(false),
},
Timeouts: &machine.TimeoutArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var configurationApplyResource = new ConfigurationApply("configurationApplyResource", ConfigurationApplyArgs.builder()
.clientConfiguration(ClientConfigurationArgs.builder()
.caCertificate("string")
.clientCertificate("string")
.clientKey("string")
.build())
.machineConfigurationInput("string")
.node("string")
.applyMode("string")
.configPatches("string")
.endpoint("string")
.onDestroy(ConfigurationApplyOnDestroyArgs.builder()
.graceful(false)
.reboot(false)
.reset(false)
.build())
.timeouts(TimeoutArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.build());
configuration_apply_resource = talos.machine.ConfigurationApply("configurationApplyResource",
client_configuration={
"ca_certificate": "string",
"client_certificate": "string",
"client_key": "string",
},
machine_configuration_input="string",
node="string",
apply_mode="string",
config_patches=["string"],
endpoint="string",
on_destroy={
"graceful": False,
"reboot": False,
"reset": False,
},
timeouts={
"create": "string",
"delete": "string",
"update": "string",
})
const configurationApplyResource = new talos.machine.ConfigurationApply("configurationApplyResource", {
clientConfiguration: {
caCertificate: "string",
clientCertificate: "string",
clientKey: "string",
},
machineConfigurationInput: "string",
node: "string",
applyMode: "string",
configPatches: ["string"],
endpoint: "string",
onDestroy: {
graceful: false,
reboot: false,
reset: false,
},
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
});
type: talos:machine:ConfigurationApply
properties:
applyMode: string
clientConfiguration:
caCertificate: string
clientCertificate: string
clientKey: string
configPatches:
- string
endpoint: string
machineConfigurationInput: string
node: string
onDestroy:
graceful: false
reboot: false
reset: false
timeouts:
create: string
delete: string
update: string
ConfigurationApply Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ConfigurationApply resource accepts the following input properties:
- Client
Configuration Pulumiverse.Talos. Machine. Inputs. Client Configuration - The client configuration data
- Machine
Configuration stringInput - The machine configuration to apply
- Node string
- The name of the node to bootstrap
- Apply
Mode string - The mode of the apply operation
- Config
Patches List<string> - The list of config patches to apply
- Endpoint string
- The endpoint of the machine to bootstrap
- On
Destroy Pulumiverse.Talos. Machine. Inputs. Configuration Apply On Destroy - Actions to be taken on destroy, if reset is not set this is a no-op.
- Timeouts
Pulumiverse.
Talos. Machine. Inputs. Timeout
- Client
Configuration ClientConfiguration Args - The client configuration data
- Machine
Configuration stringInput - The machine configuration to apply
- Node string
- The name of the node to bootstrap
- Apply
Mode string - The mode of the apply operation
- Config
Patches []string - The list of config patches to apply
- Endpoint string
- The endpoint of the machine to bootstrap
- On
Destroy ConfigurationApply On Destroy Args - Actions to be taken on destroy, if reset is not set this is a no-op.
- Timeouts
Timeout
Args
- client
Configuration ClientConfiguration - The client configuration data
- machine
Configuration StringInput - The machine configuration to apply
- node String
- The name of the node to bootstrap
- apply
Mode String - The mode of the apply operation
- config
Patches List<String> - The list of config patches to apply
- endpoint String
- The endpoint of the machine to bootstrap
- on
Destroy ConfigurationApply On Destroy - Actions to be taken on destroy, if reset is not set this is a no-op.
- timeouts Timeout
- client
Configuration ClientConfiguration - The client configuration data
- machine
Configuration stringInput - The machine configuration to apply
- node string
- The name of the node to bootstrap
- apply
Mode string - The mode of the apply operation
- config
Patches string[] - The list of config patches to apply
- endpoint string
- The endpoint of the machine to bootstrap
- on
Destroy ConfigurationApply On Destroy - Actions to be taken on destroy, if reset is not set this is a no-op.
- timeouts Timeout
- client_
configuration ClientConfiguration Args - The client configuration data
- machine_
configuration_ strinput - The machine configuration to apply
- node str
- The name of the node to bootstrap
- apply_
mode str - The mode of the apply operation
- config_
patches Sequence[str] - The list of config patches to apply
- endpoint str
- The endpoint of the machine to bootstrap
- on_
destroy ConfigurationApply On Destroy Args - Actions to be taken on destroy, if reset is not set this is a no-op.
- timeouts
Timeout
Args
- client
Configuration Property Map - The client configuration data
- machine
Configuration StringInput - The machine configuration to apply
- node String
- The name of the node to bootstrap
- apply
Mode String - The mode of the apply operation
- config
Patches List<String> - The list of config patches to apply
- endpoint String
- The endpoint of the machine to bootstrap
- on
Destroy Property Map - Actions to be taken on destroy, if reset is not set this is a no-op.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the ConfigurationApply resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Machine
Configuration string - The generated machine configuration after applying patches
- Id string
- The provider-assigned unique ID for this managed resource.
- Machine
Configuration string - The generated machine configuration after applying patches
- id String
- The provider-assigned unique ID for this managed resource.
- machine
Configuration String - The generated machine configuration after applying patches
- id string
- The provider-assigned unique ID for this managed resource.
- machine
Configuration string - The generated machine configuration after applying patches
- id str
- The provider-assigned unique ID for this managed resource.
- machine_
configuration str - The generated machine configuration after applying patches
- id String
- The provider-assigned unique ID for this managed resource.
- machine
Configuration String - The generated machine configuration after applying patches
Look up Existing ConfigurationApply Resource
Get an existing ConfigurationApply 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?: ConfigurationApplyState, opts?: CustomResourceOptions): ConfigurationApply
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
apply_mode: Optional[str] = None,
client_configuration: Optional[ClientConfigurationArgs] = None,
config_patches: Optional[Sequence[str]] = None,
endpoint: Optional[str] = None,
machine_configuration: Optional[str] = None,
machine_configuration_input: Optional[str] = None,
node: Optional[str] = None,
on_destroy: Optional[ConfigurationApplyOnDestroyArgs] = None,
timeouts: Optional[TimeoutArgs] = None) -> ConfigurationApply
func GetConfigurationApply(ctx *Context, name string, id IDInput, state *ConfigurationApplyState, opts ...ResourceOption) (*ConfigurationApply, error)
public static ConfigurationApply Get(string name, Input<string> id, ConfigurationApplyState? state, CustomResourceOptions? opts = null)
public static ConfigurationApply get(String name, Output<String> id, ConfigurationApplyState 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.
- Apply
Mode string - The mode of the apply operation
- Client
Configuration Pulumiverse.Talos. Machine. Inputs. Client Configuration - The client configuration data
- Config
Patches List<string> - The list of config patches to apply
- Endpoint string
- The endpoint of the machine to bootstrap
- Machine
Configuration string - The generated machine configuration after applying patches
- Machine
Configuration stringInput - The machine configuration to apply
- Node string
- The name of the node to bootstrap
- On
Destroy Pulumiverse.Talos. Machine. Inputs. Configuration Apply On Destroy - Actions to be taken on destroy, if reset is not set this is a no-op.
- Timeouts
Pulumiverse.
Talos. Machine. Inputs. Timeout
- Apply
Mode string - The mode of the apply operation
- Client
Configuration ClientConfiguration Args - The client configuration data
- Config
Patches []string - The list of config patches to apply
- Endpoint string
- The endpoint of the machine to bootstrap
- Machine
Configuration string - The generated machine configuration after applying patches
- Machine
Configuration stringInput - The machine configuration to apply
- Node string
- The name of the node to bootstrap
- On
Destroy ConfigurationApply On Destroy Args - Actions to be taken on destroy, if reset is not set this is a no-op.
- Timeouts
Timeout
Args
- apply
Mode String - The mode of the apply operation
- client
Configuration ClientConfiguration - The client configuration data
- config
Patches List<String> - The list of config patches to apply
- endpoint String
- The endpoint of the machine to bootstrap
- machine
Configuration String - The generated machine configuration after applying patches
- machine
Configuration StringInput - The machine configuration to apply
- node String
- The name of the node to bootstrap
- on
Destroy ConfigurationApply On Destroy - Actions to be taken on destroy, if reset is not set this is a no-op.
- timeouts Timeout
- apply
Mode string - The mode of the apply operation
- client
Configuration ClientConfiguration - The client configuration data
- config
Patches string[] - The list of config patches to apply
- endpoint string
- The endpoint of the machine to bootstrap
- machine
Configuration string - The generated machine configuration after applying patches
- machine
Configuration stringInput - The machine configuration to apply
- node string
- The name of the node to bootstrap
- on
Destroy ConfigurationApply On Destroy - Actions to be taken on destroy, if reset is not set this is a no-op.
- timeouts Timeout
- apply_
mode str - The mode of the apply operation
- client_
configuration ClientConfiguration Args - The client configuration data
- config_
patches Sequence[str] - The list of config patches to apply
- endpoint str
- The endpoint of the machine to bootstrap
- machine_
configuration str - The generated machine configuration after applying patches
- machine_
configuration_ strinput - The machine configuration to apply
- node str
- The name of the node to bootstrap
- on_
destroy ConfigurationApply On Destroy Args - Actions to be taken on destroy, if reset is not set this is a no-op.
- timeouts
Timeout
Args
- apply
Mode String - The mode of the apply operation
- client
Configuration Property Map - The client configuration data
- config
Patches List<String> - The list of config patches to apply
- endpoint String
- The endpoint of the machine to bootstrap
- machine
Configuration String - The generated machine configuration after applying patches
- machine
Configuration StringInput - The machine configuration to apply
- node String
- The name of the node to bootstrap
- on
Destroy Property Map - Actions to be taken on destroy, if reset is not set this is a no-op.
- timeouts Property Map
Supporting Types
ClientConfiguration, ClientConfigurationArgs
- Ca
Certificate string - The client CA certificate
- Client
Certificate string - The client certificate
- Client
Key string - The client private key
- Ca
Certificate string - The client CA certificate
- Client
Certificate string - The client certificate
- Client
Key string - The client private key
- ca
Certificate String - The client CA certificate
- client
Certificate String - The client certificate
- client
Key String - The client private key
- ca
Certificate string - The client CA certificate
- client
Certificate string - The client certificate
- client
Key string - The client private key
- ca_
certificate str - The client CA certificate
- client_
certificate str - The client certificate
- client_
key str - The client private key
- ca
Certificate String - The client CA certificate
- client
Certificate String - The client certificate
- client
Key String - The client private key
ConfigurationApplyOnDestroy, ConfigurationApplyOnDestroyArgs
- Graceful bool
- Graceful indicates whether node should leave etcd before the upgrade, it also enforces etcd checks before leaving. Default true
- Reboot bool
- Reboot indicates whether node should reboot or halt after resetting. Default false
- Reset bool
- Reset the machine to the initial state (STATE and EPHEMERAL will be wiped). Default false
- Graceful bool
- Graceful indicates whether node should leave etcd before the upgrade, it also enforces etcd checks before leaving. Default true
- Reboot bool
- Reboot indicates whether node should reboot or halt after resetting. Default false
- Reset bool
- Reset the machine to the initial state (STATE and EPHEMERAL will be wiped). Default false
- graceful Boolean
- Graceful indicates whether node should leave etcd before the upgrade, it also enforces etcd checks before leaving. Default true
- reboot Boolean
- Reboot indicates whether node should reboot or halt after resetting. Default false
- reset Boolean
- Reset the machine to the initial state (STATE and EPHEMERAL will be wiped). Default false
- graceful boolean
- Graceful indicates whether node should leave etcd before the upgrade, it also enforces etcd checks before leaving. Default true
- reboot boolean
- Reboot indicates whether node should reboot or halt after resetting. Default false
- reset boolean
- Reset the machine to the initial state (STATE and EPHEMERAL will be wiped). Default false
- graceful bool
- Graceful indicates whether node should leave etcd before the upgrade, it also enforces etcd checks before leaving. Default true
- reboot bool
- Reboot indicates whether node should reboot or halt after resetting. Default false
- reset bool
- Reset the machine to the initial state (STATE and EPHEMERAL will be wiped). Default false
- graceful Boolean
- Graceful indicates whether node should leave etcd before the upgrade, it also enforces etcd checks before leaving. Default true
- reboot Boolean
- Reboot indicates whether node should reboot or halt after resetting. Default false
- reset Boolean
- Reset the machine to the initial state (STATE and EPHEMERAL will be wiped). Default false
Timeout, TimeoutArgs
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Package Details
- Repository
- talos pulumiverse/pulumi-talos
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
talos
Terraform Provider.