so have in nginx/common/init.sls this:
nginx: pkg: - latest /etc/nginx: file.directory: - user: root - group: root - mode: 755 - clean: true - require: - pkg: nginx /etc/nginx/conf.d: file.recurse: - source: salt://nginx/common/files/conf.d - user: root - group: root - clean: true - template: jinja - recurse: - user - group - mode - require_in: - file: /etc/nginx /etc/nginx/vhosts.d: file.directory: - user: root - group: root - mode: 755 - makedirs: true - require_in: - file: /etc/nginx to keep /etc/nginx clean default config files , seed own configs dir , subdirs. works fine when run highstate, when run highstate test=true, returns notice:
id: /etc/nginx function: file.directory result: none comment: following files changed: /etc/nginx/conf.d: removed - removed due clean /etc/nginx/vhosts.d: removed - removed due clean which bad, because prevents me monitoring of 'clean' highstate, , untrue.
i tried add subdirs in 'requier' of /etc/nginx, result same. noticed problem affects file.directory , file.recurse, not file.managed. how prevent wrong output of highstate test=true?
Comments
Post a Comment