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

agent_registration uses 'recipe' instead of 'recipes' in search #148

Open
odyssey4me opened this issue Mar 14, 2014 · 4 comments
Open

agent_registration uses 'recipe' instead of 'recipes' in search #148

odyssey4me opened this issue Mar 14, 2014 · 4 comments

Comments

@odyssey4me
Copy link

I've used a role to assign the zabbix::server, zabbix::web, zabbix and zabbix::agent_registration recipes to a server. The agent registration doesn't work because it uses 'recipe' instead of 'recipes' in the search. This means that it'll never work unless the recipe is directly assigned to the server, which is not ideal.

@laradji
Copy link
Owner

laradji commented Mar 14, 2014

Yes it is it's in the attribute file
default['zabbix']['web']['fqdn'] = node['fqdn']

I think we need to remove this in the web.rb recipe :
node.normal['zabbix']['web']['fqdn'] = node['fqdn'] if node['zabbix']['web']['fqdn'].nil?

It make no sense and i hate to push attr to node when attribute file can do the job.

@laradji
Copy link
Owner

laradji commented Mar 14, 2014

@guilhem what do you think ? i want a +1 :)

@odyssey4me
Copy link
Author

@laradji whoops - I changed the topic of the issue without seeing that you had replied. ;)

With regards to the attribute - it should be set in the web default attribute file, not the common default attribute file. I'll give that a 👍

In fact, this is already raised in #141

@guilhem
Copy link
Collaborator

guilhem commented Mar 14, 2014

Yes we have to do like say in #141 :)

here is an example: https://github.com/ceph/ceph-cookbooks/blob/master/recipes/mon.rb#L22

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

3 participants