No description
  • Go 86.7%
  • Shell 5.2%
  • Makefile 4.1%
  • HTML 4%
Find a file
2020-07-07 11:13:21 +00:00
.github Make CoC and support channels more visible 2017-11-01 23:05:16 +01:00
icinga2 Fix notification test. 2020-07-07 10:32:21 +01:00
scripts Fix Changelog Links Script for icinga2 provider 2017-06-26 09:51:19 -05:00
vendor Moving to latest upstream lib. 2020-07-06 16:02:17 +01:00
website Moving to latest upstream lib. 2020-07-06 16:02:17 +01:00
.gitignore Updating Makefile + Add gitignore 2017-06-06 16:27:46 -04:00
.go-version provider: Ensured Go 1.11 in TravisCI and README 2019-03-01 15:44:22 -05:00
.travis.yml deps: use go modules for dep mgmt 2019-03-01 15:45:23 -05:00
CHANGELOG.md Cleanup after v0.4.0 release 2020-07-07 11:13:21 +00:00
GNUmakefile deps: use go modules for dep mgmt 2019-03-01 15:45:23 -05:00
go.mod Moving to latest upstream lib. 2020-07-06 16:02:17 +01:00
go.sum Moving to latest upstream lib. 2020-07-06 16:02:17 +01:00
LICENSE initial commit 2017-06-05 20:54:12 +00:00
main.go Moving to the Terraform Plugin SDK 2019-12-06 13:38:08 +00:00
README.md Adding TravisCI build status to the README 2020-03-17 22:06:19 +00:00

Terraform Provider

Build Status

Requirements

  • Terraform 0.12.x
  • Go 1.11 (to build the provider plugin)

Building The Provider

Clone repository to: $GOPATH/src/github.com/terraform-providers/terraform-provider-icinga2

$ mkdir -p $GOPATH/src/github.com/terraform-providers; cd $GOPATH/src/github.com/terraform-providers
$ git clone git@github.com:terraform-providers/terraform-provider-icinga2

Enter the provider directory and build the provider

$ cd $GOPATH/src/github.com/terraform-providers/terraform-provider-$PROVIDER_NAME
$ make build

Using the provider

The documentation for this provider is at the Terraform Icinga2 provider docs

Developing the Provider

If you wish to work on the provider, you'll first need Go installed on your machine (version 1.11+ is required). You'll also need to correctly setup a GOPATH, as well as adding $GOPATH/bin to your $PATH.

To compile the provider, run make build. This will build the provider and put the provider binary in the $GOPATH/bin directory.

$ make bin
...
$ $GOPATH/bin/terraform-provider-icinga2
...

In order to test the provider, you can simply run make test.

$ make test

In order to run the full suite of Acceptance tests, run make testacc.

Note: Acceptance tests create real resources, and often cost money to run.

For this provider you will need access to an Icinga2 server to run the acceptance tests.

$ make testacc