]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
misc.py: helper roles_to_remotes for generic use
authorDan Mick <dan.mick@inktank.com>
Sat, 1 Feb 2014 00:07:52 +0000 (16:07 -0800)
committerDan Mick <dan.mick@inktank.com>
Tue, 4 Feb 2014 03:37:59 +0000 (19:37 -0800)
commit9b2b2c28f11fbc75509b1dbf42fe2b2c7056017f
tree242c02538955f586a1bbf96a88fba941fbccee51
parentc1bc7fcc7f5aebc94d6a8b6db01d315d5e893868
misc.py: helper roles_to_remotes for generic use

roles_to_remotes will take a config key, 'roles' by default,
and search cluster.remotes for those roles, returning a list
of remotes that hold it.  The list is uniquified by default,
but that can be overridden.  So you can have a task that
should run on specific roles, configure it with
"roles: [mon.0 server.0 osd.2]", and call this to get a list
of remotes that contain those roles.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
teuthology/misc.py