On Fri, Jan 7, 2011 at 9:51 AM, Cosimo Streppone <cos...@streppone.it>wrote:

> Hi,
>
> I just added an external classifier script, and things
> are not working as I expected to.
>
> Trying to read documentation about ext.nodes and
> searching the archives I couldn't come up with any
> useful results.
>
> My classifier script outputs:
>
>  --- YAML
>  ---
>  classes:
>    - geodns::production::backend
>  environment: production
>  name: z01-06-02
>  parameters:
>    puppet_server: z01-06-02
>
> This is both master and client.
>
> While debugging with --trace --debug, etc.. I noticed that:
>
> - the ext node script is invoked and produces the correct result
> - if I remove my "geodns::production::backend" .pp file or I put
>  a deliberate error in it, puppet rightly complains, so it is
>  looking them up.
>
> Only when I modify my site.pp to manually include the
> given node, then everything starts to work just fine.
> This is my working site.pp:
>
>  $server = "z01-06-02.mydomain.com"
>
>  import "os/*.pp"
>  import "classes/*.pp"
>  import "classes/*/*.pp"
>
>  node default {
>      include basenode
>  }
>
>  # This is the part I thought ext node script would "replace"
>  node 'z01-06-02.mydomain.com' {
>     include geodns::production::backend
>  }
>
>  # etc...
>
> Any idea?
>

I believe that to use an external nodes script you may only (and must) have
a default node in nodes.pp. Try commenting out the rest of your nodes and
see if the external script is respected.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to