-
Notifications
You must be signed in to change notification settings - Fork 423
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
* add support for looback users #212
Conversation
Any chance you can get a chefspec test in for this? Something like: https://github.com/jjasghar/rabbitmq/blob/master/spec/default_spec.rb#L94-L97 and making sure it shows up as expected? |
I have not done a chef_spec. I'll see if I can get this going... |
Yeah, i respect that. It's a good practice to have, and i'm trying to enforce it for any PRs from the travis build on. |
Tests are in |
👍 |
@sethcall @jjasghar @michaelklishin How about having attributes/default.rb:
templates/default/rabbitmq.config.erb
You might want to test:
Consider to add some descriptions for this new attribute in README.md or even metadata.rb. |
Yes good point. I'll make that change On Mon, Feb 2, 2015 at 8:27 PM, stevecstian notifications@github.com
|
@stevecstian I went with all of your suggestions; I also added a default value in the attributes/default.rb file to let people know the config is available (I almost always go there 1st when learning any cookbook). The readme has no mention of any attributes/default.rb, so I added default_user and default_pass, along with loopback_users... (it would have been weird to have loopback_users all by itself). EDIT: I just noticed you suggested a default of ['guest'] for the value. That'd be OK too, I suppose, but I think I prefer this cookbook not writing values into the config by default. (mimicking a minimal config that you'd have with rabbitmq when installed via package) |
@sethcall You ROCK 🤘 ! I just realized that we have 2 different places to describe attributes:
I'm fine to have a sub-section in I'm OK to have @jjasghar @michaelklishin Any suggestions? /CC @tsupertramp for similar fix in #206 |
@sethcall Yeah! Thanks! |
…ce metadata.rb in readme
I didn't even look at metadata.rb. I've updated it to keep in line with the other attributes. I think your point about specifying an array of users is smart. I tried to address your concern in the readme, by making a specific example of specifying a user. |
👍 |
* add support for looback users
Pretty straightforward change