-
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
Refactor policy resource #587
Conversation
Fixes an idempotency issue where ohai is reloaded every run. The reload is now triggered only when the `apt_package` resource is updated.
- Modernises LWRP to a custom resource - Fixes idempotency issue - Renames `parameters` to `definition` to more acurately reflect RabbitMQ's language - Removes `list` action from resource
Thank you. The suite needs a revision because CentOS 7 and 8 are basically done. We have |
Some test failures with Dokken are due to test-kitchen/dokken-images#57, trying to downgrade Docker Desktop to compare. Welp. |
@fozboz can you please give the tip of |
Unit tests are passing for me now 👍 Cookstyle still gives me a lot of warnings, and foodcritic has been deprecated. What version of Chef do you want to target? Still >13? That's very old now. Are you happy for me to modernise this as I see fit? I'm having some issues with integration tests, too. Some examples:
Before I go digging, can you confirm these suites are working for you? |
Yeah, it can be that I messed up the Erlang version numbers for some distributions and installation methods. Erlang Solutions does not provide packages for Debian 11, for example. Amazon Linux 2022 is based on Fedora 34+ but You are free to look into it, of course. But assuming you run Docker Desktop 4.2.0, most Dokken tests pass. They do for Debian 10, CentOS Stream 8 and Fedora, which is good enough a sanity check if you ask me. |
As for the style issues, feel free to address them. I hate FoodCritic with passion, having to update to its rules and rename them is annoying but other contributors saw value in having it, so |
Yup, happy to wait for a few days. Thank you! |
Proposed Changes
This PR contains two commits. The first simply addresses an issue with the
ohai
resource running on every converge.The second refactors
rabbitmq_policy
from an LWRP to a custom resource. This should address #500.Types of Changes
Checklist
CONTRIBUTING.md
documentFurther Comments
I removed the
:list
action. I didn't see anywhere it was used, and Chef resources should do something, not just return information.