Sha256: 0094dbc890ebaca8db7e8feb05115991eb435b610cf6e5287048dc256276c814

Contents?: true

Size: 470 Bytes

Versions: 2

Compression:

Stored size: 470 Bytes

Contents

define profile::grafana::dashboard (
  $metrics_server_id,
) {
  # Swap dots for underscores as grafana deasn't like dots
  $safe_title = regsubst($title,'\.','_','G')

  file { "/opt/grafana/app/dashboards/${safe_title}.json":
    ensure  => file,
    owner   => 'root',
    group   => 'root',
    mode    => '0664',
    content => epp('profile/dashboard.json.epp',{
      'title'             => $title,
      'metrics_server_id' => $metrics_server_id,
      }),
  }
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
onceover-4.0.0 spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/grafana/dashboard.pp
onceover-3.22.0 spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/grafana/dashboard.pp