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

Always create new changes after restart #159

Closed
zeleznypa opened this issue Oct 17, 2013 · 4 comments · Fixed by #167
Closed

Always create new changes after restart #159

zeleznypa opened this issue Oct 17, 2013 · 4 comments · Fixed by #167

Comments

@zeleznypa
Copy link

Because NginX have all tmp files in /tmp, after the restart puppet notice that create new resources:


notice: /Stage[main]/Nginx::Config/File[/tmp/nginx.d]/ensure: created
notice: /Stage[main]//Nginx::Resource::Vhost[subdomain.loc]/File[/tmp/nginx.d/subdomain.loc-001]/ensure: defined content as '{md5}6d3a5459fc18bd5affcc20f4f60dfb56'
notice: /Stage[main]//Nginx::Resource::Location[subdomain.loc.php]/File[/tmp/nginx.d/subdomain.loc-500-subdomain.loc.php]/ensure: defined content as '{md5}9542a627c20adc2a0e41d6207ff55211'
notice: /Stage[main]//Nginx::Resource::Vhost[subdomain.loc]/Nginx::Resource::Location[subdomain.loc-default]/File[/tmp/nginx.d/subdomain.loc-500-subdomain.loc-default]/ensure: defined content as '{md5}0306d1af318427107a6086ff1a81a496'
notice: /Stage[main]/Nginx::Config/File[/tmp/nginx.mail.d]/ensure: created
notice: /Stage[main]//Nginx::Resource::Vhost[subdomain.loc]/File[/tmp/nginx.d/subdomain.loc-699]/ensure: defined content as '{md5}61d82613da400335f729867d80406482'
notice: /Stage[main]/Nginx::Service/Exec[rebuild-nginx-vhosts]: Triggered 'refresh' from 2 events
notice: /Stage[main]/Nginx::Service/Exec[rebuild-nginx-mailhosts]: Triggered 'refresh' from 2 events
notice: /Stage[main]/Nginx::Service/Service[nginx]/ensure: ensure changed 'stopped' to 'running'
notice: /Stage[main]/Nginx::Service/Service[nginx]: Triggered 'refresh' from 3 events

I want to change nx_temp_dir variable value to '/var/nginx/tmp' to prevent this but I can't find any way, how to do this. Please help

@zeleznypa
Copy link
Author

There is a lot of parameters in https://github.com/jfryman/puppet-nginx/blob/master/manifests/params.pp that I can't edit any way. For example: $nx_multi_accept

@3flex
Copy link
Contributor

3flex commented Oct 21, 2013

Hi @zeleznypa,

after the restart puppet notice that create new resources

The way the module's designed these resources have to be created - even if you could change nx_temp_dir the resources would still be created, they'd just be in a different location.

There is a lot of parameters in ... that I can't edit

This has been raised as issue #62. There are a couple of PRs already to try and work out a solution - comment on those if the parameters you need to edit aren't included in the pull requests being considered.

Aside from these points, are there any issues with the behavior of the module itself? If not, would you consider closing this issue?

@zeleznypa
Copy link
Author

Hi @3flex,

problem of nx_temp_dir is, that content of /tmp dir is deleted every restart of server, but if I chage it to another directory, content will not be deleted and eberything will be allright I think ;)

@3flex
Copy link
Contributor

3flex commented Oct 21, 2013

Oh I see, I didn't realize you were talking about the server restart!

Once there's a solution for #62 merged you'll be able to set the path (both current proposals expose a parameter for the temp dir).

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 a pull request may close this issue.

2 participants