Skip to content

Always create new changes after restart #159

@zeleznypa

Description

@zeleznypa

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions