Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 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
Add Comment
Please, Sign In to add comment