Add LDAP service instance

parent 35114f57
Pipeline #14 passed with stage
......@@ -50,3 +50,19 @@ resource "digitalocean_record" "pike_private" {
value = digitalocean_droplet.pike.ipv4_address_private
ttl = 300
}
resource "digitalocean_record" "ldap_service" {
domain = digitalocean_domain.ops_ski.name
type = "A"
name = "ldap.service"
value = digitalocean_droplet.ldap_service.ipv4_address
ttl = 300
}
resource "digitalocean_record" "ldap_service_private" {
domain = digitalocean_domain.ops_ski.name
type = "A"
name = "ldap.service.private"
value = digitalocean_droplet.ldap_service.ipv4_address_private
ttl = 300
}
resource "digitalocean_droplet" "ldap_service" {
image = "ubuntu-18-04-x64"
name = "ldap.service.ops.ski"
region = "sfo2"
size = "s-1vcpu-1gb"
backups = true
private_networking = true
ssh_keys = [
digitalocean_ssh_key.ops_ski_tf.id
]
}
resource "digitalocean_project_resources" "ldap_service" {
project = digitalocean_project.ops_ski.id
resources = [
digitalocean_droplet.ldap_service.urn
]
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment