If i try to emulate what puppet is doing and call the script with the node name i get:
[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 v-test-tst-01.domain.net --- name: v-test-tst-01.domain.net parameters: {} classes: - test On Friday, September 14, 2012 12:54:45 PM UTC+3, R.I. Pienaar wrote: > > > > ----- Original Message ----- > > From: "Cosmin-Viorel Ilie" <ilie.cosm...@gmail.com <javascript:>> > > To: puppet...@googlegroups.com <javascript:> > > 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 view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/BgnTUHf3KoMJ. 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.