Using secrets to point to configuration file
This commit is contained in:
parent
7273aeea4c
commit
2880c2f882
1 changed files with 2 additions and 2 deletions
4
main.tf
4
main.tf
|
|
@ -111,7 +111,7 @@ resource "libvirt_domain" "talos-controlplane" {
|
||||||
# Talos kernel parameters
|
# Talos kernel parameters
|
||||||
cmdline = [
|
cmdline = [
|
||||||
"talos.platform=metal",
|
"talos.platform=metal",
|
||||||
"talos.config=${base64encode(data.talos_machine_configuration.controlplane.machine_config)}",
|
"talos.config=${base64encode(talos_machine_secrets.this.client_configuration)}",
|
||||||
"ip=10.5.0.2::10.5.0.1:255.255.255.0::eth0:off",
|
"ip=10.5.0.2::10.5.0.1:255.255.255.0::eth0:off",
|
||||||
"init_on_alloc=1",
|
"init_on_alloc=1",
|
||||||
"slab_nomerge",
|
"slab_nomerge",
|
||||||
|
|
@ -152,7 +152,7 @@ output "controlplane_ip" {
|
||||||
}
|
}
|
||||||
|
|
||||||
output "talosconfig" {
|
output "talosconfig" {
|
||||||
value = data.talos_machine_configuration.controlplane.machine_config
|
value = talos_machine_secrets.this.client_configuration
|
||||||
sensitive = true
|
sensitive = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue