Foreman create puppet environment not creating environment in puppet

puppet

#1

Problem:
create puppet environment not creating environment in puppet brand new install

Expected outcome:
will create env in /etc/puppetlabs/code/environments
Foreman and Proxy versions:
1.20.1
Foreman and Proxy plugin versions:

Other relevant data:
[e.g. logs from Foreman and/or the Proxy, modified templates, commands issued, etc]
(for logs, surround with three back-ticks to get proper formatting, e.g.)

Puppet Version 5.3.6
logs

proxy.log
2019-01-09T13:08:16 dc3f1126 [W] Puppet server classes cache is disabled, classes retrieval can be slow.
2019-01-09T13:08:16 [E] Error while retrieving puppet classes for ‘LOD’ environment
2019-01-09T13:08:16 dc3f1126 [E] Could not find environment ‘LOD’
2019-01-09T13:08:16 dc3f1126 [I] Finished GET /environments/LOD/classes with 404 (99.3 ms)
2019-01-09T13:08:16 dc3f1126 [I] Started GET /environments
2019-01-09T13:08:16 dc3f1126 [I] Finished GET /environments with 200 (107.08 ms)
2019-01-09T13:08:16 dc3f1126 [I] Started GET /environments
2019-01-09T13:08:16 dc3f1126 [I] Finished GET /environments with 200 (108.38 ms)
2019-01-09T13:08:16 dc3f1126 [I] Started GET /environments
2019-01-09T13:08:16 dc3f1126 [I] Finished GET /environments with 200 (97.88 ms)


#2

Such functionality doesn’t exist. Foreman always imports what’s present on the puppet server. Creating the environment on the Foreman side just assumes it’s present on the puppet server.

Katello can manage content and ensure certain environments are present.


#3

@ekohl Thanks! Manually created one and all is working with my installed modules in that env. Thought we had a bud. When I manually created one in puppet it still didn’t import the env. per the documentation.