Skip to content
This repository has been archived by the owner on Jun 11, 2019. It is now read-only.

new format for setting os/version specific params #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

koglinjg
Copy link
Contributor

#6, I have made some significant changes in terms of style and a bit around how it works for the end user. Please review this carefully.

  • settings that only had a default value were simplified and moved above the os variable params
  • the settings for debian, ubuntu, mint, redhat 7, centos 7, oraclelinux and scientific should be the same as before this update
  • redhat and centos < 7 should now use the appropriate service name
  • any osfamily that is not debian, ubuntu, mint or redhat will fail with an unsupported OS error
  • within the redhat family any os that is not redhat, centos, oraclelinux or scientific will fail with an unsupported OS error

If you don't like the idea of the puppet apply failing and would rather have the generic default values, let me know and I can put those back. I just think this provides a higher quality of module as you know with more certainty that this will work for everyone that uses it. If it fails with an unsupported OS, they can submit an issue and provide the service name, package name, etc that is appropiate for that os/version.



case $::osfamily {
'Debian', 'Ubuntu', 'Mint': {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we use osfamily, 'Debian' is enough

@alvagante
Copy link
Member

Besides the commented parts, it looks ok to me. Would you fix them?

@koglinjg
Copy link
Contributor Author

Fixed and rebased.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants