Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
2 contributors

Users who have contributed to this file

@Xorima @kormotodor
49 lines (37 sloc) 2.81 KB

back to resource list


grafana_config_smtp

Configures the core smtp section of the configuration http://docs.grafana.org/installation/configuration/#smtp

Introduced: v4.0.0

Actions

:create

Properties

Name Type Default Description Allowed Values
enabled true, false false Enable use of smtp/email true, false
host String localhost:25 smtp host
user String In case of SMTP auth.
password String In case of SMTP auth.
cert_file String File path to a cert file
key_file String File path to a key file
skip_verify true, false false Verify SSL for smtp server true, false
from_address String "admin@grafana-#{node['hostname']}.#{node['domain'].nil? ? 'local' : node['domain']}" Address used when sending out emails
from_name String Grafana Name to be used when sending out emails
ehlo_identity String Name to be used as client identity for EHLO in SMTP dialog
conf_directory String /etc/grafana The directory where the Grafana configuration resides Valid directory
config_file String /etc/grafana/grafana.ini The Grafana configuration file Valid file path
cookbook String grafana Which cookbook to look in for the template
source String grafana.ini.erb Name of the template

Examples

grafana_config_smtp 'grafana'
grafana_config_smtp 'grafana' do
  enabled true
  host 'smtp.example.com:25'
  user 'grafana_user'
  password 'MySuperSecretPassword'
  from_address 'monitoring@example.com'
end
You can’t perform that action at this time.