Skip to content

[WIP] Add communication options to PuppetDB/Zabbix#41

Open
bastelfreak wants to merge 5 commits into
masterfrom
feature-puppetdb-zabbix
Open

[WIP] Add communication options to PuppetDB/Zabbix#41
bastelfreak wants to merge 5 commits into
masterfrom
feature-puppetdb-zabbix

Conversation

@bastelfreak

Copy link
Copy Markdown
Member

No description provided.

this commit provides a simple config handler which parses yaml files. We
also provide a basic yaml config with values that we later need for our
puppetdb/zabbix integration. gitignore gets extended to ignore the live
config because it can contain sensitive data (we also extend the doc in
virtapi_app.rb)
@bastelfreak

Copy link
Copy Markdown
Member Author

this is currently somehow broken:

~/virtapi $ bundle exec pry
[1] pry(main)> require './virtapi_app.rb'
NameError: uninitialized constant ZabbixNode::ZabbixHelper
from /home/bastelfreak/virtapi/models/zabbix_node.rb:2:in `<class:ZabbixNode>'
[2] pry(main)>

has anybody an idea why the include doesn't work?

@bastelfreak bastelfreak force-pushed the feature-puppetdb-zabbix branch from 9e74b13 to 6f8de23 Compare January 17, 2016 16:06
we now ship a YAML file so we should ensure that it works properly. This
defines yamllinter in the Gemfile, loads and defines the Rake task and
specifies the path to config/*.yml for linting
@bastelfreak

Copy link
Copy Markdown
Member Author

fixed the issue by changing the require order and fixing a typo in a filename

two issues: the zabbix module file had the wrong name ( missing b) and
the require in the virtapi_app had the wrong order
@bastelfreak bastelfreak force-pushed the feature-puppetdb-zabbix branch from 23fb69f to 1ee6fcb Compare January 17, 2016 20:12
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

Successfully merging this pull request may close these issues.

1 participant