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

Resources ignoring organization parameter #279

Open
none0nfg opened this issue Apr 1, 2022 · 0 comments
Open

Resources ignoring organization parameter #279

none0nfg opened this issue Apr 1, 2022 · 0 comments

Comments

@none0nfg
Copy link

none0nfg commented Apr 1, 2022

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 7
  • Ruby:
/opt/puppetlabs/puppet/bin# ./ruby --version
ruby 2.7.3p183 (2021-04-05 revision 6847ee089d) [x86_64-linux]
  • Distribution:
  • Module version: 10.0.1

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

Dashboards, Folders, Datasources ignoring organization param

      grafana_organization { 'SUT':
        ensure           => present,
        grafana_password => $admin_password,
        id               => 2,
      }

      grafana_datasource { 'Prometheus':
        ensure           => present,
        type             => 'prometheus',
        access_mode      => 'proxy',
        organization     => 2,
        is_default       => true,
      }

      grafana_folder { 'SUT_Dashboards':
        ensure           => present,
        organization     => 2,
        require          => [Grafana_organization['SUT']]
      }

      grafana_dashboard { 'Node_exporter':
        ensure           => present,
        folder           => 'Dashboards',
        organization     => 'SUT',
      }

I've remove some fields.

What are you seeing

Resources creates in MainOrg

What behaviour did you expect instead

Resources will be created in org with id 2 or name SUT

Output log

Nothig. resources created, but in another org

Any additional information you'd like to impart

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