diff --git a/.goreleaser.yml b/.goreleaser.yml index b792c86..187be9a 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,7 +1,5 @@ builds: - # List of builds - - # First Build - env: + - env: - CGO_ENABLED=0 main: main.go ldflags: '-s -w -X github.com/sensu-community/sensu-plugin-sdk/version.build={{.Version}} -X github.com/sensu-community/sensu-plugin-sdk/version.commit={{.Commit}} -X github.com/sensu-community/sensu-plugin-sdk/version.date={{.Date}}' diff --git a/LICENSE b/LICENSE index ad7a45d..31c418e 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright {{ .CopyrightYear }} {{ .CopyrightHolder }} +Copyright 2020 Sensu Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: diff --git a/README.md b/README.md index 593125d..fe10fd7 100644 --- a/README.md +++ b/README.md @@ -1 +1,6 @@ -# {{ .Name }} +# sensu-puppet-handler + +Deregister Sensu entities if they no longer have an associated Puppet node. The +puppet handler requires access to a SSL truststore and keystore, containing a +valid (and whitelisted) Puppet certificate, private key, and CA. The local +Puppet agent certificate, private key, and CA can be used. \ No newline at end of file diff --git a/go.mod b/go.mod index d46f5f9..e54e7ac 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/{{ .GithubUser }}/{{ .GithubProject }} +module github.com/sensu/sensu-puppet-handler go 1.13 diff --git a/main.go b/main.go index d70bb1c..edb456a 100644 --- a/main.go +++ b/main.go @@ -20,10 +20,10 @@ type ConfigOptions struct { var ( handlerConfig = HandlerConfig{ PluginConfig: sensu.PluginConfig{ - Name: "{{ .Name }}", - Short: "{{ .Description }}", + Name: "sensu-puppet-handler", + Short: "Deregister Sensu entities without an associated Puppet node", Timeout: 10, - Keyspace: "sensu.io/plugins/{{ .Name }}/config", + Keyspace: "sensu.io/plugins/sensu-puppet-handler/config", }, }