Tree
- Tree:
bdcc964fe7449267c5d5fcf7b8a0ee740a56c3ed- Date:
- Message:
- add Icinga service and host states Nothing actually uses these yet but they will soon!
| LICENSE | commits | blame |
| README.md | commits | blame |
| go.mod | commits | blame |
| host.go | commits | blame |
| http.go | commits | blame |
| icinga.go | commits | blame |
| user.go | commits | blame |
README.md
Icinga2 servers in the wild often serve self-signed certificates which
fail verification by Go's tls client. To ignore the errors, Dial the server
with a modified http.Client:
t := http.DefaultTransport.(*http.Transport)
t.TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
c := http.DefaultClient
c.Transport = t
client, err := icinga.Dial(host, user, pass, c)
if err != nil {
// handle error
}
...
## Why?
The terraform provider...
