Report abuse

# all sites get built with site{"foo.com": }
define site() {
        search $httpdtype

        vhost{$name: }
}

define nginx::vhost() {
        notice("Building nginx vhost ${name}")
}

node "nephilim.ml.org" {
        $httpdtype = "nginx"

        site{"foo.com": }
}

output

notice: Scope(Nginx::Vhost[foo.com]): Building nginx vhost foo.com