Skip to content
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


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


  • :install


Name Type Default Description Allowed Values
version String nil Use if you want to install a specific version (Must exist in repo)
repo String Base Repository
key String GPG Key for Debian
rpm_key String GPG key for RPM
deb_distribution String stable Deb Distribution
deb_components Array ['main'] Deb Components


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


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
You can’t perform that action at this time.