Skip to content

Commit

Permalink
Add example configurations for staging backend and agents (#1686)
Browse files Browse the repository at this point in the history
Add example configurations for staging backend and agents

Signed-off-by: Nikki Attea <[email protected]>
  • Loading branch information
Nikki Attea authored Jun 18, 2018
1 parent 17a83c5 commit f059bcd
Show file tree
Hide file tree
Showing 5 changed files with 210 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
53 changes: 53 additions & 0 deletions testing/config/staging-agent-0.yml.example
Original file line number Diff line number Diff line change
@@ -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: ""
53 changes: 53 additions & 0 deletions testing/config/staging-agent-1.yml.example
Original file line number Diff line number Diff line change
@@ -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: ""
53 changes: 53 additions & 0 deletions testing/config/staging-agent-2.yml.example
Original file line number Diff line number Diff line change
@@ -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"
50 changes: 50 additions & 0 deletions testing/config/staging-backend.yml.example
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit f059bcd

Please sign in to comment.