First page Back Continue Last page Overview Graphics
Templates
class apache2 {
define simple-vhost ( $admin = "webmaster", $aliases, $docroot) {
file { "/etc/apache2/sites-available/$name":
mode => "644",
require => [ Package["apache2"], Package["cronolog"], Service["apache2"] ],
content => template("apache/vhost.conf"),
}
}
}
node debiantest {
- include apache2
- apache2::simple-vhost { "debian.example.com": admin => "system@example.com", aliases => [ “debiantest.examplet.com”], ["debian" ], docroot => "/var/www/debian"}
}