Project

General

Profile

Actions

Bug #19999

closed

Support for associating multiple provisioning templates at once

Added by Tomáš Strachota almost 7 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Provisioning templates
Target version:
-
Difficulty:
Triaged:
Yes
Team Backlog:
Marek
Fixed in Releases:
Found in Releases:
In Kanboard:
yes

Description

hammer os add-config-template allows to add templates only one by one. Allowing to set more templates at once would make it easier to use the command.

Current usage:

hammer os add-config-template -h
Usage:
    hammer os add-config-template [OPTIONS]

Options:
 --config-template CONFIG_TEMPLATE_NAME  Name to search by
 --config-template-id CONFIG_TEMPLATE_ID  
 --id ID                                  
 --title TITLE                           Operating system title
 -h, --help                              print help

Expected usage:

hammer os add-config-template -h
Usage:
    hammer os add-config-template [OPTIONS]

Options:
 --config-templates    NAMES  Names of templates
 --config-template-ids IDS    IDs of templates
 --id ID                                  
 --title TITLE                Operating system title
 -h, --help                   print help

At the same time we need to keep backward compatibility and accept the old options with a deprecation warning.

One extra feature could be a search field, that would associate all matching templates:

hammer os add-config-template --title 'RedHat 7' --config-template-search="Kickstart*" 


Related issues 3 (1 open2 closed)

Related to Hammer CLI - Tracker #2823: Tracker for usability issuesClosed

Actions
Related to Hammer CLI - Feature #28836: Allow multiple disassociating of provisioning templatesClosedyifat makiasActions
Related to Hammer CLI - Bug #29231: Search options have result limitsNewActions
Actions

Also available in: Atom PDF