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 #376

Merged
merged 9 commits into from
Jul 28, 2014
Merged

Add FreeBSD Support #376

merged 9 commits into from
Jul 28, 2014

Conversation

zachfi
Copy link
Contributor

@zachfi zachfi commented Jul 12, 2014

This work gets the bare minimum code working on FreeBSD. Catalogs compile,

Zach Leslie added 2 commits July 11, 2014 23:32
This adds the necessary changes the params class and associated
variables to support FreeBSD.
/(?i-mx:sunos)/ => '/var/log/nginx',
/(?i-mx:linux)/ => '/var/log/nginx',
/(?i-mx:sunos)/ => '/var/log/nginx',
/(?i-mx:freebsd)/ => '/var/log/nginx',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is starting to feel silly.

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe remove the selector - it is silly.

The super group on many platforms is known as root, which a UID of 0.
However, on other platforms, the UID is still 0, but the group is
'wheel'.  Largely historic UNIX jargon, but suffice to say that, to
support FreeBSD and others, setting the group of '0' has the same impact
while supporting a wider range of platforms.
@3flex
Copy link
Contributor

3flex commented Jul 23, 2014

Regarding changing "root" to "0" for the groups, what do you think of adding a new OS dependent param which is set to "wheel" on FreeBSD and "root" by default? Similar to puppetlabs-apache: https://github.com/puppetlabs/puppetlabs-apache/blob/1.1.1/manifests/params.pp#L152

I know this means having to manually add this for other BSD's (if there is demand for them) but it's clearer which group will be used this way.

@zachfi
Copy link
Contributor Author

zachfi commented Jul 28, 2014

If $root_group makes you happier, I can update the PR. Not sure what to do about the tests for this though. My attention is waning.

@zachfi
Copy link
Contributor Author

zachfi commented Jul 28, 2014

Alright, I've updated the code, but not the tests. I need to give a harder look and see how we test for platform specifics.

@zachfi
Copy link
Contributor Author

zachfi commented Jul 28, 2014

Hows this?

@3flex
Copy link
Contributor

3flex commented Jul 28, 2014

Looks good to me! Now up to @jfryman to merge.

Thanks for making those changes.

@jfryman
Copy link
Contributor

jfryman commented Jul 28, 2014

👍

@xaque208 We're going to clean this up. Promise. :)

jfryman pushed a commit that referenced this pull request Jul 28, 2014
@jfryman jfryman merged commit e79e91d into voxpupuli:master Jul 28, 2014
@zachfi
Copy link
Contributor Author

zachfi commented Jul 28, 2014

@jfryman Excellent, speak up if we can help. We're moving to adopt this as our nginx module.

@zachfi zachfi deleted the freebsd branch July 28, 2014 22:04
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.

3 participants