Go to file
Thomas Maddox 05b4f117bb CLI and client support for get/set/delete of resource vars
Functionality is supported both	for the	Python client:

host = craton.hosts.get(item_id=8)
host.variables.update(x='foo', y={'a': 47, 'b': True}, z='baz')
host.variables.delete("foo", "bar", "baz")

As well	as for the CLI:

craton host-vars-get 1
craton host-vars-set 3 x=true y=47 z=foo/bar w=3.14159
cat <<EOF | craton host-vars-set 13
{
    "glance_default_store": "not-so-swift",
    "neutron_l2_population": false,
    "make_stuff_up": true,
    "some/namespaced/variable": {"a": 1, "b": 2}
}
EOF
craton --format json host-vars-get 13 | jq -C
craton host-vars-delete 13 make_stuff_up
craton host-vars-set 13 x= y=42   # deletes x

This patch implements the basis for supporting this
in other resources as well, however we only address
hosts here as an initial implementation. We will
fast-follow with support in other resources.

Partial-Bug: 1659110
Change-Id: Id30188937518d7103d6f943cf1d038b039dc30cc
2017-03-06 14:27:35 +00:00
2016-12-21 14:08:42 +11:00
2016-06-14 09:52:51 -05:00
2016-06-14 09:52:51 -05:00
2016-06-14 09:52:51 -05:00
2016-06-14 09:52:51 -05:00
2016-06-14 09:52:51 -05:00
2016-06-23 15:00:45 -05:00
2016-06-14 09:52:51 -05:00
2016-06-14 09:52:51 -05:00
2016-06-14 09:52:51 -05:00
2016-06-14 09:52:51 -05:00
2016-06-14 09:52:51 -05:00
2016-06-14 09:52:51 -05:00
2017-02-27 14:31:59 -06:00
2017-03-02 11:54:15 +00:00
2016-12-21 14:08:42 +11:00

python-cratonclient

Craton API Client and Command-line Utility

Please fill here a long description which must be at least 3 lines wrapped on 80 cols, so that distribution package maintainers can use it in their packages. Note that this is a hard requirement.

Features

  • TODO
Description
RETIRED, Fleet management for OpenStack
Readme 1.8 MiB