Import existing host

Hello.

I'm trying to import existing host into foreman 1.10.3 on CentOS 7.

I've installed puppet on that host and put "report=true" in puppet.conf.
After signing its certificate i can see in production.log reports are
coming. But host doesn't appear in foreman. What am i missing?
"Create new host when facts are uploaded" option is true.

Another strange thing: after revoking certificate i still can use puppet
to send reports - until apache restart.

··· -- Over And Out MoonWolf

I have used the attached script to discover existing systems.

I believe it should be possible to take a discovered system and
provision it using something like the ssh method used for provisioning
amazon instances.

Its kind of a background project that gets activity sporadically.

discoverme (939 Bytes)

··· On 04/20/2016 08:56 AM, Marcin Trendota wrote: > Hello. > > I'm trying to import existing host into foreman 1.10.3 on CentOS 7. > > I've installed puppet on that host and put "report=true" in puppet.conf. > After signing its certificate i can see in production.log reports are > coming. But host doesn't appear in foreman. What am i missing? > "Create new host when facts are uploaded" option is true. > > Another strange thing: after revoking certificate i still can use puppet > to send reports - until apache restart. >


Alvin Starr || voice: (905)513-7688
Netvel Inc. || Cell: (416)806-0133
alvin@netvel.net ||

Could you share the log you're looking at?

If you're using orgs and/or locations, the host may be created in a
different context - view with "Any".

··· On 20/04/16 13:56, Marcin Trendota wrote: > Hello. > > I'm trying to import existing host into foreman 1.10.3 on CentOS 7. > > I've installed puppet on that host and put "report=true" in puppet.conf. > After signing its certificate i can see in production.log reports are > coming. But host doesn't appear in foreman. What am i missing?


Dominic Cleal
dominic@cleal.org

W dniu 20.04.2016 o 15:08, Alvin Starr pisze:

> I have used the attached script to discover existing systems.

Unfortunately i get following:
HTTP request sent, awaiting response… 400 Bad Request
2016-04-20 15:14:28 ERROR 400: Bad Request.

··· -- Over And Out MoonWolf

W dniu 20.04.2016 o 15:39, Dominic Cleal pisze:

> Could you share the log you're looking at?
> If you're using orgs and/or locations, the host may be created in a
> different context - view with "Any".

That was it! I can't believe i overloked it. Thanks!

··· -- Over And Out MoonWolf