Feature #19230

hammer-cli: hammer os set-default-template improvement

Added by Petr Ruzicka about 1 year ago. Updated 7 months ago.

Status:New
Priority:Normal
Assigned To:Rahul Bajaj
Category:Provisioning templates
Target version:Foreman - Team Anurag Iteration 22
Difficulty:easy Bugzilla link:
Found in release: Pull request:
Story points-
Velocity based estimate-

Description

Hello.

When I look at the command description for the "hammer os set-default-template" I can see it only accepts "--config-template-id" and "--id".

It would be nice to see if it also accept the "names" and not just "ids" like it's in other parts of hammer.

For example:

hammer os set-default-template --name "My_CentOS" --config-template "My_Kickstart_default"

Thank you

PetrR


Related issues

Duplicated by Hammer CLI - Bug #19997: Commands for setting default templates are missing name o... Duplicate 06/13/2017

History

#1 Updated by Dominic Cleal about 1 year ago

  • Project changed from Foreman to Hammer CLI
  • Category changed from API to Provisioning templates

#2 Updated by Rahul Bajaj 10 months ago

  • Assigned To set to Rahul Bajaj

#3 Updated by Rahul Bajaj 8 months ago

  • Target version set to Team Anurag Iteration 21

#4 Updated by Tomáš Strachota 8 months ago

  • Duplicated by Bug #19997: Commands for setting default templates are missing name options added

#5 Updated by Tomáš Strachota 8 months ago

Please note that there should be two more options for OS's title and template's name, plus config templates should be renamed to provisioning templates:

Current state:

hammer os set-default-template -h
Usage:
    hammer os set-default-template [OPTIONS]

Options:
 --config-template-id TPL ID   config template id to be set
 --id OS ID                    operatingsystem id
 -h, --help                    print help

Expected result:

hammer os set-default-template -h
Usage:
    hammer os set-default-template [OPTIONS]

Options:
 --provisioning-template-id ID ...
 --provisioning-template NAME  ...
 --id ID                       ...
 --title TITLE                 ...

 -h, --help                    print help

#6 Updated by Rahul Bajaj 7 months ago

  • Target version changed from Team Anurag Iteration 21 to Team Anurag Iteration 22

Also available in: Atom PDF