Simplifying default configuration.
This commit is contained in:
parent
d131688b55
commit
f4e5877482
2 changed files with 6 additions and 20 deletions
|
@ -12,13 +12,8 @@
|
||||||
{{- $locale := (output "echo" "$LANG") }}
|
{{- $locale := (output "echo" "$LANG") }}
|
||||||
{{- $name := (default "Brian Zalewski" (env "FULL_NAME")) -}}
|
{{- $name := (default "Brian Zalewski" (env "FULL_NAME")) -}}
|
||||||
{{- $restricted := (default false (env "WORK_ENVIRONMENT")) -}}
|
{{- $restricted := (default false (env "WORK_ENVIRONMENT")) -}}
|
||||||
{{- $slack_webhook_url := (default "" (env "SLACK_WEBHOOK_URL")) -}}
|
|
||||||
{{- $slack_netdata_alarms_channel := (default "" (env "SLACK_NETDATA_ALARMS_CHANNEL")) -}}
|
|
||||||
{{- $snapcraftEmail := (default "brian@megabyte.space" (env "SNAPCRAFT_EMAIL"))}}
|
{{- $snapcraftEmail := (default "brian@megabyte.space" (env "SNAPCRAFT_EMAIL"))}}
|
||||||
{{- $surgeshUsername := (default "brian@megabyte.space" (env "SURGESH_USERNAME")) -}}
|
{{- $surgeshUsername := (default "brian@megabyte.space" (env "SURGESH_USERNAME")) -}}
|
||||||
{{- $syslog_netdata_enable := (default false (env "SYSLOG_NETDATA_ENABLE")) -}}
|
|
||||||
{{- $syslog_netdata_facility := (default "local6" (env "SYSLOG_NETDATA_FACILITY")) -}}
|
|
||||||
{{- $syslog_netdata_recipients := (default "" (env "SYSLOG_NETDATA_RECIPIENTS")) -}}
|
|
||||||
{{- $timezone := (default "America/New_York" (env "TIMEZONE")) -}}
|
{{- $timezone := (default "America/New_York" (env "TIMEZONE")) -}}
|
||||||
{{- $toolchains := list "CLI-Extras" "Docker" "Go" "Kubernetes" "Web-Development" -}}
|
{{- $toolchains := list "CLI-Extras" "Docker" "Go" "Kubernetes" "Web-Development" -}}
|
||||||
{{- $work := (default false (env "WORK_ENVIRONMENT")) -}}
|
{{- $work := (default false (env "WORK_ENVIRONMENT")) -}}
|
||||||
|
@ -164,14 +159,7 @@ data:
|
||||||
- 192.168.1.0/24
|
- 192.168.1.0/24
|
||||||
qubes: {{ ne (stat (joinPath "usr" "bin" "qubes-session")) false }}
|
qubes: {{ ne (stat (joinPath "usr" "bin" "qubes-session")) false }}
|
||||||
restricted: {{ $restricted }}
|
restricted: {{ $restricted }}
|
||||||
slack:
|
|
||||||
webhook_url: "{{ $slack_webhook_url }}"
|
|
||||||
netdata_alarms_channel: "{{ $slack_netdata_alarms_channel }}"
|
|
||||||
softwareGroup: "{{ $softwareGroup }}"
|
softwareGroup: "{{ $softwareGroup }}"
|
||||||
syslog:
|
|
||||||
config: {{ $syslog_netdata_enable }}
|
|
||||||
netdata_facility: "{{ $syslog_netdata_facility }}"
|
|
||||||
netdata_recipients: "{{ $syslog_netdata_recipients }}"
|
|
||||||
type: "{{ $chassisType }}"
|
type: "{{ $chassisType }}"
|
||||||
work: {{ $work }}
|
work: {{ $work }}
|
||||||
toolchains:
|
toolchains:
|
||||||
|
|
|
@ -211,7 +211,7 @@ sendsms=""
|
||||||
# EMAIL_SENDER="User Name <user@domain>"
|
# EMAIL_SENDER="User Name <user@domain>"
|
||||||
# EMAIL_SENDER="'User Name' <user@domain>"
|
# EMAIL_SENDER="'User Name' <user@domain>"
|
||||||
# EMAIL_SENDER="\"User Name\" <user@domain>"
|
# EMAIL_SENDER="\"User Name\" <user@domain>"
|
||||||
EMAIL_SENDER=""
|
EMAIL_SENDER="'Netdata Notifications <no-reply@{{ .host.hostname }}.{{ .host.domain }}"
|
||||||
|
|
||||||
# enable/disable sending emails
|
# enable/disable sending emails
|
||||||
SEND_EMAIL="YES"
|
SEND_EMAIL="YES"
|
||||||
|
@ -473,20 +473,20 @@ DEFAULT_RECIPIENT_TELEGRAM=""
|
||||||
# "RECIPIENT1 RECIPIENT2 ..."
|
# "RECIPIENT1 RECIPIENT2 ..."
|
||||||
|
|
||||||
# enable/disable sending slack notifications
|
# enable/disable sending slack notifications
|
||||||
SEND_SLACK="YES"
|
# SEND_SLACK="YES"
|
||||||
|
|
||||||
# Login to your slack.com workspace and create an incoming webhook, using the "Incoming Webhooks" App: https://slack.com/apps/A0F7XDUAZ-incoming-webhooks
|
# Login to your slack.com workspace and create an incoming webhook, using the "Incoming Webhooks" App: https://slack.com/apps/A0F7XDUAZ-incoming-webhooks
|
||||||
# Do not use the instructions in https://api.slack.com/incoming-webhooks#enable_webhooks, as those webhooks work only for a single channel.
|
# Do not use the instructions in https://api.slack.com/incoming-webhooks#enable_webhooks, as those webhooks work only for a single channel.
|
||||||
# You need only one for all your netdata servers (or you can have one for each of your netdata).
|
# You need only one for all your netdata servers (or you can have one for each of your netdata).
|
||||||
# Without the app and a webhook, netdata cannot send slack notifications.
|
# Without the app and a webhook, netdata cannot send slack notifications.
|
||||||
SLACK_WEBHOOK_URL="{{ .host.slack.webhook_url }}"
|
# SLACK_WEBHOOK_URL=""
|
||||||
|
|
||||||
# if a role's recipients are not configured, a notification will be send to:
|
# if a role's recipients are not configured, a notification will be send to:
|
||||||
# - A slack channel (syntax: '#channel' or 'channel')
|
# - A slack channel (syntax: '#channel' or 'channel')
|
||||||
# - A slack user (syntax: '@user')
|
# - A slack user (syntax: '@user')
|
||||||
# - The channel or user defined in slack for the webhook (syntax: '#')
|
# - The channel or user defined in slack for the webhook (syntax: '#')
|
||||||
# empty = do not send a notification for unconfigured roles
|
# empty = do not send a notification for unconfigured roles
|
||||||
DEFAULT_RECIPIENT_SLACK="{{ .host.slack.netdata_alarms_channel }}"
|
# DEFAULT_RECIPIENT_SLACK=""
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# Microsoft Teams (office.com) global notification options
|
# Microsoft Teams (office.com) global notification options
|
||||||
|
@ -727,7 +727,7 @@ IRC_REALNAME=""
|
||||||
# enable/disable sending syslog notifications
|
# enable/disable sending syslog notifications
|
||||||
# NOTE: make sure you have everything else configured the way you want
|
# NOTE: make sure you have everything else configured the way you want
|
||||||
# it _before_ turning this on.
|
# it _before_ turning this on.
|
||||||
SEND_SYSLOG="{{ if eq true .host.syslog.config }}YES{{ else }}NO{{ end }}"
|
SEND_SYSLOG="YES"
|
||||||
|
|
||||||
# A note on log levels and facilities:
|
# A note on log levels and facilities:
|
||||||
#
|
#
|
||||||
|
@ -760,7 +760,7 @@ SEND_SYSLOG="{{ if eq true .host.syslog.config }}YES{{ else }}NO{{ end }}"
|
||||||
|
|
||||||
# This controls which facility is used by default for logging. Defaults
|
# This controls which facility is used by default for logging. Defaults
|
||||||
# to local6.
|
# to local6.
|
||||||
SYSLOG_FACILITY='{{ if eq true .host.syslog.config }}{{ .host.syslog.netdata_facility }}{{ else }}local6{{ end }}'
|
SYSLOG_FACILITY='local6'
|
||||||
|
|
||||||
# If a role's recipients are not configured, use the following.
|
# If a role's recipients are not configured, use the following.
|
||||||
# (empty = do not send a notification for unconfigured roles)
|
# (empty = do not send a notification for unconfigured roles)
|
||||||
|
@ -781,8 +781,6 @@ SYSLOG_FACILITY='{{ if eq true .host.syslog.config }}{{ .host.syslog.netdata_fac
|
||||||
# daemon listening on port 514 on 'loghost' using the daemon facility and
|
# daemon listening on port 514 on 'loghost' using the daemon facility and
|
||||||
# notice log level:
|
# notice log level:
|
||||||
# DEFAULT_RECIPIENT_SYSLOG='daemon.notice@loghost:514/netdata'
|
# DEFAULT_RECIPIENT_SYSLOG='daemon.notice@loghost:514/netdata'
|
||||||
#
|
|
||||||
DEFAULT_RECIPIENT_SYSLOG="{{ if eq true .host.syslog.config }}{{ .host.syslog.netdata_recipients }}{{ else }}netdata{{ end }}"
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# iOS Push Notifications
|
# iOS Push Notifications
|
||||||
|
|
Loading…
Reference in a new issue