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4.0
- 10.3.1
- 10.3.0
- 10.2.13
- 10.2.12
- 10.2.11
- 10.2.10
- 10.2.9
- 10.2.8
- 10.2.7
- 10.2.6
- 10.2.5
- 10.2.4
- 10.2.3
- 10.2.2
- 10.2.1
- 10.2.0
- 10.1.0
- 10.0.6
- 10.0.5
- 10.0.4
- 10.0.3
- 10.0.2
- 10.0.1
- 10.0.0
- 9.7.1
- 9.7.0
- 9.6.2
- 9.6.1
- 9.6.0
- 9.5.2
- 9.5.1
- 9.5.0
- 9.4.1
- 9.4.0
- 9.3.0
- 9.2.1
- 9.2.0
- 9.1.0
- 9.0.0
- 8.8.0
- 8.7.1
- 8.7.0
- 8.6.0
- 8.5.0
- 8.4.2
- 8.4.1
- 8.4.0
- 8.3.0
- 8.2.0
- 8.1.1
- 8.1.0
- 8.0.0
- 7.1.1
- 7.1.0
- 7.0.0
- 6.0.1
- 6.0.0
- 5.1.1
- 5.1.0
- 5.0.0
- 4.4.0
- 4.3.0
- 4.2.0
- 4.1.0
- 4.0.2
- 4.0.1
- 4.0.0
- 3.0.1
- 3.0.0
- 2.2.1
- 2.2.0
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.0
- 1.5.5
- 1.5.4
- 1.5.3
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.4
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.0
- 1.1.1
- 1.1.0
- 1.0.6
Installs/Configures Grafana Server
cookbook 'grafana', '= 4.0.1', :supermarket
knife supermarket install grafana
knife supermarket download grafana
Grafana Cookbook
Overview
This cookbook provides a complete installation and configuration of Grafana. This includes the ability to manage dashboards, datasources, orginizations, plugins and users with Chef using Custom Resources.
Requirements
- Chef Client 13+
Platforms
This cookbook officially supports and is tested against the following platforms:
- Ubuntu >= 16.04
- Debian >= 8
- CentOS/Redhat >= 6
PRs are welcome to add support for additional platforms.
Configuration Resource Features
We supply many different configuration resources, these all rely on the base config resource being called
For any LDAP the base config resource is: grafana_config_ldap
For any core configuration resources, the base config resource is: grafana_config
Resources
- grafana_config
- grafana_config_alerting
- grafana_config_auth
- grafana_config_dashboards
- grafana_config_database
- grafana_config_dataproxy
- grafana_config_emails
- grafana_config_enterprise
- grafana_config_explore
- grafana_config_log
- grafana_config_ldap
- grafana_config_ldap_group_mappings
- grafana_config_ldap_servers
- grafana_config_metrics
- grafana_config_panels
- grafana_config_paths
- grafana_config_quotas
- grafana_config_security
- grafana_config_server
- grafana_config_session
- grafana_config_smtp
- grafana_config_snapshots
- grafana_config_users
- grafana_dashboard
- grafana_datasource
- grafana_install
- grafana_orginization
- grafana_plugin
- grafana_user
License & Authors
- Author:: Jason Field (https://github.com/xorima)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. jhenry82
Based on chef-kibana
cookbook by:
- John E. Vincent lusis.org+github.com@gmail.com
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
CHANGELOG for grafana
This file is used to list changes made in each version of grafana.
Unreleased
4.0.1 (2019-04-2)
- Added support for Amazon Linux 2
4.0.0 (2019-03-24)
- Migrate existing LWRP to Custom Resources
- Create new config resources to be able to configure the grafana instance
- Created new ldap config resources
- Create install resource to install Grafana, does not do any configuration
- Update repo location to new grafana repos (#220)
- Add login_cookie_name property to config_auth resource
- Add root_url property to config_server resource
- Added documentation for all new resources
3.0.1 (2018-11-27)
- Add support for amazon. Chef 13 and later identifies platform_family as 'amazon': https://docs.chef.io/deprecations_ohai_amazon_linux.html
- Update to Grafana 5.3.4
- Drop support for Ubuntu 14.04
- Add support for Ubuntu 18.04
3.0.0 (2018-04-29)
- Require Chef 13 or later
- Remove use_inline_resources and why_run statements from LWRPs which are no longer necessary with Chef 13+
- Remove the dependency on apt/yum cookbooks since we can setup apt/yum repositories with Chef 13
- Switch package installs to multi-package installs to speed up Chef runs
- Remove the 'name' LWRP properties since Chef creates these automatically for us
- Switch testing to InSpec / Delivery local mode
- Add codeowners, contributing.md, and codeofconduct.md files
- Fix failures in the ChefSpecs and simplify the specs
- Remove ChefSpec matchers since these are autogenerated by ChefSpec now
- Sped up ChefSpec runtimes by enabling caching
- Drop support for Debian 7 since it goes EOL in a few weeks
2.2.1 (2018-04-03)
- Add exception handling for JSON::ParserError #155 by @ton31337
- new attribute node[grafana][restart_on_upgrade] #164 by InformatiQ
- Switch to
nginx
cookbook to create the nginx site instead of manually templating out the file
2.2.0 (2017-10-12)
- Switch to linter
cookstyle
- Fix serverspec tests #180
- Upgrade grafana version
- Fix env file
2.1.3 (2015-08-24)
- Fix a bug in error message handling code #80
2.1.2 (2015-08-24)
- Fix Grafana package checksums #79
2.1.1 (2015-08-20)
- Update Grafana default version to 2.1.2
- Ensure we're displaying better messages in some edge cases with HTTP requests #76
2.1.0 (2015-08-17)
- Update Grafana default version to 2.1.1
- Make sure upgrading via deb file don't fail on configuration conflict #74
- Ensure installing a new version trigger a server restart
- Add packages checksum to ensure expected file and prevent unecessary re-download (see warnings section below)
- Installation package file only if present and/or modified (@arifcse019) #73
- Fix start service making it just be restarted at the end of the configuration (@HelioCampos) #71
- Improve error messages during dashboard creation #64
- Update ServerSpec test to check
:stderr
for curl output
When using the default's file installation, we've added checksum for package files if you set the grafana version to something different than the default you will also need set the checksum for the package you're expecting to use:
# Example if your Grafana version is different from the cookbook default node['grafana']['version'] = '2.1.0' # For debian platform family node['grafana']['file']['checksum']['deb'] = 'b824c8358ff07f76f0d9eb35e9441f6f9e591819ad8bc70db4b0c904a8e7130e' # For rhel platform family node['grafana']['file']['checksum']['rpm'] = '1b436b286bd464e65eeb2a9b393da0986569fe483e1053b01c092b2e590d8399'
2.0.0 (2015-06-28)
- Major overhaul of the cookbook to support Grafana 2.x
1.x dev
- Ensure setting
node['grafana']['listen_address']
tonil
render a valid nginx config file (@lanyonm) #39
1.5.5 (2015-03-29)
- Update
elasticsearch
git url inBerksfile
for elasticsearch to elastic rename (@lanyonm) #38 - Allow nginx to listen on all interface when
node['grafana']['webserver_listen']
isnil
orfalse
(@BackSlasher) #37 - Fix base64 encoding appending a newline in nginx config for basic auth (@BackSlasher) #36
1.5.4 (2015-02-22)
- Update
Grafana
to1.9.1
(@osigida) #32 - Interpolate "version" and "type" attributes to build grafana file url (Bernhard Köhler) #31 and (Olivier Bazoud) #29
- Add support for lambdas in datasources. This change makes it possible to evaluate derived attributes correctly. (Bernhard Köhler) #30 and #25
1.5.3 (2014-11-15)
- Add support for Centos#28
1.5.2 (2014-11-04)
- Allow configuration of
default_route
via attributes (Miguel Landaeta) #26 - Add support for grafana admin password option (Andrew Goktepe) #23
1.5.1 (2014-10-08)
- Update
Grafana
to1.8.1
1.5.0 (2014-09-22)
- Update
Grafana
to1.8.0
warning
- Check for the presence of
node['grafana']['es_role']
andnode['grafana']['graphite_role']
instead ofnode['grafana']['es_server']
andnode['grafana']['graphite_server']
to know if we should search and replacedefault['grafana']['es_server']
anddefault['grafana']['graphite_server']
(Jonathon W. Marshall) #22
1.4.2 (2014-09-14)
- Fix attributes doc in README
1.4.1 (2014-09-12)
- Do not use
template
resource'shelpers
method to bring back olderChef
compatibility.
1.4.0 (2014-09-12)
- Update
Grafana
to1.8.0-rc1
- Add
default['grafana']['window_title_prefix']
anddefault['grafana']['search_max_results']
config attributes.
warnings
-
Grafana 1.8.0-rc1
upgraded toJQuery
to2.1.1
and thus dropped support forInternet Explorer 7 and 8
1.3.4 (2014-08-19)
- Update attributes in README for better Supermarket display
- Update
foodcritic
andrubocop
(Tim Smith) #21 - Remove mention of
zipfile
in README and attributes (Thanks to Gref Fitzgerald) - Fix
default['grafana']['install_type']
documentation to have the correct possible values:git
andfile
(Fred Hatfull) #20 - Fix
default['grafana']['webserver']
documentation not to includeapache
as possible value. (osigida) #19
1.3.2 (2014-08-12)
- Update default
Grafana
to1.7.0
. (Greg Fitzgerald) #18.
1.3.1 (2014-08-07)
- Update
Grafana
to1.7.1-rc1
. It fixes a regression introduced when merging #16. Thanks to Greg Fitzgerald for reporting it.
1.3.0 (2014-07-31)
- Allow attribute configuration for datasources (Grégoire Seux) #16
1.2.0 (2014-07-11)
breaking changes
- Update
ark
dependency to>= 0.7.2
and deprecation warning by usingstrip_component
(Grégoire Seux) #15
minor changes
- Support newer
nginx
cookbook by specifyingtemplate: false
when enabling thegrafana
site (Grégoire Seux) #15
1.1.1 (2014-07-10)
- Update default attributes to install Grafana 1.6.1 (Greg Fitzgerald) #14
1.1.0 (2014-06-20)
-
config.js
data forgraphite
andelasticsearch
changed back to use: -
window.location.protocol+"//"+window.location.hostname+":"+window.location.port+"/_graphite"
window.location.protocol+"//"+window.location.hostname+":"+window.location.port
The idea is to allow external access without CORS
problems or credential leaks in config.js
.
Value for
default['grafana']['install_path']
changed from/opt
to/srv/apps
(Greg Fitzgerald) #13Default installation uses zip file instead of git (Greg Fitzgerald) #13
Major cleanup and additional tests (Greg Fitzgerald) #13
1.0.6 (2014-06-17)
- Releasing to opscode community site Thanks to @gregf in #12
1.0.5 (2014-06-17)
-
config.js
was unintentionally changed to use node info to configure graphite and elasticsearch index. - Value for
default['grafana']['grafana_index']
changed fromgrafana-dash
tografana-index
(Greg Fitzgerald) #11 - Update grafana to 1.6.0 (Greg Fitzgerald) #11
1.0.4 (2014-05-18)
- Update config.js based on the one in 1.5.4
- Update to grafana 1.5.4
- Update to new download URL
1.0.3 (2014-04-12)
- Add some basic specs, foodcritic, knife test and enable TravisCI
- Fix error with undefined grafana_user variable Thanks to @klamontagne
- Fix timezone value quoting in config.js (Anatoliy D.) #9
- Update grafana to 1.5.2 (Grégoire Seux) #7
- Don't set normal attribute
node['nginx']['default_site_enabled']
(Grégoire Seux) #5 - Remove
"use strict";
fromconfig.js
as it seems to not be present in grafana releases, thanks to @iiro for proposing it in #1 - Don't search when
node['grafana']['es_server']
ornode['grafana']['graphite_server']
is set and don't use normal attributes (Grégoire Seux) #3 - Refactor and separate install in two recipes:
install_git
andinstall_file
(Grégoire Seux) #2
1.0.2 (2014-03-23)
- Update file release to 1.5.1
1.0.1 (2014-03-10)
- Update file release to 1.5.0
1.0.0 (2014-03-01)
- Initial release of grafana
Collaborator Number Metric
4.0.1 passed this metric
Contributing File Metric
4.0.1 passed this metric
Foodcritic Metric
4.0.1 passed this metric
No Binaries Metric
4.0.1 passed this metric
Testing File Metric
4.0.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
4.0.1 passed this metric
4.0.1 passed this metric
4.0.1 passed this metric
Foodcritic Metric
4.0.1 passed this metric
No Binaries Metric
4.0.1 passed this metric
Testing File Metric
4.0.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
4.0.1 passed this metric
4.0.1 passed this metric
4.0.1 passed this metric
Testing File Metric
4.0.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
4.0.1 passed this metric
4.0.1 failed this metric
4.0.1 passed this metric