On Sun, Aug 23, 2009 at 11:41 AM, Asif Iqbal<vad...@gmail.com> wrote:
> On Sun, Aug 23, 2009 at 11:11 AM, Asif Iqbal<vad...@gmail.com> wrote:
>> On Sun, Aug 23, 2009 at 4:03 AM, Keith Edmunds<k...@midnighthax.com> wrote:
>>>
>>> What's the exit status of your script? Try:
>>>
>>> # /usr/local/bin/external.sh nvcp07.example.net
>>> .
>>> .
>>> .
>>> # echo $?
>>>
>>> It needs to be 0.
>>
>> It is 0.
>>
>> (root)@sys-ubuntu:~# /usr/local/bin/external.sh nvcp07.example.net
>> ---
>> classes:
>>  - den-nms
>>  - stb
>> (root)@sys-ubuntu:~# echo $?
>> 0
>> (root)@sys-ubuntu:~#
>>
>
> I tried to add some parameters and that did not help. puppetmaster still says
>
> debug: Executing '/usr/local/bin/external.sh nvcp07.example.net'
> err: Could not call: Could not find node 'nvcp07.example.net'; cannot compile
>
> but when running manually it looks just fine
>
> (root)@sys-ubuntu:~# /usr/local/bin/external.sh nvcp07.example.net
> ---
> classes:
>  - den-nms
>  - stb
> parameters:
>  temp: "123"
>  puppetmaster: sys-ubuntu.example.net
>
> (root)@sys-ubuntu:~# echo $?
> 0
>
> (root)@sys-ubuntu:~# ls /etc/puppet/manifests/classes/den-nms.pp
> /etc/puppet/manifests/classes/den-nms.pp
>
> (root)@sys-ubuntu:~# ls /etc/puppet/manifests/classes/stb.pp
> /etc/puppet/manifests/classes/stb.pp
>

my yaml format was incorrect. would have been nice if the puppetmaster
debug would disclose that.

it is working since then. Volcane from #puppet channel help me to achieve it.

>
>

-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

--~--~---------~--~----~------------~-------~--~----~
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