Skip to content

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

@mc0e

Description

@mc0e

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions