-
-
Notifications
You must be signed in to change notification settings - Fork 881
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
Reliance on mime.types #1240
Comments
I see two possible ways out of this.
I'd prefer the second options, what do you think? |
I think the first option is the least invasive one. The mime types file contents could easily go out of date or be different on various distros. |
@ekohl I thought about maybe having a simple erb that gets filed with a hash, since the mime types file is rather simple. But yes, there could be variation in distros. |
@martialblog Excellent idea! |
I wrote a little example of a template based solution. https://github.com/vision-it/puppet-nginx/commit/3a9a68d13cba85c07b3c7907ca0608573474d281 |
Hey there,
excellent puppet module!
However, while experimenting with this module, I have stumbled upon a problem: the module blindly relies on the presence of a
mime.types
files (specifically inpuppet-nginx/templates/conf.d/nginx.conf.erb
Line 69 in 0ef72eb
nginx::conf_dir
).In my case, the configuration gets generated as follows (
nginx.conf
):Since
/mnt/etc/nginx
was created by the module itself, it is initially empty and therefore lacksmime.types
.Upon startup, nginx then complains:
The text was updated successfully, but these errors were encountered: