This commit is contained in:
parent
ec57a47ba2
commit
ba5761e973
3 changed files with 28 additions and 11 deletions
|
@ -2,13 +2,16 @@ resource "tor_family_identity" "example" {
|
|||
family_name = "MyFamily"
|
||||
}
|
||||
|
||||
# Access the generated family identity
|
||||
output "family_id" {
|
||||
value = tor_family_identity.example.id
|
||||
}
|
||||
|
||||
# Use the secret key to configure your Tor relay
|
||||
resource "local_sensitive_file" "family_key" {
|
||||
content_base64 = tor_family_identity.example.secret_key
|
||||
filename = "MyFamily.secret_family_key"
|
||||
}
|
||||
|
||||
resource "local_file" "torrc" {
|
||||
filename = "./torrc"
|
||||
content = <<EOF
|
||||
FamilyId ${tor_family_identity.example.id}
|
||||
... other torrc configuration ...
|
||||
EOF
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue