Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (26 sloc) 1.66 KB

back to resource list


grafana_install

Installs Grafana from the repositories, this will setup the correct apt/yum repo and install it, allows you to supply your own custom repository.

Actions

  • :install

Properties

Name Type Default Description Allowed Values
version String nil Use if you want to install a specific version (Must exist in repo)
repo String https://packages.grafana.com/oss Base Repository
key String https://packages.grafana.com/gpg.key GPG Key for Debian
rpm_key String https://grafanarel.s3.amazonaws.com/RPM-GPG-KEY-grafana GPG key for RPM
deb_distribution String stable Deb Distribution
deb_components Array ['main'] Deb Components

Notes

After install please create a service resource for grafana-server so it can restart on config changes

Examples

Installs Latest Grafana from official repository:

grafana_install 'grafana'

service 'grafana-server' do
  action [:enable, :start]
  subscribes :restart, ['template[/etc/grafana/grafana.ini]', 'template[/etc/grafana/ldap.toml]'], :delayed
end
You can’t perform that action at this time.