0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-06-29 18:21:10 +00:00
terraform-provider-proxmox/example/ssh.tf
Pavel Boldyrev 343e8045c1
feat(vm): add network device resources (#376)
* wip

* experimenting with terraform plugin framework

* cleaning up poc and adding tests

* adding read / update / delete

* update bridge_vlan_aware and MTU

* add ipv6 and simplify IP support

* fix provider's schema

* add docs

* run linter from cmdline

* disable TF acceptance tests

* add VLAN

* update docs

* add examole

* cleanup
2023-06-23 22:47:25 +00:00

15 lines
420 B
HCL

resource "local_sensitive_file" "example_ssh_private_key" {
filename = "${path.module}/autogenerated/id_rsa"
content = tls_private_key.example.private_key_pem
}
resource "local_sensitive_file" "example_ssh_public_key" {
filename = "${path.module}/autogenerated/id_rsa.pub"
content = tls_private_key.example.public_key_openssh
}
resource "tls_private_key" "example" {
algorithm = "RSA"
rsa_bits = 2048
}