Asset management

Hi,

I am searching for a way to integrate asset management into foreman.
Does any of you guys had to deal with this kind of requirement?

It would be really nice if we can add additional data to the ones
collected by facter, like date of purchase, warranty, invoice etc.

Regards, Lorand

The easiest solution would be add some custom facts or parameters,
which would then exist in foreman. The facter-dot-d stuff in
puppet-stdlib might be useful for that - drop a file in, and it's a
fact in foreman on the next run.

Greg

··· On Fri 13 Apr 2012 08:59:50 BST, Lóránd wrote: > Hi, > > I am searching for a way to integrate asset management into foreman. > Does any of you guys had to deal with this kind of requirement? > > It would be really nice if we can add additional data to the ones > collected by facter, like date of purchase, warranty, invoice etc. > > Regards, Lorand

Hi Greg,

Thanks for the suggestion!
This looks like a possible solution however would be nicer to have all
this information in a central database and manageable from the foreman
interface.

Lorand

··· On Apr 13, 2:27 pm, Greg Sutcliffe wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Fri 13 Apr 2012 08:59:50 BST, Lóránd wrote: > > > Hi, > > > I am searching for a way to integrate asset management into foreman. > > Does any of you guys had to deal with this kind of requirement? > > > It would be really nice if we can add additional data to the ones > > collected by facter, like date of purchase, warranty, invoice etc. > > > Regards, Lorand > > The easiest solution would be add some custom facts or parameters, > which would then exist in foreman. The facter-dot-d stuff in > puppet-stdlib might be useful for that - drop a file in, and it's a > fact in foreman on the next run. > > Greg > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.19 (GNU/Linux) > Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/ > > iEYEARECAAYFAk+IG8wACgkQ8O7RN8oK65ORtwCgmLI9ZZjLhH1T2yKIIn43iitw > +6gAoILyA1S1zdQrZGUTkbUMLYUSM0XA > =brIj > -----END PGP SIGNATURE-----

I had something started for warranty and contract, but it feel to the back burner.


Essentially the work that needs to be done is create a web service from the checkwarranty gem so the facts can be gathered on the puppet server instead of on the client.

I was thinking of using sinatra to do this as I wanted it to work for non-foreman users. However, it could probably be easily slapped into smart-proxy as well.

Corey Osman
corey@logicminds.biz

Green IT and Datacenter Automation Specialist

··· On Apr 16, 2012, at 7:11 AM, Lóránd wrote:

Hi Greg,

Thanks for the suggestion!
This looks like a possible solution however would be nicer to have all
this information in a central database and manageable from the foreman
interface.

Lorand

On Apr 13, 2:27 pm, Greg Sutcliffe gsutcli...@ibahn.com wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri 13 Apr 2012 08:59:50 BST, Lóránd wrote:

Hi,

I am searching for a way to integrate asset management into foreman.
Does any of you guys had to deal with this kind of requirement?

It would be really nice if we can add additional data to the ones
collected by facter, like date of purchase, warranty, invoice etc.

Regards, Lorand

The easiest solution would be add some custom facts or parameters,
which would then exist in foreman. The facter-dot-d stuff in
puppet-stdlib might be useful for that - drop a file in, and it’s a
fact in foreman on the next run.

Greg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/

iEYEARECAAYFAk+IG8wACgkQ8O7RN8oK65ORtwCgmLI9ZZjLhH1T2yKIIn43iitw
+6gAoILyA1S1zdQrZGUTkbUMLYUSM0XA
=brIj
-----END PGP SIGNATURE-----


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/foreman-users?hl=en.

>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>>
>>> Hi,
>>
>>> I am searching for a way to integrate asset management into foreman.
>>> Does any of you guys had to deal with this kind of requirement?
>>

Hi Greg,

The way we do it here is to write the contract, warranty, vendor data into the BMC
on the hardware and then we will pull it from there with custom facts in case we need configuration
based on one of these.

Steve.

··· On Apr 16, 2012, at 4:11 PM, Lóránd wrote: > On Apr 13, 2:27 pm, Greg Sutcliffe wrote: >> On Fri 13 Apr 2012 08:59:50 BST, Lóránd wrote:

It would be really nice if we can add additional data to the ones
collected by facter, like date of purchase, warranty, invoice etc.

Regards, Lorand

The easiest solution would be add some custom facts or parameters,
which would then exist in foreman. The facter-dot-d stuff in
puppet-stdlib might be useful for that - drop a file in, and it’s a
fact in foreman on the next run.

Greg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/

iEYEARECAAYFAk+IG8wACgkQ8O7RN8oK65ORtwCgmLI9ZZjLhH1T2yKIIn43iitw
+6gAoILyA1S1zdQrZGUTkbUMLYUSM0XA
=brIj
-----END PGP SIGNATURE-----


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/foreman-users?hl=en.

Hi Corey,

warrantystatus & warranty-check looks very great! The only thing left
additionally to collect the gathered warranty info is to provide a way
to register and retrieve purchase prices and device locations.

Cheers, Lorand

I crafted a custom fact that showed the location of the datacenter based on the IP address. It worked great.

Here is the complete snippet of the fact code.

http://pastebin.com/4dWPXSYJ

As far as the cost, I suppose you could do something similar such as location fact but just use a number instead of IP and key off the model of the system.

The number would represent the cost of the system.

Corey Osman
corey@logicminds.biz

Green IT and Datacenter Automation Specialist

··· On Apr 18, 2012, at 5:30 AM, Lóránd wrote:

Hi Corey,

warrantystatus & warranty-check looks very great! The only thing left
additionally to collect the gathered warranty info is to provide a way
to register and retrieve purchase prices and device locations.

Cheers, Lorand


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/foreman-users?hl=en.