Re: [foreman-users] Re: How do I re-create a previously deleted host that was auto-created via puppet?

2016-07-08 Thread Greg Sutcliffe
Taking each question separately:

1) You can just run Puppet again on your hosts, and they will be recreated
in the UI just as before. There's no difference to Foreman whether a host
has been around for 5 minutes or 5 months - when it sees a report from an
unknown host, it'll create an entry for it.

2) That's a valid usecase - but such hosts are usually created via the
report-in method as above. If you need to create them ahead of time, you
can either:

(a) put in fake provisioning data, Save, then Edit the host and click
Unmanage at the top right, which will remove the provisioning fields. This
button isn't available on the New Host page, unfortunately.
(b) use the CLI tool to create a host with unamanged=true in the call.

It's generally easier to use the check-in method though, as this ensures
the certname is set correctly in Foreman.

Hope that helps
Greg

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


[foreman-users] Re: How do I re-create a previously deleted host that was auto-created via puppet?

2016-07-08 Thread otheus uibk
To be clear: The Foreman does not allow me to manually create a host. Why 
not? Because it wants to provision a host. This is kind of stupid, and I 
dont understand why the foreman needs to act as both ENC *and* provisioner. 
These are related, but separate roles. It would be nice if I could somehow 
create a host without any kind of provisioning at all (because it already 
exists, and I just need to tell TheForeman about it)

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.