-
-
Notifications
You must be signed in to change notification settings - Fork 144
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
Manage journald service and configuration #89
Conversation
No type validation? Are the |
Hey @treydock, thanks for the work! I did an inline suggestion. Can you also document it in the README.md? |
@trevor-vaughan I suppose a custom type where the validation is done on a per-key basis would make sense, just not sure how it would survive for varied versions of systemd. This would require subtypes to handle the varied units that are allowed for different keys. @bastelfreak Updated README. |
@treydock Yeah, I get it. The config hashes just always feel like a 'slightly better than just flopping down raw content' approach to life without some sort of validation :-| |
Agreed @trevor-vaughan. I usually like to provide a Data Type for the hash options to limit the scope of input data. |
I'll add a custom data type. |
Added custom data type but looks like #14 did same thing as this pull request. Should I just make this pull request the addition of data type? |
Ah right, I'm very sorry about that @treydock I hadn't noticed… Sure, the data type would still be a nice addition. |
https://rspec-puppet.com/documentation/type_aliases/ can be used to test type aliases for various input. |
Very nice! |
New data type added |
Fix .rubocop.yml issues
No description provided.