Files
packstack-vagrant/scripts/get_hosts.py
Christian Berendt fd533dba7e Initial upload
2014-12-09 22:51:36 +01:00

13 lines
262 B
Python

#!/usr/bin/python
import yaml
config = yaml.load(open('config.yaml'))
for name, value in config['address'].items():
if name == 'compute':
for index, _ in enumerate(value):
print("compute%d" % (index + 1))
else:
print(name)