On 18/09/14 15:53, jcbollinger wrote:
On Thursday, September 18, 2014 9:26:12 AM UTC-5, Jonathan Gazeley wrote:
On 18/09/14 14:27, jcbollinger wrote:
2) The get_data() function relies on the ::serialnumber fact. I
am uncertain how that fact is computed, but maybe something
changed that affected its result.
On Dell machines, the ::serialnumber fact returns the service tag
of the hardware. I have no idea how it retrieves that data, but it
only prints out the fact when run as root. Perhaps this is
breaking it, if this fact can't read other facts.
If Puppet is running as an unprivileged account on the client then
that very likely would explain the problem, but that would be
unusual. There could also have been some kind of access control
change around the mechanism by which the ::serialnumber is determined,
but you already said you weren't seeing anything relevant in your
audit log.
Our Puppet agent is running as root, so this isn't the problem. And yes,
the audit log doesn't turn up anything relevant.
3) The get_data() function uses a local cache to avoid calling
the Dell API every time. If that cache has been corrupted but
not altogether removed then perhaps get_data() would fail.
It's a possibility that I will investigate. In the meantime,
thanks for your suggestions.
Any way around, you could consider modifying the implementations of
the ::warranty_start, ::warranty_end, and ::warranty_days_left facts
to handle this situation more gracefully. I account them flawed for
not doing so now.
I think you are correct and this needs some dev work. However, this
isn't my code (I inherited it) and I don't have the time to work on
these facts which are not really used in my environment. Therefore,
sadly I'm going to remove these facts to silence the warnings and get on
with my other work.
Thanks John and Trevor for your help - at least I learned something
along the way, and that's never a waste of time.
Cheers,
Jonathan
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/541AF2D0.9070605%40bristol.ac.uk.
For more options, visit https://groups.google.com/d/optout.