Displaying 1 result from an estimated 1 matches for "wwwnode".
Did you mean:
  fwnode
  
2009 Jan 15
1
variable scope is making my head hurt
...this, my latest attempt, $nodetype always ends up
as "base":
# manifests/nodes
$nodetype = "base"
node "base" {
    include postfix
    ...snip...
}
node "www01", "www02", ... , "www10" inherits "base" {
     $nodetype = "wwwnode"
     include postfix::custom
}
# modules/postfix/manifests/init.pp
class postfix {
     package {"postfix": ensure => installed}
     file {"/etc/postfix/main.cf":
          content => template("puppet:///files/main.cf.erb})
     }
}
# modules/postfix/manifest...