Icinga / terraform-provider-icinga2

Terraform Icinga2 provider
https://www.terraform.io/docs/providers/icinga2/
Mozilla Public License 2.0
21 stars 20 forks source link

Terraform icinga2 problem #18

Closed ahany007 closed 6 years ago

ahany007 commented 6 years ago

Hi there,

I am trying to create a new host on icinga2 using terraform i used the exact syntax as the terraform documentation but i found the below error:

I am using terraform version: Terraform v0.11.7

code: resource "icinga2_hostgroup" "terraform" { name = "terraform-hostgroup-1" display_name = "Terraform Test HostGroup" }

provider "icinga2" { api_url = "https://localhost:5665/v1" api_user = "root" api_password = "root" insecure_skip_tls_verify = true }

resource "icinga2_host" "host" { hostname = "terraform-host-1" address = "10.10.10.1" check_command = "hostalive"

templates= ["generic-host"]

}

steps to produce: terraform apply

lrsmith commented 6 years ago

This is a duplicate of #19 Closing this issue.