From f059bcd8d19e7720a3dc67bb2694f79c5c964afe Mon Sep 17 00:00:00 2001 From: Nikki Attea Date: Mon, 18 Jun 2018 12:25:39 -0700 Subject: [PATCH] Add example configurations for staging backend and agents (#1686) Add example configurations for staging backend and agents Signed-off-by: Nikki Attea --- CHANGELOG.md | 1 + testing/config/staging-agent-0.yml.example | 53 ++++++++++++++++++++++ testing/config/staging-agent-1.yml.example | 53 ++++++++++++++++++++++ testing/config/staging-agent-2.yml.example | 53 ++++++++++++++++++++++ testing/config/staging-backend.yml.example | 50 ++++++++++++++++++++ 5 files changed, 210 insertions(+) create mode 100644 testing/config/staging-agent-0.yml.example create mode 100644 testing/config/staging-agent-1.yml.example create mode 100644 testing/config/staging-agent-2.yml.example create mode 100644 testing/config/staging-backend.yml.example diff --git a/CHANGELOG.md b/CHANGELOG.md index 3df965618e..98a1455744 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ prior to assuming the existence of said check. - Added the format `wrapped-json` to sensuctl `configure`, `list` and `info` commands, which is compatible with `sensuctl create`. - Added debug event log with all event data. +- Added yml.example configurations for staging backend and agents. - Added test resources in `testing/config/resources.json` to be used in staging. - Added all missing configuration options to `agent.yml.example` and `backend.yml.example`. diff --git a/testing/config/staging-agent-0.yml.example b/testing/config/staging-agent-0.yml.example new file mode 100644 index 0000000000..f9fa5340d1 --- /dev/null +++ b/testing/config/staging-agent-0.yml.example @@ -0,0 +1,53 @@ +--- +## +# agent configuration +## +id: "staging-agent-0" +#organization: "default" +#environment: "default" +subscriptions: "metrics,misc" +# UPDATE BACKEND URL +#backend-url: +# - "ws://127.0.0.1:8081" + +## +# authentication configuration +## +#user: "agent" +#password: "P@ssw0rd!" + +## +# api configuration +## +#api-host: "127.0.0.1" +#api-port: 3031 +#disable-api: false + +## +# socket configuration +## +#disable-sockets: false +#socket-host: "127.0.0.1" +#socket-port: 3030 + +## +# statsd configuration +## +#statsd-disable: false +#statsd-event-handlers: "" +#statsd-flush-interval: 10 +#statsd-metrics-host: "127.0.0.1" +#statsd-metrics-port: 8125 + +## +# other +## +#cache-dir: "/var/cache/sensu/sensu-agent" +#config-file: "" +#deregister: false +#deregistration-handler: "" +#keepalive-timeout: 120 +#keepalive-interval: 20 +#custom-attributes: "" +log-level: "debug" +#redact: "" diff --git a/testing/config/staging-agent-1.yml.example b/testing/config/staging-agent-1.yml.example new file mode 100644 index 0000000000..4554a2cf73 --- /dev/null +++ b/testing/config/staging-agent-1.yml.example @@ -0,0 +1,53 @@ +--- +## +# agent configuration +## +id: "staging-agent-1" +#organization: "default" +#environment: "default" +subscriptions: "schedules,rbac" +# UPDATE BACKEND URL +#backend-url: +# - "ws://127.0.0.1:8081" + +## +# authentication configuration +## +#user: "agent" +#password: "P@ssw0rd!" + +## +# api configuration +## +#api-host: "127.0.0.1" +#api-port: 3031 +#disable-api: false + +## +# socket configuration +## +#disable-sockets: false +#socket-host: "127.0.0.1" +#socket-port: 3030 + +## +# statsd configuration +## +#statsd-disable: false +#statsd-event-handlers: "" +#statsd-flush-interval: 10 +#statsd-metrics-host: "127.0.0.1" +#statsd-metrics-port: 8125 + +## +# other +## +#cache-dir: "/var/cache/sensu/sensu-agent" +#config-file: "" +#deregister: false +#deregistration-handler: "" +#keepalive-timeout: 120 +#keepalive-interval: 20 +#custom-attributes: "" +log-level: "debug" +#redact: "" diff --git a/testing/config/staging-agent-2.yml.example b/testing/config/staging-agent-2.yml.example new file mode 100644 index 0000000000..e9e0249c8b --- /dev/null +++ b/testing/config/staging-agent-2.yml.example @@ -0,0 +1,53 @@ +--- +## +# agent configuration +## +id: "staging-agent-2" +organization: "ops" +environment: "dev" +subscriptions: "rbac" +# UPDATE BACKEND URL +#backend-url: +# - "ws://127.0.0.1:8081" + +## +# authentication configuration +## +#user: "agent" +#password: "P@ssw0rd!" + +## +# api configuration +## +#api-host: "127.0.0.1" +#api-port: 3031 +#disable-api: false + +## +# socket configuration +## +#disable-sockets: false +#socket-host: "127.0.0.1" +#socket-port: 3030 + +## +# statsd configuration +## +#statsd-disable: false +#statsd-event-handlers: "" +#statsd-flush-interval: 10 +#statsd-metrics-host: "127.0.0.1" +#statsd-metrics-port: 8125 + +## +# other +## +#cache-dir: "/var/cache/sensu/sensu-agent" +#config-file: "" +#deregister: true +#deregistration-handler: "" +#keepalive-timeout: 120 +#keepalive-interval: 20 +custom-attributes: "{\"ec2_access_key\": \"P@ssw0rd\",\"secret\": \"P@ssw0rd\"}" +log-level: "debug" +redact: "ec2_access_key" diff --git a/testing/config/staging-backend.yml.example b/testing/config/staging-backend.yml.example new file mode 100644 index 0000000000..8f61160dd4 --- /dev/null +++ b/testing/config/staging-backend.yml.example @@ -0,0 +1,50 @@ +--- +## +# general configuration +## +state-dir: "/var/lib/sensu" + +## +# agent configuration +## +#agent-host: "[::]" # listen on all IPv4 and IPv6 addresses +#agent-port: 8081 + +## +# api configuration +## +#api-host: "[::]" # listen on all IPv4 and IPv6 addresses +#api-port: 8080 + +## +# ssl configuration +## +#cert-file: "/path/to/ssl/cert.pem" +#key-file: "/path/to/ssl/key.pem" +#trusted-ca-file: "/path/to/trusted-certificate-authorities.pem" +#insecure-skip-tls-verify: false + +## +# store configuration +## +#listen-client-urls: "" +#listen-peer-urls: "" +#initial-cluster: "" +#initial-advertise-peer-urls: "" +#initial-cluster-state: "" +#initial-cluster-token: "" +#name: "" + +## +# dashboard configuration +## +#dashboard-host: "[::]" # listen on all IPv4 and IPv6 addresses +#dashboard-port: 3000 + +## +# other +## +#config-file: "" +#debug: false +#deregistration-handler: "" +log-level: "debug"