Skip to content

(maint) Replace shell logic for OS release with Facter#883

Merged
kbarber merged 1 commit intopuppetlabs:1.6.xfrom
mckern:1.6.x
Mar 11, 2014
Merged

(maint) Replace shell logic for OS release with Facter#883
kbarber merged 1 commit intopuppetlabs:1.6.xfrom
mckern:1.6.x

Conversation

@mckern
Copy link
Contributor

@mckern mckern commented Mar 11, 2014

To generate the correct init script components, install.rake
was shelling out to get a static field from /etc/redhat-release.
This is a fragile technique and Facter uses a much more robust
technique to derive the correct value across numerous RPM-based
platforms. This technique was part of the 1.7.x Facter branch,
so a build-time dependency has been added on Facter 1.7.0 or greater.

To generate the correct init script components, install.rake
was shelling out to get a static field from /etc/redhat-release.
This is a fragile technique and Facter uses a much more robust
technique to derive the correct value across numerous RPM-based
platforms. This technique was part of the 1.7.x Facter branch,
so a build-time dependency has been added on Facter 1.7.0 or greater.
@pljenkinsro
Copy link

Can one of the admins verify this patch?

@haus
Copy link
Contributor

haus commented Mar 11, 2014

👍

kbarber added a commit that referenced this pull request Mar 11, 2014
(maint) Replace shell logic for OS release with Facter
@kbarber kbarber merged commit 129df76 into puppetlabs:1.6.x Mar 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants