-
Notifications
You must be signed in to change notification settings - Fork 303
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
set group of fragments to gid #230
set group of fragments to gid #230
Conversation
d71a43f
to
6f44ae7
Compare
|
any new on this PR? |
|
I'm hesitant to assume @hunner Is there a [planned] way to place a dependency on the facter version via Also, since this PR modifies the public API the README documentation would need to be updated. |
|
I had a quick look at the README and so far only API deprecations are documented. This change doesn't deprecate anything it adds a new feature. If you tell me where you like to have changes like this document, I can adapt the PR |
6f44ae7
to
2d2d84b
Compare
|
btw: I rebased it into current master |
|
Hi @duritong, Thanks for the contribution! It looks like there aren't actually any docs updates needed since you didn't add any parameters that are exposed through a class/defined type. This fact was added in facter 2.2, so I think we still need to account for it not being present. Could you wrap the new parameter in something like this and explicitly set Thanks! |
gid has now been part of facter for a long time, it is safe to use it now.
2d2d84b
to
0aa6c63
Compare
|
I updated my pull request as discussed |
set group of fragments to gid
|
great, thanks @duritong ! |
|
uh, this PR changes the public API... |
|
@jhoblitt I specifically asked you where to document it and later @mhaskel agreed with me that we didn't add a new parameter. So if you want me to document that change, you must be more specific and verbose of what should be added. Thanks. |
|
@jhoblitt this only adds in-class variables, no new parameters. |
|
Ignore me -- my case of the flu has been talking. This is 👍 |
|
feel better! |
|
Edit: oh, I didn't notice this in # test on gid fact availability to support older facter versions
if defined('$gid') ... |
|
It just brings everything in line. Owner and mode are already managed, so why not group? Additionally, if you don't manage the group, group ownership is in kind of a limbo state, as it's not sure that the group will really be root. Especially, if you copy fragments from a source. puppetlabs-concat/manifests/fragment.pp Lines 48 to 56 in 0aa6c63
And last but not least: We can't hardcode it to root, because this would make the concat module unusable if you run puppet as a unprivileged user. There are tons of valid use cases for that and there is no reason that the concat module requires root to be used. |
|
Thanks for the explanation. Looks like it's doing the right thing for me since #280 as a fallback for not having the gid fact on my older nodes. |
gid has now been part of facter for a long time, it is safe to use
it now.