Files
opentf/website/source/docs/providers/icinga2/r/hostgroup.html.markdown
George Christou 61277c0dbd website/docs: Run terraform fmt on code examples (#12075)
* docs/vsphere: Fix code block

* docs: Convert `...` to `# ...` to allow `terraform fmt`ing

* docs: Trim trailing whitespace

* docs: First-pass run of `terraform fmt` on code examples
2017-02-19 00:48:50 +02:00

848 B

layout, page_title, sidebar_current, description
layout page_title sidebar_current description
icinga2 Icinga2: hostgroup docs-icinga2-resource-hostgroup Configures a hostgroup resource. This allows hostgroup to be configured, updated and deleted.

icinga2_hostgroup

Configures an Icinga2 hostgroup resource. This allows hostgroup to be configured, updated, and deleted.

Example Usage

# Configure a new hostgroup to be monitored by an Icinga2 Server
provider "icinga2" {
  api_url = "https://192.168.33.5:5665/v1"
}

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

Argument Reference

The following arguments are supported:

  • name - (Required) The name of the hostgroup.
  • display_name - (Required) The name of the hostgroup to display in the Icinga2 interface.