Skip to content

Commit

Permalink
add support for setting the "gridname" in gmetad.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Hoblitt committed Oct 18, 2012
1 parent 0009771 commit dda8a6b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion manifests/gmetad/config.pp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
class ganglia::gmetad::config(
$clusters
$clusters,
$gridname = false,
) {
include ganglia::gmetad::install
include ganglia::gmetad::service
Expand Down
4 changes: 4 additions & 0 deletions templates/gmetad.conf.el6.erb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ data_source "<%= data_source['name'] -%>"<% if data_source['polling_interval'] t
# The name of this Grid. All the data sources above will be wrapped in a GRID
# tag with this name.
# default: unspecified
<% if gridname then -%>
gridname "<%= gridname %>"
<% else -%>
# gridname "MyGrid"
<% end -%>
#
#-------------------------------------------------------------------------------
# The authority URL for this grid. Used by other gmetads to locate graphs
Expand Down

0 comments on commit dda8a6b

Please sign in to comment.