Actions
Bug #19999
closedSupport for associating multiple provisioning templates at once
Difficulty:
Triaged:
Yes
Team Backlog:
Marek
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*"
Actions