Red Hat Bugzilla – Bug 1478732
Procedure to create new puppet environment
Last modified: 2017-08-06 12:47:34 EDT
Document URL: https://access.redhat.com/documentation/en-us/red_hat_satellite/6.2/html-single/puppet_guide/
Section Number and Name: 3.7. Puppet Environments -> Creating Puppet Environments within Red Hat Satellite
Describe the issue: When the procedure is followed as is, an error will arise when trying to register a new server via boostrap.py with a host group associated to this new environment recently create.
Suggestions for improvement: I'm not sure if is it a bug or missing information, but when I tried to follow the documentation it did not work. Instead, had to create a new environment creating manually a directory under /etc/puppet/environments/ and the import it from the portal. Once performed this procedure, it worked.
Additional information: When creating a new puppet environment trough satellite portal, the registration of a new server associated to this new environment trough bootstrap.py would try to retrieve the puppet CA certificate, querying an address like this:
When I followed the instructions from the manual, it failed with an error "Environment not found".
So the procedure I followed to fix the issue was:
- I created a new directory in satellite under /etc/puppet/environments/ with the name of the new environment.
- After that, I went to Configure -> Environments -> Import from satellite.
- I associated the host group to the new environment
- I re-run boostrap.py in the server and it got registered with no issues.
*** This bug has been marked as a duplicate of bug 1478403 ***