def install_mapr_repos(instance):
     return util.run_script(instance, ADD_MAPR_REPO_SCRIPT, "root",
                            distro_name, **cluster_context.mapr_repos)
 def install_mysql(instance, distro_name, distro_version):
     g.run_script(instance, MySQL.MYSQL_INSTALL_SCRIPT, 'root', distro_name,
                  distro_version.split('.')[0])
 def install_java(instance):
     return util.run_script(instance, INSTALL_JAVA_SCRIPT,
                            "root", distro_name)
 def install_scala(instance):
     return util.run_script(instance, INSTALL_SCALA_SCRIPT,
                            "root", distro_name)
 def install_mysql_client(instance):
     return util.run_script(instance, INSTALL_MYSQL_CLIENT,
                            "root", distro_name)
 def install_security_repos(instance):
     return util.run_script(instance, ADD_SECURITY_REPO_SCRIPT, "root")
 def _generate_disk_list_file(self, instance, path_to_disk_setup_script):
     LOG.debug('Creating disk list file')
     g.run_script(instance, path_to_disk_setup_script, 'root',
                  *instance.storage_paths())