Project

General

Profile

Bug #21196

Support kickstart repository name parameter for host and hostgroup

Added by Jonathon Turel almost 4 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hammer
Target version:
Difficulty:
medium
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

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


Related issues

Related to Katello - Bug #20785: Kickstart repository assigned in UI to hostgroup difficult to set using HammerClosed2017-08-29

Associated revisions

Revision 6fad377a (diff)
Added by Partha Aji almost 4 years ago

Fixes #21196,#18743 - Add repo name to host create (#518)

Commit enables passing --kickstart-repository and --content-source
options to
hammer host create/update
hammer hostgroup create/update

History

#1 Updated by Jonathon Turel almost 4 years ago

  • Related to Bug #20785: Kickstart repository assigned in UI to hostgroup difficult to set using Hammer added

#2 Updated by Partha Aji almost 4 years ago

  • Assignee changed from Jonathon Turel to Partha Aji

#3 Updated by Partha Aji almost 4 years ago

  • Target version set to 217

#4 Updated by The Foreman Bot almost 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/hammer-cli-katello/pull/518 added

#5 Updated by Anonymous almost 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#6 Updated by Justin Sherrill almost 4 years ago

  • Legacy Backlogs Release (now unused) set to 284

Also available in: Atom PDF