Exemplo n.º 1
0
def fill_gofs_bin(head_node, machine_list, goffish_relative_path):
	headnode_source_path = head_node.path.source
	gofs_zip_path = headnode_source_path + goffish_relative_path +'gofs/code/modules/gofs-distribution/target/gofs-bin.zip'
	helper.copy_file_from_remote(head_node.address, head_node.username, gofs_zip_path, 'gofs-bin.zip')

	for m in machine_list:
		remote_path = m.path.bin + '/gofs-bin'
		helper.copy_file_to_remote(m.address, m.username, 'gofs-bin.zip', remote_path)

		helper.run_command(m.address, m.username, "unzip " + remote_path + '/gofs-bin.zip' + " -d " + remote_path)
		helper.run_command(m.address, m.username, "rm "+ remote_path + '/gofs-bin.zip')
		helper.run_command(m.address, m.username, "cp -r " + remote_path +'/gofs/* '+remote_path +'/')
		helper.run_command(m.address, m.username, "chmod 777 "+ remote_path + '/*')
		helper.run_command(m.address, m.username, "rm  -r "+ remote_path + '/gofs')

	return
Exemplo n.º 2
0
def fill_gopher_bin(head_node, machine_list, goffish_relative_path):
	headnode_source_path = head_node.path.source
	gopher_server_zip_path = headnode_source_path + goffish_relative_path +'gopher/code/modules/deployment/server/target/gopher-server-bin.zip'
	helper.copy_file_from_remote(head_node.address, head_node.username, gopher_server_zip_path, 'gopher-server-bin.zip')

	for m in machine_list:
		remote_path = m.path.bin + '/gopher-bin'
		helper.copy_file_to_remote(m.address, m.username, 'gopher-server-bin.zip', remote_path)

		helper.run_command(m.address, m.username, "unzip " + remote_path + '/gopher-server-bin.zip' + " -d " + remote_path)
		helper.run_command(m.address, m.username, "rm "+ remote_path + '/gopher-server-bin.zip')

	gopher_bin_zip_path = headnode_source_path + goffish_relative_path +'gopher/code/modules/deployment/client/target/gopher-client-bin.zip'
	helper.copy_file_from_remote(head_node.address, head_node.username, gopher_bin_zip_path, 'gopher-client-bin.zip')

	for m in machine_list:
		remote_path = m.path.bin + '/gopher-bin'
		helper.copy_file_to_remote(m.address, m.username, 'gopher-client-bin.zip', remote_path)

		helper.run_command(m.address, m.username, "unzip " + remote_path + '/gopher-client-bin.zip' + " -d " + remote_path)
		helper.run_command(m.address, m.username, "rm "+ remote_path + '/gopher-client-bin.zip')

	return