Skip to content

Instantly share code, notes, and snippets.

@rail
Created August 14, 2015 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rail/a10d90a520181b44f88a to your computer and use it in GitHub Desktop.
Save rail/a10d90a520181b44f88a to your computer and use it in GitHub Desktop.
diff --git a/modules/httpd/manifests/init.pp b/modules/httpd/manifests/init.pp
--- a/modules/httpd/manifests/init.pp
+++ b/modules/httpd/manifests/init.pp
@@ -47,16 +47,17 @@ class httpd {
name => 'apache2',
require => Class["packages::httpd"],
enable => true,
ensure => running;
}
file {
# Bug 861200. Remove default vhost config
"/etc/apache2/sites-enabled/000-default":
+ notify => Service["httpd"],
ensure => absent;
}
}
default: {
fail("Don't know how to set up httpd on $::operatingsystem")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment