-
Notifications
You must be signed in to change notification settings - Fork 289
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
Fixissue197 #241
Fixissue197 #241
Conversation
…ned by default value as bool:true
Neat! Thanks! |
@zanloy Looks like the tests are failing. I am going to revert - can you please update and fix tests! Thanks! |
How are you doing testing? rspec? Rake? |
https://github.com/sensu/sensu-puppet/tree/master/spec and here is the failed build https://travis-ci.org/sensu/sensu-puppet/builds/35543287 |
I can't fix that test requirement. It's the File['/etc/sensu/plugins'] declaration that was actually causing the issue. I have to rename the file declaration to prevent puppet from redeclaring what is already declared in package.pp:63. I have tested in my own environment using the following declaration that causes the initial error: class { 'sensu': sensu::plugin { 'puppet:///modules/profiles/sensu/plugins': |
Here is the error thrown from the initial issue: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate declaration: File[/etc/sensu/plugins] is already declared in file /etc/puppetlabs/puppet/enviro |
I'm very new to github but if I can change the rspec test then I can get it to pass. I wasn't sure if changing test was bad etiquette or not. |
This should fix issue #197, the final commit removes an unnecessary function call that errored if you did not define "install_repo => 'true'" (notice single quotes) in your class declaration. The default was true which is already a bool.