puppet-nginx
puppet-nginx copied to clipboard
Use file resource to create symlinks in sites-enabled directory
I'd like to be able to do:
file{ '/etc/nginx/sites-enabled':
ensure => directory,
recurse => true,
purge => true,
}
This fails because the symlinks in this directory are created with an exec instead of a file resource. (at the end of manifests/install_site.pp)
I'm not sure why you've done it this way. Couldn't a file resource be used to create the symlinks?
It would be cleaner if the purging of the sites-enabled directory was done by the nginx module, presumably depending on some parameter being set to trigger this behaviour.
Hi,
thanks again for your repport.
file resource to create symlinks should work. Have you tried ?
Going to try also on my part
Benoit