Failed repository creation is not easily corrected
When trying to create a repository, if an error occurs due to some user error the dynflow process cannot be corrected.
Create a puppet repo with a feed url starting with 'https'
The repository creation process will start but the dynflow task will fail when it tries to create it in pulp. Since the user cannot re-submit the task and update the feed url, he is forced to go into the rails console and delete the repository.
fixes #5096 - fail gracefully on pulp repo creation failure
The goal is to run the action creation in the plan phase
and error out if its not valid. A similar approach is taken
with Content Host Creation. However in that case, content hosts
are not created in other situations. Repositories are created during
publish/promote of content views as well and in that situation we do not
want to perform pulp creation in the plan phase. As a result I have created
a new action CreateImmediate that does the creation in the plan phase.
It attempts to use as much from Create as possible (there is a lot of code there)