Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use file resource to create symlinks in sites-enabled directory #12

Open
mc0e opened this issue Oct 1, 2012 · 1 comment
Open

Use file resource to create symlinks in sites-enabled directory #12

mc0e opened this issue Oct 1, 2012 · 1 comment

Comments

@mc0e
Copy link

mc0e commented Oct 1, 2012

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.

@BenoitCattie
Copy link
Owner

Hi,

thanks again for your repport.

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

Going to try also on my part

Benoit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants