usage()
+def get_host_setup_path(file):
+ '''Return the path for host setup file'''
+
+ return os.path.join(INSTALL_DIR, 'ansible/host', file)
+
+
def get_platform_file(platform):
'''Return the name of the host setup file for platform'''
- return os.path.join(INSTALL_DIR,
- 'ansible/host',
- 'autocluster_setup_%s.yml' % platform)
+ return get_host_setup_path('autocluster_setup_%s.yml' % platform)
def sanity_check_platform_name(platform):
announce('host', platform, 'setup')
platform_file = get_platform_file(platform)
+ ssh_file = get_host_setup_path('autocluster_setup_%s.yml' % 'ssh')
os.environ['ANSIBLE_RETRY_FILES_ENABLED'] = 'false'
- args = ['ansible-playbook', platform_file]
+ args = ['ansible-playbook', platform_file, ssh_file]
try:
subprocess.check_call(args)