-
-
Notifications
You must be signed in to change notification settings - Fork 879
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
Rename all vhost ocurrences to server #968
Conversation
This closes voxpupuli#348 and closes voxpupuli#932. It was created by running git ls-files | xargs -i{} sed -i -e 's/vhost/server/g' {} and manually fixing lint issues and renaming all files called '*vhost*'.
cc @wyardley |
@DavidS Can't figure out how to submit a PR against your fork, but these are my formatting changes: https://github.com/wyardley/puppet-nginx/tree/rename_vhost_server_davids Also got a couple instances of vHost. FWIW, spec tests are passing. |
Food for thought: the "server" block can be used in several contexts in nginx...
This module supports some (all?) of those. Of course most people will assume a "server" will configure an HTTP server since that's most common, but perhaps resources should be namespaced somehow e.g. nginx::http::server and nginx::mail::server or something like that so that it's clear what type of server is being created. I only mention because |
@3flex Yeah, I'm not sure if there's an easy way to handle that. I agree that it's a little confusing, though maybe we should just do the great renaming (which is going to have to be re-done now, by the way, since stuff got merged), and make any other changes iteratively? If it were namespaced |
This needs a rebase (or a rerun of the sed) |
I'd remove the "nginx" prefix from the parameter and have nginx::http_servers. For the future, I THINK this makes sense...
This is just one option, I'm not overly attached, but it's now very explicit as to what each resource will configure. One inconsistency with the above is locations, perhaps could go with |
Replaced by #980 |
This closes #348 and closes #932. It was created by running
and manually fixing lint issues and renaming all files called 'vhost'.