----- Original Message -----
> From: "Cosmin-Viorel Ilie" <ilie.cosmin.vio...@gmail.com>
> To: puppet-users@googlegroups.com
> Sent: Friday, September 14, 2012 10:43:48 AM
> Subject: [Puppet Users] Puppet ignoring ENC classes
> 
> Hi everyone,
> 
> I've been bashing my head in the wall for several days now trying to
> find out why puppet isn't loading the class from enc. I've setup the
> enc from puppet-dashboard which returns:
> 
> [root@v-test-mng-01 puppet-dashboard]# /usr/bin/env
> PUPPET_DASHBOARD_URL=http://v-test-mng-01:3000
> /usr/share/puppet-dashboard/bin/external_node
> 
> 
> 
> ---
> - name: v-test-tst-01.domain.net
> parameters: {}
> 
> classes:
> - test
> - name: v-test-mng-01.domain.net
> parameters: {}
> 
> classes: []


When puppet calls your script it will pass in the node name information
as arguments to your script.

Your script must then return information for just the one node requested
so your result should be something like:

parameters: {}
classes:
  - test

without node name etc

see http://docs.puppetlabs.com/guides/external_nodes.html

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@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