Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,10 @@ The download location of a package to be used with the 'package' install method.

The name of the service managed with the 'archive' and 'package' install methods. Defaults to 'grafana-server'.

#####`service_ensure`

The ensure parameter passed to the service. Defaults to 'running'.

#####`version`

The version of Grafana to install and manage. Defaults to the latest version of Grafana available at the time of module release.
Expand Down
1 change: 1 addition & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
$package_name = $::grafana::params::package_name,
$package_source = $::grafana::params::package_source,
$service_name = $::grafana::params::service_name,
$service_ensure = $::grafana::params::service_ensure,
$version = $::grafana::params::version
) inherits grafana::params {

Expand Down
2 changes: 1 addition & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
$manage_package_repo = true
$package_name = 'grafana'
$service_name = 'grafana-server'

$service_ensure = 'running'
$grafana_version = '2.1.0'
$rpm_iteration = '1'
$archive_source = "https://grafanarel.s3.amazonaws.com/builds/grafana-${grafana_version}.linux-x64.tar.gz"
Expand Down
2 changes: 1 addition & 1 deletion manifests/service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}
'package','repo': {
service { $::grafana::service_name:
ensure => running,
ensure => $::grafana::service_ensure,
enable => true
}
}
Expand Down