[katello-devel] Custom Attributes for a System
Miroslav Suchý
msuchy at redhat.com
Thu Aug 16 08:27:27 UTC 2012
On 08/15/2012 10:42 PM, Adam Price wrote:
> after looking at the email thread about key-value pairs for a system, i put together a small design doc outlining what this change entails. please look it over and make some comments.
>
> https://fedorahosted.org/katello/wiki/SystemsCustomAttributesDesign
>
> Brno guys, please specifically look over the cli portion. i want to make sure we stay with the same command-style (naming, etc) as the rest of the cli. thanks.
>
Pair (system_id, attr_key) will be unique?
I would suggest to not be unique.
I can image having attr_key:
people_having_access: msuchy
people_having_access: aprice
It will not mean change in WebUI, but in CLI we would have to extend to:
katello <user/pass> system_attribute delete --system-name="dudley"
--name="cube number" --value="Chuck Norris"
While:
katello <user/pass> system_attribute delete --system-name="dudley"
--name="cube number"
would ask if proceed if deleting more then one row unless --force is
present on command line.
Add:
katello <user/pass> system_attribute update --system-name="dudley"
--name="user" --old-value="Bruce Lee" --new-value="Chuck Norris"
And this command:
katello <user/pass> system_attribute update --system-name="dudley"
--name="user" --new-value="Chuck Norris"
will refuse to continue if there is more then one attr_key "user" for
"dudley".
--
Miroslav Suchy
Red Hat Systems Management Engineering
More information about the katello-devel
mailing list