capsule-certs-generate should make it easier to setup capsule via automation
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1244848
Description of problem:
capsule-certs-generate currently generates certs and helper steps to setup capsule-installer.
This could be automated a bit more.
The request here is to establish ssh passwordless configuraiton to the capsule.
Once that is done the steps can be further automated.
first any capsule pre-requisites should be validated
6.2. Red Hat Satellite Capsule Server Prerequisites
1. Ensure that the capsule-installer package is installed on the system.
2. Copy sun-x4-2l-1-certs.tar to the system sun-x4-2l-1.gsslab.rdu2.redhat.com
Once ssh password is configured these two steps above can be automated
Also this can be automated.
Next part needs to query user on which [Organization/Environment]s they want to register to
Assumming a capsule can hook up to more than one organization/environment.
Next the the user needs to be queried on which type of capsule to install.
see section 6.4.1, 6.4.2, 6.4.
This should supply a validated capsule-installer command that can be auto run against the capsule server now that we have supplied passwordless access.
Version-Release number of selected component (if applicable):
Steps to Reproduce: