You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Streamhost resource does not remove the file when ensure => 'absent' is set.
In the resource there is a default for file resource, where the ensure is set, but that default does not apply on concat resource where the /etc/nginx/streams-available/* config file is managed.
Streamhost resource does not remove the file when ensure => 'absent' is set.
In the resource there is a default for file resource, where the ensure is set, but that default does not apply on concat resource where the /etc/nginx/streams-available/* config file is managed.
https://github.com/voxpupuli/puppet-nginx/blob/master/manifests/resource/streamhost.pp#L88:97
https://github.com/voxpupuli/puppet-nginx/blob/master/manifests/resource/streamhost.pp#L105-L111
Note: Symlink from /etc/nginx/streams-enabled/* is removed
Adding ensure => $ensure on concat itself will fix the issue. I opened the pull request.
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
create a config file
after puppet run file is created: /etc/nginx/streams-available/test.conf
remove the file
What are you seeing
the file /etc/nginx/streams-available/test.conf is NOT removed
What behaviour did you expect instead
the file /etc/nginx/streams-available/test.conf is removed
The text was updated successfully, but these errors were encountered: