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

Custom nginx.conf template is no longer working #1083

Closed
auth00 opened this issue May 3, 2017 · 3 comments
Closed

Custom nginx.conf template is no longer working #1083

auth00 opened this issue May 3, 2017 · 3 comments

Comments

@auth00
Copy link

auth00 commented May 3, 2017

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 3.8.7
  • Ruby: 1.9.3p484
  • Distribution: Ubuntu 14.04
  • Module version: v0.6.0

How to reproduce (e.g Puppet code you use)

Have some special nginx config that makes you want to override the nginx.conf template. In my example I want to remove server_names_hash_bucket_size from nginx.conf.

What are you seeing

In #272 code to allow a custom nginx.conf template by configuration was introduced. This parameter is now hard coded instead.

What behaviour did you expect instead

To be able to continue using a custom nginx.conf template.

Output log

--

Any additional information you'd like to impart

--

@jsmelser
Copy link

yeah, this breaks for me. I need an include in my nginx config and this does not provide a way to add an include line or to overwrite the conf file.

@wyardley
Copy link
Collaborator

@jsmelser I don't believe there's a way not to manage the config, but there is a way to add additional arbitrary variables. see http_cfg_prepend, http_cfg_append, nginx_cfg_prepend and so on. Additionally, you can drop down additional files from your site-specific code into e.g., conf_dir/conf.d/foo.conf, which, under the default settings, will not get cleaned up / purged.

It would be trivial to make certain options, such as server_names_hash_bucket_size, optional, and that's the path that the module is taking for the most part.

@auth00: I think you could also override the file resource from the module if you really needed to, see
http://stackoverflow.com/questions/30016279/puppet-overriding-file-resource-on-a-module

If you can let us know all the parameters you need to suppress, we can see if someone can submit a PR to make those parameters optional for ones that aren't already.

@jsmelser
Copy link

I am sorry, I did not see the above response. I was able to add my changes in a different way but still through the module. This isnt as breaking as I thought. My apologies on that.

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

No branches or pull requests

3 participants