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

userparameter in hiera #90

Closed
pelacables opened this issue May 25, 2015 · 3 comments
Closed

userparameter in hiera #90

pelacables opened this issue May 25, 2015 · 3 comments
Labels
bug Something isn't working question

Comments

@pelacables
Copy link

Hello,

I've installed your puppet module in my environment. I'm using exported_resources and my nodes are automatically added to zabbix thanks to your module.
I'm following the instructions in https://github.com/dj-wasabi/puppet-zabbix#usage-zabbix-userparameters and configured some userparemeters in hiera:

zabbix::userparameter::data:
    DiskIO_userparameters:
    source: 'puppet:///modules/zabbix/diskio.conf'
    template: 'DiskIO'

But the userparameter is not copied to the client.

I've hardcoded manage_reosurces=true in the module.

If I call it as zabbix:userparameters:

zabbix::userparameters { 'diskIO' :
    source   => 'puppet:///modules/zabbix/diskio.conf',
    template => 'DiskIO',
}

It works as expected.

So, at this point I'm not sure if I faced a bug in the zabbix/hiera usage or in the doc or something wrong in my code.

Am I doing something wrong? Do you have any working example?

Many thanks for your great work in this module.

Cheers,
A

@dj-wasabi
Copy link
Contributor

Hi pelacables,

Thank you for making time to create this issue.
Thats an good question that I can't answer right now. Will take a look at it.

I'll let you know when I found it.

Kind regards,
Werner

@dj-wasabi dj-wasabi added bug Something isn't working question labels May 25, 2015
@lamawithonel
Copy link

YAML is indentation-sensitive. Try this:

zabbix::userparameter::data:
    DiskIO_userparameters:
        source: 'puppet:///modules/zabbix/diskio.conf'
        template: 'DiskIO'

@dj-wasabi
Copy link
Contributor

Solution provided by @lamawithonel, so I'll close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question
Projects
None yet
Development

No branches or pull requests

3 participants