|
|
@ -222,12 +222,17 @@ class LibcloudInventory(object):
|
|
|
|
self.push(self.inventory, self.to_safe('type_' + node.instance_type), dest)
|
|
|
|
self.push(self.inventory, self.to_safe('type_' + node.instance_type), dest)
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
# Inventory: Group by key pair
|
|
|
|
# Inventory: Group by key pair
|
|
|
|
if node.extra['keyname']:
|
|
|
|
if node.extra['key_name']:
|
|
|
|
self.push(self.inventory, self.to_safe('key_' + node.extra['keyname']), dest)
|
|
|
|
self.push(self.inventory, self.to_safe('key_' + node.extra['key_name']), dest)
|
|
|
|
|
|
|
|
|
|
|
|
# Inventory: Group by security group, quick thing to handle single sg
|
|
|
|
# Inventory: Group by security group, quick thing to handle single sg
|
|
|
|
if node.extra['securitygroup']:
|
|
|
|
if node.extra['security_group']:
|
|
|
|
self.push(self.inventory, self.to_safe('sg_' + node.extra['securitygroup'][0]), dest)
|
|
|
|
self.push(self.inventory, self.to_safe('sg_' + node.extra['security_group'][0]), dest)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Inventory: Group by tag
|
|
|
|
|
|
|
|
if node.extra['tags']:
|
|
|
|
|
|
|
|
for tagkey in node.extra['tags'].keys():
|
|
|
|
|
|
|
|
self.push(self.inventory, self.to_safe('tag_' + tagkey + '_' + node.extra['tags'][tagkey]), dest)
|
|
|
|
|
|
|
|
|
|
|
|
def get_host_info(self):
|
|
|
|
def get_host_info(self):
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|