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

Remove vhost symlink if ensure != present. #380

Merged
merged 1 commit into from
Oct 16, 2013
Merged

Remove vhost symlink if ensure != present. #380

merged 1 commit into from
Oct 16, 2013

Conversation

pataquets
Copy link
Contributor

If apache parent class is used without full management via purge_configs => false,
setting a vhost.ensure => absent leaves behind the vhost's symlink in /etc/apache2/sites-enabled (Debian/Ubuntu).
If this happens, Apache fails to restart because of missing file.

$vhost_symlink_ensure = $ensure ? {
present => link,
default => $ensure,
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this } needs to be indented one more level.

hunner added a commit that referenced this pull request Oct 16, 2013
…-absent

Remove vhost symlink if ensure != present.
@hunner hunner merged commit 8be43f3 into puppetlabs:master Oct 16, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants