Re: Overriding types?

Luke Kanies
Thu, 21 Dec 2006 20:58:17 -0000

On Dec 21, 2006, at 2:51 PM, Charlie Schluting wrote:

> "Service and class definitions are scoped just as variable
> assignments are."
>
> But what about types?
>
> Here''s an example:
> class solserver inherits server {
>     remotefile { "/etc/shadow":
>         mode => 400, group => staff,
>         source => "solall/etc/shadow.server"
>     }
>
> Is it possible to just override the "/etc/shadow" definition for
some
> nodes? It certainly doesn''t work to just redefine the
> remotefile["/etc/shadow"].

You should be able to override it like anything else:

   Remotefile["/etc/shadow"] { mode => 600 }

  --
  I worry that the person who thought up Muzak may be thinking up
  something else.       --Lily Tomlin
  ---------------------------------------------------------------------
  Luke Kanies | http://reductivelabs.com | http://madstop.com