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
Convert Cookbook to Resource-Based #350
base: main
Are you sure you want to change the base?
Conversation
c20be41
to
e4c6506
Compare
c454e6f
to
fe2f66b
Compare
@@ -7,3 +7,6 @@ | |||
|
|||
depends 'php' | |||
depends 'apt' | |||
depends 'ondrej_ppa_ubuntu' | |||
depends 'yum-epel' | |||
depends 'yum-remi-chef', '>= 5.0.1' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the thinking behind moving these down into the test cookbook?
The original thinking is that if they're needed for it to install, then they're cookbook deps, not test deps.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@damacus I'm working with @ArtofBugs on this. The thinking is that the cookbook follow similar principles we have with other cookbooks:
- Focus on making it work with the stock OS repos
- Remove management of third-party from the cookbook, but make sure the new resource are flexible enough to deal with those third-party packages (thus why we moved them here).
Basically, the third-party repos are causing a lot of issues and really outside the scope of this cookbook.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My thinking was that since these dependencies are only used by the community
test recipe (the php_install
resource itself doesn't specify where the packages are being installed from), they should be in the test metadata and not the general cookbook metadata. Would it make more sense to move them back?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, sorry for the redundant comment... my GitHub seems to be out of sync a lot today...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, please. Our general thinking is that the cookbook should work off the shelf.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ramereth if that's our new direction then I'm happy to move that way 👍🏼
Best document it over on sous-chefs.org or something similar. That way we can move a lot of our deps to the test cookbook all over the place.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@damacus is the documentation on that site pulled in from the cookbooks automatically?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure, I can check and setup automation for it.
mid you haven’t heard back by Monday from me ping me in slack
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏🏼 👏🏼 👏🏼 Nice
0874b72
to
c3f04f8
Compare
19c6b13
to
d79b400
Compare
@ArtofBugs and @awhittle2 how're you both getting on with this, do you need a hand at all? |
@damacus @ArtofBugs is working on this for me (they're an OSL student) and is still working out the issues while also refactoring our wrapper cookbook with this (which is uncovering other issues sometimes). |
a76a12a
to
d79b400
Compare
600a651
to
abc9e0a
Compare
abc9e0a
to
5d893a5
Compare
Signed-off-by: Lance Albertson <lance@osuosl.org>
Signed-off-by: Lance Albertson <lance@osuosl.org>
Signed-off-by: ArtofBugs <oweng@osuosl.org>
…main branch in all links Signed-off-by: ArtofBugs <oweng@osuosl.org>
Signed-off-by: ArtofBugs <oweng@osuosl.org>
Signed-off-by: ArtofBugs <oweng@osuosl.org>
Signed-off-by: ArtofBugs <oweng@osuosl.org>
Signed-off-by: ArtofBugs <oweng@osuosl.org>
Signed-off-by: ArtofBugs <oweng@osuosl.org>
Signed-off-by: ArtofBugs <oweng@osuosl.org>
Signed-off-by: ArtofBugs <oweng@osuosl.org>
…php_version to use major-minor only Signed-off-by: ArtofBugs <oweng@osuosl.org>
Signed-off-by: ArtofBugs <oweng@osuosl.org>
Signed-off-by: ArtofBugs <oweng@osuosl.org> Signed-off-by: ArtofBugs <74070945+ArtofBugs@users.noreply.github.com>
Signed-off-by: ArtofBugs <74070945+ArtofBugs@users.noreply.github.com>
Signed-off-by: ArtofBugs <74070945+ArtofBugs@users.noreply.github.com>
Signed-off-by: ArtofBugs <74070945+ArtofBugs@users.noreply.github.com>
Signed-off-by: ArtofBugs <74070945+ArtofBugs@users.noreply.github.com>
Signed-off-by: ArtofBugs <74070945+ArtofBugs@users.noreply.github.com>
Signed-off-by: ArtofBugs <74070945+ArtofBugs@users.noreply.github.com>
Signed-off-by: ArtofBugs <74070945+ArtofBugs@users.noreply.github.com>
Signed-off-by: ArtofBugs <74070945+ArtofBugs@users.noreply.github.com>
Signed-off-by: ArtofBugs <74070945+ArtofBugs@users.noreply.github.com>
Signed-off-by: ArtofBugs <74070945+ArtofBugs@users.noreply.github.com>
…e search command ignores preferred state Signed-off-by: ArtofBugs <74070945+ArtofBugs@users.noreply.github.com>
Signed-off-by: ArtofBugs <74070945+ArtofBugs@users.noreply.github.com>
Signed-off-by: ArtofBugs <74070945+ArtofBugs@users.noreply.github.com>
Signed-off-by: ArtofBugs <74070945+ArtofBugs@users.noreply.github.com>
5934269
to
4e846b2
Compare
Signed-off-by: ArtofBugs <74070945+ArtofBugs@users.noreply.github.com>
Signed-off-by: ArtofBugs <74070945+ArtofBugs@users.noreply.github.com>
Signed-off-by: ArtofBugs <74070945+ArtofBugs@users.noreply.github.com>
Description
Removes recipes and attributes; adds custom resources and helpers. Drops direct support for installation from community repos and from source. See UPGRADING.md for more details on changes.
Issues Resolved
#252
Check List
## Unreleased