Foreman importing puppet config and vice versa?

Dear all,

because of the nice gui I would like to use foreman with puppet.
I have read that I can import node configuration from puppet to foreman,
but does this also work from foreman to puppet?
To keep foreman up to date the import from puppet to foreman should run
e.g. by cron every 30 minutes.
But if I edit the node definition in foreman, is it possible to export it
to puppet?

Do I have to determine, if I edit configuration files in puppet or over the
gui in foreman or is both possible?

Best regards,
Andreas

Thank you for the answer. I still do not understand if I change an
assigment of a class to a host, if puppet writes that in to the file where
I have originally defined the relation.

Andreas

··· Am Montag, 15. Juli 2013 19:26:11 UTC+2 schrieb Andreas Dvorak:

Dear all,

because of the nice gui I would like to use foreman with puppet.
I have read that I can import node configuration from puppet to foreman,
but does this also work from foreman to puppet?
To keep foreman up to date the import from puppet to foreman should run
e.g. by cron every 30 minutes.
But if I edit the node definition in foreman, is it possible to export it
to puppet?

Do I have to determine, if I edit configuration files in puppet or over
the gui in foreman or is both possible?

Best regards,
Andreas

>
> Dear all,
>
> because of the nice gui I would like to use foreman with puppet.
> I have read that I can import node configuration from puppet to foreman,
but does this also work from foreman to puppet?

I am assuming you have foreman setup as an enc in puppet.
If this isn't the case you will need to set that up.

Puppet will merge the manifest for a node from what you have setup in
foreman and your normal node configuration in puppet.
So you don't need to syncronise the two.
The classes you "imported" into foreman is basically to give you a list of
classes to assign to nodes and/or host groups and a list of variables to
set on those node and/or host groups.
Does that help?

> To keep foreman up to date the import from puppet to foreman should run
e.g. by cron every 30 minutes.
> But if I edit the node definition in foreman, is it possible to export it
to puppet?

See above.

I have foreman setup here and use it to define a few host groups which I
asign to my nodes.
I currently only use foreman to assign classes to nodes and host groups.
All my class variables are setup with hiera.

>
> Do I have to determine, if I edit configuration files in puppet or over
the gui in foreman or is both possible?
>
> Best regards,
> Andreas
>
> –
> 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.

··· On 16/07/2013 3:26 AM, "Andreas Dvorak" wrote: > 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/groups/opt_out. > >

> Thank you for the answer. I still do not understand if I change an assigment
> of a class to a host, if puppet writes that in to the file where I have
> originally defined the relation.

If you are talking about changing that in foreman then those details
are stored in it's database.
Foreman doesn't add the details to puppets node definitions.
Foreman provides those details to puppet when it runs the node
definition script you setup when you install foreman.

··· On 16 July 2013 23:17, Andreas Dvorak wrote:

Andreas

Am Montag, 15. Juli 2013 19:26:11 UTC+2 schrieb Andreas Dvorak:

Dear all,

because of the nice gui I would like to use foreman with puppet.
I have read that I can import node configuration from puppet to foreman,
but does this also work from foreman to puppet?
To keep foreman up to date the import from puppet to foreman should run
e.g. by cron every 30 minutes.
But if I edit the node definition in foreman, is it possible to export it
to puppet?

Do I have to determine, if I edit configuration files in puppet or over
the gui in foreman or is both possible?

Best regards,
Andreas


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/groups/opt_out.