Support kickstart repository name parameter for host and hostgroup
API/Hammer currently supports adding kickstart repos to host & hostgroup by ID, however there isn't a mechanism to list the valid KS repo IDs which can be assigned making it cumbersome.
However, in several places we show the names of the KS repos and we can support adding them to host & hostgroup by name.
Ex: host create --kickstart-repository="RHEL 7.4" --content-view="MyView" --lifecycle_environment="Library" --organization-id=1
Notes from Partha: typically when you give --kickstart-repository="RHEL 7.4" what hammer should do is automatically make a separate call to the server and get the id and then pass that as a param for the final create but the problem here is hammer is not going to know that you need to pass the CV and LCE ID and that you need to call content-view-version and get the repository ID from there
#5 Updated by Anonymous almost 4 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset hammer-cli-katello|6fad377a53f4e3160e20313eca29805d82a4f5cb.