terraform-provider-gitea/examples/resources/gitea_public_key/resource.tf
Tobias Trabelsi 26eb2c104a
All checks were successful
continuous-integration/drone/push Build is passing
added ssh key management resource
2022-06-21 23:10:25 +02:00

15 lines
367 B
HCL

resource "gitea_user" "test" {
username = "test"
login_name = "test"
password = "Geheim1!"
email = "test@user.dev"
must_change_password = false
}
resource "gitea_public_key" "test_user_key" {
title = "test"
key = file("${path.module}/id_ed25519.pub")
username = gitea_user.test.username
}