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.
I'd like to be able to do:
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.