Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin installation ignores data directory #190

Open
jlact opened this issue Oct 25, 2019 · 0 comments
Open

Plugin installation ignores data directory #190

jlact opened this issue Oct 25, 2019 · 0 comments

Comments

@jlact
Copy link

jlact commented Oct 25, 2019

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 5.5.6
  • Ruby: 2.4.1
  • Distribution: Centos 7
  • Module version: 6.0.0

How to reproduce (e.g Puppet code you use)

class profiles::core::metrics (
Stdlib::Absolutepath $grafana_data_dir   = '/data/grafana',
Hash $grafana_plugins                    = {},
) {
...
  class { 'grafana':
      cfg                      => $grafana_config,
      data_dir                 => $grafana_data_dir,
      plugins                  => $grafana_plugins,
      provisioning_datasources => $grafana_datasources,
  }
...
}
profiles::core::metrics::grafana_plugins:
  grafana-piechart-panel: {}

What are you seeing

Plugin resource gets created and put in default location of /var/lib/grafana/plugins

What behaviour did you expect instead

Plugin resource gets created and put in defined location of /data/grafana/plugins

Any additional information you'd like to impart

The directory of /data/grafana/plugins is created as expected, just not used when the plugin resources are created via the CLI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant