kwolf-zz / dell_info

Puppet module that adds Dell specific facts to Facter.
4 stars 11 forks source link

Puppet dell_info

Overview

This puppet module adds custom facts aquired by querying https://api.dell.com/.

Module Description

We use this to track the age of our mission critical production servers.

Facts are cached for seven days by default.

Custom facts added, may very based on your warranty details:

      purchase_date => 2011-04-13
      server_age => 2.16 years
      warranty => true
      warranty0_desc => Silver Premium Support
      warranty0_expires => 2014-04-14
      warranty0_type => INITIAL
      warranty1_desc => Next Business Day Support
      warranty1_expires => 2014-04-14
      warranty1_type => EXTENDED
      warranty2_desc => Next Business Day Support
      warranty2_expires => 2012-04-14
      warranty2_type => INITIAL

The warranty fact should be set to warranty => true if any warranties are greater than the current date, and warranty => false if all warranties have expired.

api.dell.com uses API keys. When I wrote this there were three publically available on the internet. This isn't a private key that's currently in the module. In fact, I couldn't find a way to get a private key.

Based on this blog article about api.dell.com.

Limitations

Author

Kevin Wolf kwolf72@gmail.com

Support

Please log tickets and issues at the github repository

Release notes

1.0.1

1.0.0

0.0.1