Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with icinga2 host provisionning #18743

Closed
ahany007 opened this issue Aug 27, 2018 · 2 comments
Closed

Problem with icinga2 host provisionning #18743

ahany007 opened this issue Aug 27, 2018 · 2 comments

Comments

@ahany007
Copy link

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:

icinga2_host.host: 1 error(s) occurred:

icinga2_host.host: Validation failed for object 'terraform-host-1' of type 'Host'; Attribute 'groups': Attribute must not be empty. Location: in /var/lib/icinga2/api/packages/_api/5ec3a468-6a3e-495c-9384-28dbaae1feba/conf.d/hosts/terraform-host-1.conf: 7:2-7:14

I am using terraform version:
Terraform v0.11.7

provider.aws v1.31.0
provider.icinga2 v0.1.1

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

@ghost
Copy link

ghost commented Aug 27, 2018

This issue has been automatically migrated to terraform-providers/terraform-provider-icinga2#19 because it looks like an issue with that provider. If you believe this is not an issue with the provider, please reply to terraform-providers/terraform-provider-icinga2#19.

@ghost
Copy link

ghost commented Apr 2, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 2, 2020
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants