Foreman as inventory DB?

Hello! I would like to use foreman, but have an immediate need to be able
to assess the state of my environment, e.g. what server are running which
OS version, etc. I think I can find out this information using foreman,
however only 1/2 of my estate is using puppet, and I would also like to be
able to track this unmanaged portion of servers.

I can ssh out to these hosts and run facter on them . . . does anyone know
if it's possible to stuff this information into foreman?

Thanks a lot,
Guy

Foreman will tell you all this OS family, OS, major and minor version
number, look at writing custom facts or stealing something off Github if
the info you want isn't covered by the standard facts. Foreman does a
puppet run once every 30 minutes to get facts and these are fed back as
part of the reporting mechanism. FYI you can run Puppet without it makes
changes if you want.

https://docs.puppetlabs.com/facter/2.3/custom_facts.html

Regards Jim

··· On 15 January 2015 at 15:26, Guy Matz wrote:

Hello! I would like to use foreman, but have an immediate need to be able
to assess the state of my environment, e.g. what server are running which
OS version, etc. I think I can find out this information using foreman,
however only 1/2 of my estate is using puppet, and I would also like to be
able to track this unmanaged portion of servers.

I can ssh out to these hosts and run facter on them . . . does anyone know
if it’s possible to stuff this information into foreman?

Thanks a lot,
Guy


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Thanks. My problem, though, is that I don't have puppet installed on these
machines and need to do an assessment of them before I start deploying
puppet. I would like to be able to get the facts from these unmanaged
servers into foreman . . . is there a way?

Thanks again

··· On Thu, Jan 15, 2015 at 10:31 AM, James Bailey wrote:

Foreman will tell you all this OS family, OS, major and minor version
number, look at writing custom facts or stealing something off Github if
the info you want isn’t covered by the standard facts. Foreman does a
puppet run once every 30 minutes to get facts and these are fed back as
part of the reporting mechanism. FYI you can run Puppet without it makes
changes if you want.

https://docs.puppetlabs.com/facter/2.3/custom_facts.html

Regards Jim

On 15 January 2015 at 15:26, Guy Matz gmatz@matz.org wrote:

Hello! I would like to use foreman, but have an immediate need to be
able to assess the state of my environment, e.g. what server are running
which OS version, etc. I think I can find out this information using
foreman, however only 1/2 of my estate is using puppet, and I would also
like to be able to track this unmanaged portion of servers.

I can ssh out to these hosts and run facter on them . . . does anyone
know if it’s possible to stuff this information into foreman?

Thanks a lot,
Guy


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

> Thanks. My problem, though, is that I don't have puppet installed on
> these machines and need to do an assessment of them before I start
> deploying puppet. I would like to be able to get the facts from these
> unmanaged servers into foreman . . . is there a way?
>

of course, I think the easiest would be to reuse the puppet enc node script
to upload the facts.
<WARNING - did not try it in a long time>
Since foreman by default does not accept unknown hosts to upload facts to
it, most likely you can get the output of facter --yaml and save it to the
same directory where puppet is storing it by default.

then use the node script to upload facts.

good luck,
Ohad

··· On Thu, Jan 15, 2015 at 5:36 PM, Guy Matz wrote:

Thanks again

On Thu, Jan 15, 2015 at 10:31 AM, James Bailey paradoxbound@gmail.com > wrote:

Foreman will tell you all this OS family, OS, major and minor version
number, look at writing custom facts or stealing something off Github if
the info you want isn’t covered by the standard facts. Foreman does a
puppet run once every 30 minutes to get facts and these are fed back as
part of the reporting mechanism. FYI you can run Puppet without it makes
changes if you want.

https://docs.puppetlabs.com/facter/2.3/custom_facts.html

Regards Jim

On 15 January 2015 at 15:26, Guy Matz gmatz@matz.org wrote:

Hello! I would like to use foreman, but have an immediate need to be
able to assess the state of my environment, e.g. what server are running
which OS version, etc. I think I can find out this information using
foreman, however only 1/2 of my estate is using puppet, and I would also
like to be able to track this unmanaged portion of servers.

I can ssh out to these hosts and run facter on them . . . does anyone
know if it’s possible to stuff this information into foreman?

Thanks a lot,
Guy


You received this message because you are subscribed to the Google
Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.