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 <[email protected]> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> 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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.