Open bagasse opened 4 years ago
One thing that @mdellweg and I discussed yesterday evening over beer was: we could extend the existing playbooks with a play that describes the setup and points to a non-existing host (so ansible will skip that by default). And the user then can go and add that host to the inventory, pointing to their base install and we extend that base install. This is somewhere between your idea 1 and 2.
I think extending/updating documentation should happen regardless of the automation part of this feature, because we have some slightly outdated bits in there anyways.
Further talks with @ekohl @sean797 and @mdellweg: for "external" services (like a libvirt that we might need for the CR modules) we could provide an additional forklift box that gets fully set up and the user then just needs to configure the URL to said box properly
Some POC can be seen in https://github.com/theforeman/forklift/pull/932 where I tried to do the same for the kubevirt CR (the PR is 90% done, and kubevirt needs more setup than libvirt, but you get the idea.
Bonus points, the same box can be then used by @ekohl in the end-to-end tests he is planning.
@evgeni will try to list up the needed changes and then open up separate issues that need tackling
So what I now did in foreman_host
was adding a play against a fictional foreman
host that does the needed steps:
SUMMARY
Today, there is no default test env documented or provided. This can be an obstacle to contributions on some parts of foreman-ansible-modules that need a 'big' setup (read a lot of plugins / proxy features enabled)
Discution started here #374 thanks to @mdellweg.
Ideas:
test_playbooks
to point to this setup (foreman server, smart proxies names...)Some starting points:
ISSUE TYPE