Skip to content
This repository has been archived by the owner on Apr 14, 2020. It is now read-only.

dainis/terraform-provider-zabbix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform zabbix provider

Actively developed fork: https://github.com/claranet/terraform-provider-zabbix

Allows to manage zabbix hosts

provider "zabbix" {
  user = "admin"
  password = "zabbix"
  server_url = "http://localhost/zabbix/api_jsonrpc.php"
}

resource "zabbix_host" "zabbix1" {
  host = "127.0.0.1"
  interfaces = [{
    ip = "127.0.0.1"
    main = true
  }]
  groups = ["Linux servers", "${zabbix_host_group.zabbix.name}"]
  templates = ["Template ICMP Ping"]
}

resource "zabbix_host_group" "zabbix" {
  name = "something"
}