github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/icinga2/r/host.html.markdown (about)

     1  ---
     2  layout: "icinga2"
     3  page_title: "Icinga2: host"
     4  sidebar_current: "docs-icinga2-resource-host"
     5  description: |-
     6    Configures a host resource. This allows hosts to be configured, updated and deleted.
     7  ---
     8  
     9  # icinga2\_host
    10  
    11  Configures an Icinga2 host resource. This allows hosts to be configured, updated,
    12  and deleted.
    13  
    14  ## Example Usage
    15  
    16  ```hcl
    17  # Configure a new host to be monitored by an Icinga2 Server
    18  provider "icinga2" {
    19    api_url = "https://192.168.33.5:5665/v1"
    20  }
    21  
    22  resource "icinga2_host" "host" {
    23    hostname      = "terraform-host-1"
    24    address       = "10.10.10.1"
    25    check_command = "hostalive"
    26    templates     = ["bp-host-web"]
    27  
    28    vars {
    29      os        = "linux"
    30      osver     = "1"
    31      allowance = "none"
    32    }
    33  }
    34  ```
    35  
    36  ## Argument Reference
    37  
    38  The following arguments are supported:
    39  
    40  * `address`  - (Required) The address of the host.
    41  * `check_command` - (Required) The name of an existing Icinga2 CheckCommand object that is used to determine if the host is available or not.
    42  * `hostname` - (Required) The hostname of the host.
    43  * `templates` - (Optional) A list of Icinga2 templates to assign to the host.
    44  * `vars` - (Optional) A mapping of variables to assign to the host.
    45