Hello, I have been working on this for several hours now and still seems not to be working. I am unsure if its a bug or I am doing something wrong. [master] node_terminus = exec external_nodes = /usr/share/puppet-dashboard/bin/external_node If I execute the external node command it returns values; root@puppet01:/usr# /usr/share/puppet-dashboard/bin/external_node host01.admin.isp.net.uk --- name: hode01.admin.isp.net.uk parameters: centrify_nbname: puppet01admin centrify_groups: g_admin, g_admin_admin centrify_domain: domain.isp.net.uk classes: - centrifydc root@node01:/usr# puppetd -vt err: Could not retrieve catalog from remote server: Error 400 on SERVER: No match found for ''centrify_nbname'' in any data file during extlookup() at /etc/puppet/modules/centrifydc/manifests/init.pp:8 on node node01.admin.isp.net.uk The parameter is returned but it seems to ignore it ? class centrifydc { $netbiosname = extlookup(''centrify_nbname'') $domain = extlookup(''centrify_domain'') Any ideas ? -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Sun, Feb 5, 2012 at 2:12 PM, eper <eper@eper.net> wrote:> I have been working on this for several hours now and still seems not > to be working. I am unsure if its a bug or I am doing something wrong. > > [master] > node_terminus = exec > external_nodes = /usr/share/puppet-dashboard/bin/external_node > > If I execute the external node command it returns values; > root@puppet01:/usr# /usr/share/puppet-dashboard/bin/external_nodeCan you run this command as the puppet user? Thanks, Nan -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Hello, I have been playing around with this today and have managed to get it working. It appears if you are using puppet-dashboard and use external nodes you do not need to call extlookup() to access to variable, it is just globally available. Example: root@puppet01:/etc/puppet# /usr/share/puppet-dashboard/bin/external_node puppet01.admin.zen.net.uk --- name: puppet01.admin.isp.net.uk parameters: centrify_nbname: puppet01admin centrify_groups: g_admin g_admin_admins centrify_domain: domain.isp.net.uk -- class centrifydc { $netbiosname = $centrify_nbname $domain = $centrify_domain $groups_allow = $centrify_groups exec { "adjoin": path => "/usr/bin:/usr/sbin:/bin", returns => 15, command => "adjoin -S -w $domain -n $netbiosname", refreshonly => true, } ---- On 6 Feb 2012, at 17:06, Nan Liu wrote:> On Sun, Feb 5, 2012 at 2:12 PM, eper <eper@eper.net> wrote: >> I have been working on this for several hours now and still seems not >> to be working. I am unsure if its a bug or I am doing something wrong. >> >> [master] >> node_terminus = exec >> external_nodes = /usr/share/puppet-dashboard/bin/external_node >> >> If I execute the external node command it returns values; >> root@puppet01:/usr# /usr/share/puppet-dashboard/bin/external_node > > Can you run this command as the puppet user? > > Thanks, > > Nan > > -- > 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+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. >-- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.