Guest User

Untitled

a guest
Jul 20th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. # all sites get built with site{"foo.com": }
  2. define site() {
  3. search $httpdtype
  4.  
  5. vhost{$name: }
  6. }
  7.  
  8. define nginx::vhost() {
  9. notice("Building nginx vhost ${name}")
  10. }
  11.  
  12. node "nephilim.ml.org" {
  13. $httpdtype = "nginx"
  14.  
  15. site{"foo.com": }
  16. }
  17.  
  18. ## output
  19. notice: Scope(Nginx::Vhost[foo.com]): Building nginx vhost foo.com
Add Comment
Please, Sign In to add comment