Add proper client for nailgun in fsclient.py
This commit is contained in:
parent
e2d61fd55c
commit
fa03f07380
@ -18,6 +18,12 @@ solar:
|
||||
links:
|
||||
- riak
|
||||
- redis
|
||||
|
||||
# docker run --name solar -d -v /root/solar/solar:/solar -v /root/solar/solard:/solard -v /root/solar/templates:/vagrant/templates \
|
||||
# -v /root/solar/resources:/vagrant/resources -v /root/solar/f2s:/vagrant/f2s \
|
||||
# -v /var/lib/fuel:/var/lib/fuel -v /root/.config/fuel/fuel_client.yaml:/root/.config/fuel/fuel_client.yaml \
|
||||
# --link=riak:riak --link=redis:redis --name solar solarproject/solar-celery:f2s
|
||||
|
||||
riak:
|
||||
image: tutum/riak
|
||||
ports:
|
||||
|
@ -15,13 +15,15 @@ class NailgunSource(object):
|
||||
def nodes(self, uids):
|
||||
from fuelclient.objects.node import Node
|
||||
nodes_obj = map(Node, nodes)
|
||||
return []
|
||||
return [str(n.data['id']), str(n.data['ip']), str(n.data['cluster'])]
|
||||
|
||||
def roles(self, roles):
|
||||
return []
|
||||
def roles(self, uid):
|
||||
from fuelclient.objects.node import Node
|
||||
node = Node(uid)
|
||||
return node.data['roles'] + node.data['pending_roles']
|
||||
|
||||
def master(self):
|
||||
return 'master', ''
|
||||
return 'master', '10.20.0.2'
|
||||
|
||||
class DumbSource(object):
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user