Skip to content

Instantly share code, notes, and snippets.

@raphink
Last active April 22, 2020 09:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raphink/1b56c8622fb17b4679df438dc4d363ab to your computer and use it in GitHub Desktop.
Save raphink/1b56c8622fb17b4679df438dc4d363ab to your computer and use it in GitHub Desktop.
Terraform FreeIPA Blog Post
provider freeipa {
host = "ipa.example.test" # or set $FREEIPA_HOST
username = "admin" # or set $FREEIPA_USERNAME
password = "P@S5sw0rd" # or set $FREEIPA_PASSWORD
insecure = true
}
resource freeipa_host "foo" {
fqdn = "foo.example.test"
description = "This is my foo host"
force = true
random = true
userpassword = "abcde"
}
resource freeipa_dns_record "bar" {
idnsname = "bar"
dnszoneidnsname = "myzone"
dnsttl = 20
records = ["1.2.3.4"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment