github.com/nbering/terraform@v0.8.5-0.20170113232247-453f670684b5/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  ```
    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    vars {
    28      os = "linux"
    29      osver = "1"
    30      allowance = "none" 
    31    }
    32  }
    33  ```
    34  
    35  ## Argument Reference
    36  
    37  The following arguments are supported:
    38  
    39  * `address`  - (Required) The address of the host.
    40  * `check_command` - (Required) The name of an existing Icinga2 CheckCommand object that is used to determine if the host is available or not. 
    41  * `hostname` - (Required) The hostname of the host.
    42  * `templates` - (Optional) A list of Icinga2 templates to assign to the host.
    43  * `vars` - (Optional) A mapping of variables to assign to the host.
    44