Skip to content
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 freebsd support in packages plugin #814

Merged
merged 1 commit into from
May 31, 2016
Merged

Conversation

vr
Copy link
Contributor

@vr vr commented Apr 26, 2016

No description provided.

@chef-supermarket
Copy link

Hi. I am an automated pull request bot named Curry. There are commits in this pull request whose authors are not yet authorized to contribute to Chef Software, Inc. projects or are using a non-GitHub verified email address. To become authorized to contribute, you will need to sign the Contributor License Agreement (CLA) as an individual or on behalf of your company. You can read more on Chef's blog.

GitHub Users Who Are Not Authorized To Contribute

The following GitHub users do not appear to have signed a CLA:

Please sign the CLA here.

@chef-supermarket
Copy link

Hi. Your friendly Curry bot here. Just letting you know that all commit authors have become authorized to contribute. I have added the "Signed CLA" label to this issue so it can easily be found in the future.

@tas50
Copy link
Contributor

tas50 commented May 10, 2016

Ping @mcquin

@tas50
Copy link
Contributor

tas50 commented May 10, 2016

Ping @thommay as well

@thommay
Copy link
Contributor

thommay commented May 10, 2016

ping @chef/client-freebsd

@tas50
Copy link
Contributor

tas50 commented May 10, 2016

I should add the query command works fine on my FreeBSD 10.3 and 9.3 hosts

@tas50
Copy link
Contributor

tas50 commented May 10, 2016

So it's been pointed out to me that pkg only exists out of the box on FreeBSD 10. We need to handle the shell out failure better and include some logging. Right now the plugin will fail with a stack trace to debug.

@Aevin1387
Copy link

Aevin1387 commented May 10, 2016

@tas50 FreeBSD 9.3 does support pkg if setup to use it, otherwise you would use pkgng. You can look at https://github.com/chef/chef/blob/master/lib/chef/resource/freebsd_package.rb to see how the package resource checks for it.

@tas50
Copy link
Contributor

tas50 commented May 10, 2016

@Aevin1387 It's not enabled by default though right?

@lamont-granquist
Copy link
Contributor

this is better than nothing and would get support on freebsd 10 + up. should probably make the exitstatus raise if the status is non-zero (and ideally implement shell_out! in the shell_out mixin, because its kind of aggravating not to have the same API in chef and ohai).

@smurawski
Copy link
Contributor

👍

2 similar comments
@lamont-granquist
Copy link
Contributor

👍

@thommay
Copy link
Contributor

thommay commented May 31, 2016

👍

@thommay thommay merged commit 34cad7a into chef:master May 31, 2016
@thommay thommay added Type: Enhancement Adds new functionality. and removed Enhancement labels Jan 24, 2017
@chef chef locked and limited conversation to collaborators Nov 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Enhancement Adds new functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants