Puppet Class: grafana::database::sqlite3

Defined in:
manifests/database/sqlite3.pp

Overview

Parameters:

  • path (String) (defaults to: 'grafana.db')

See Also:



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'manifests/database/sqlite3.pp', line 8

class grafana::database::sqlite3 (
  String $path = 'grafana.db',
) {

  if ! defined(Class['::grafana']) {
    fail('You must include the grafana base class before using the grafana::database::sqlite3 class')
  }

  $config = delete_undef_values({
    'database/type' => 'sqlite3',
    'database/path' => $path,
  })

  $config.each |String $setting, Any $value| {
    grafana_ini_setting { $setting:
      value => $value,
    }
  }
}