Support get/set/delete variables in Python client/CLI
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Craton's Python Client |
Fix Released
|
Critical
|
Thomas Maddox |
Bug Description
CLI and client support for get/set/delete of resource vars
Functionality should be supported both for the Python client:
host = craton.
host.variables.
As well as for the CLI:
craton region-vars-get 1
craton cell-vars-get 3 x=true y=47 z=foo/bar w=3.14159
cat <<EOF | craton host-vars-set 13
{
"glance_
"neutron_
"make_
"some/
}
EOF
craton host-vars-get --format=json 13 | jq -C
craton cell-vars-delete 13 make_stuff_up
craton cell-vars-set 13 x= y=42 # deletes x
etc.
The following resources should be supported: projects, regions, cells, hosts, network devices.
The general subcommand convention will be <resources>
<resources>
Code will be implemented to minimize the overhead of doing
this for additional resources in the future, such as cloud, user,
workflow, etc.
It would be more ergonomic if the CLI supported referencing a
resource, like a host, by an identifying name, not just an ID, but
any such work will be done in a separate bug.
Changed in python-cratonclient: | |
importance: | Undecided → High |
assignee: | nobody → Sulochan Acharya (sulochan-acharya) |
Changed in python-cratonclient: | |
assignee: | Sulochan Acharya (sulochan-acharya) → Jim Baker (jimbaker) |
Changed in python-cratonclient: | |
assignee: | Jim Baker (jimbaker) → Thomas Maddox (thomas-maddox) |
To minimize task scheduling, also support projects; so depends on https:/ /review. openstack. org/#/c/ 427777/