On Wed, Sep 23, 2009 at 1:50 PM, Joe McDonagh
<joseph.e.mcdon...@gmail.com>wrote:

>
> Asif Iqbal wrote:
> > I have a perl script that runs fine manually, but fails to run by puppet
> >
> > Need some help with debug
> >
> > (root)@scseast:~# cat test.pp
> > Exec { path =>
> >
> "/usr/bin:/usr/sbin:/bin:/usr/local/bin:/usr/local/sbin:/opt/csw/bin:/opt/csw/sbin",
> >                cwd => "/tmp",
> >         }
> >         exec {"/opt/SUNWcest/bin/cediag":}
> >
> > (root)@scseast:~# /opt/csw/bin/puppet -d test.pp
> > debug: Exec[/opt/SUNWcest/bin/cediag]: Adding default for cwd
> > debug: Exec[/opt/SUNWcest/bin/cediag]: Adding default for path
> > debug: Creating default schedules
> > debug: Loaded state in 0.04 seconds
> > debug: Failed to load library 'shadow' for feature 'libshadow'
> > debug: //Exec[/opt/SUNWcest/bin/cediag]: Changing returns
> > debug: //Exec[/opt/SUNWcest/bin/cediag]: 1 change(s)
> > debug: //Exec[/opt/SUNWcest/bin/cediag]: Executing
> > '/opt/SUNWcest/bin/cediag'
> > debug: Executing '/opt/SUNWcest/bin/cediag'
> > err: //Exec[/opt/SUNWcest/bin/cediag]/returns: change from notrun to 0
> > failed: /opt/SUNWcest/bin/cediag returned 1 instead of 0 at
> > /home/iqbala/test.pp:5
> > debug: Finishing transaction 3483960 with 1 changes
> > debug: Storing state
> > debug: Stored state in 0.39 seconds
> > debug: Calling puppetreports.report
> > info: Sent transaction report in 0.59 seconds
> >
> > (root)@scseast:~# /opt/SUNWcest/bin/cediag
> > Do you accept the licence terms? If so, enter "accept" :
> > cediag: licence: licence accepted by user
> >
> > cediag: Revision: 1.94 @ 2007/07/26 22:55:08 UTC
> > cediag: Analysed System: SunOS 5.8 with KUP 117350-46 (MPR active)
> > cediag: Pages Retired: 0 (0.00%)
> > cediag: findings: 0 datapath fault message(s) found
> > cediag: findings: 0 UE(s) found - there is no rule#3 match
> > cediag: findings: 0 DIMMs with a failure pattern matching rule#4a
> > cediag: findings: 0 DIMMs with a failure pattern matching rule#4b
> > cediag: findings: 0 DIMMs with a failure pattern matching rule#5
> > cediag: findings: 0 DIMMs with a failure pattern matching rule#5
> > supplemental
> > (root)@scseast:~# echo $?
> > 0
> >
> > (root)@scseast:~# uname -a
> > SunOS scseast 5.8 Generic_117350-46 sun4u sparc SUNW,Ultra-4
> >
> > (root)@scseast:~# /opt/csw/bin/puppet --version
> > 0.24.7
> >
> > (root)@scseast:~# /opt/csw/bin/facter
> > domain => example.net <http://example.net>
> > facterversion => 1.5.4
> > fqdn => scseast.example.net <http://scseast.example.net>
> > hardwareisa => sparc
> > hardwaremodel => sun4u
> > hostname => scseast
> > id => root
> > interfaces => lo0,hme0,qfe4
> > ipaddress => 192.168.1.5
> > kernel => SunOS
> > kernelrelease => 5.8
> > kernelversion => Generic_117350-46
> > macaddress => 8:0:20:b1:63:81
> > macaddress_hme0 => 8:0:20:b1:63:81
> > macaddress_qfe4 => 8:0:20:b1:63:81
> > netmask_hme0 => 255.255.255.240
> > netmask_lo0 => 255.0.0.0
> > netmask_qfe4 => 255.255.255.240
> > operatingsystem => Solaris
> > operatingsystemrelease => 5.8
> > ps => ps -ef
> > puppetversion => 0.24.7
> > rubysitedir => /opt/csw/lib/ruby/site_ruby/1.8
> > rubyversion => 1.8.7
> > sshdsakey =>
> >
> AAAAB3NzaC1kc3M+YG5wdFKCrAwmWVMmNKVMfuZFxmq1meshHo5yEsrnriNT6hSvGUrYJHD/cghH2E2/s3TaKOAoUQ6JFF0Dh0Z0V+zD+RPKqITIXfS80ihy1DVSf0xICbOoElPITnhNzjh5tS8BpoqDj0WGK9HU1uuTA==
> > sshrsakey =>
> > AAAAB3NzaC1yc2E7UH4m8TkeOYiR9nH3FlQ8QB8QCRpUUmRBlcS3YF8W233FdQhU=
> > timezone => GMT
> > uniqueid => 80b26481
> > uptime => 11 day
> > virtual => physical
> >
> >
> > --
> > Asif Iqbal
> > PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu <http://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?
> >
> >
> >
> > >
>


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