-
Notifications
You must be signed in to change notification settings - Fork 4
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 hiera support for creating instances of defined types? #54
Comments
Hi, thank you for raising the issue. I think if we can keep the implementation clean and we account for the behavior in the tests, your proposal sounds reasonable to me. I suspect you didn't mean to include |
Please include an update to the docs if you don't mind also. Cheers. |
Oops, yes. Looks like I copy/pasted too much. Only defined types would be used. Will whittle away at the PR as possible and pipe back up. Will update docs as requested. Cheers. |
In digging into this, I am wondering about Do you want me to modify? To start, I won't and will simply make the defined type callable from the relative module EG |
Nevermind that last point. I will end up putting all hashes in the init class after running through some unit tests. |
Hi folks --
I'm using this module due to the stated project goals meeting my needs much better than other modules at the Forge. Thanks for the work.
I'm wondering if you'd accept a PR for adding some empty hashes to
init.pp
so that I can declare defined types from this module via hiera. EG...For the PR, I would make several default-empty hash variables in the init class and then
create_resources()
where appropriate...I expect the example is clear enough, but will note that I would update the
ssh::client
class similarly. Happy to update the rspec tests to account for the new behavior, too.Finally, I will point out that I am presently doing what I want via a profile class....
However, for maintenance/team discovery purposes, I think it would help to have such variables in the
ssh::
variable namespace, hence my inquiry.Cheers.
The text was updated successfully, but these errors were encountered: