-
-
Notifications
You must be signed in to change notification settings - Fork 879
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 missing stream dirs and create streams from hiera #879
Conversation
This creates the missing streams-available and streams-enabled directories if stream is true and allow the streamhost resources to be created from hiera. Some simple tests are included.
Thanks for the PR @andybotting! |
@andybotting: This affects #878 somewhat. I've rebased against your PR, but would love it if you can take a look and see if my changes seem sane (and if you have any suggestions to make the code cleaner or less spaghetti like). I'm adding some additional tests related to this in there as well. |
What's the point of only creating certain dirs if When creating the streams-available dir is wrapped in an I get:
after adding a 'require' on that file (something I added in #878, modeling what we did in #906). I'm kind of of a mind to just get rid of / deprecate the |
@wyardley I was aiming for the least amount of changes to get the functionality I needed, so I just kept that conditional for the directory. Personally, I'm not a big fan of the Debian style *-available *-enabled directory thing, so I like your changes in #878. I wouldn't change this now that its merged, but I would also prefer to just always create the stream directories in this case and forget about the $stream conditional. |
I wouldn't change this now that its merged, but I would also prefer to just always create the stream directories in this case and forget about the $stream conditional. Yes, in the latest iteration of #878, I ended up just dropping I don't use this feature much, so would be very appreciative if you could give the stream-related changes in #878 at some point (especially the spec tests I added) to make sure things look reasonable. |
Add missing stream dirs and create streams from hiera
Add missing stream dirs and create streams from hiera
This creates the missing streams-available and streams-enabled
directories if stream is true and allow the streamhost resources
to be created from hiera.
Some simple tests are included.
This commit might replace PRs: