puppet-nginx icon indicating copy to clipboard operation
puppet-nginx copied to clipboard

Use file resource to create symlinks in sites-enabled directory

Open mc0e opened this issue 13 years ago • 1 comments

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.

mc0e avatar Oct 01 '12 12:10 mc0e

Hi,

thanks again for your repport.

file resource to create symlinks should work. Have you tried ?

Going to try also on my part

Benoit

BenoitCattie avatar Nov 10 '12 16:11 BenoitCattie