def install_mesos_single_box_mode(distribution):
if '<STR_LIT>' in distribution:<EOL><INDENT>log_green('<STR_LIT>')<EOL>apt_add_key(keyid='<STR_LIT>')<EOL>os = lsb_release()<EOL>apt_string = '<STR_LIT>' % (<EOL>os['<STR_LIT>'], os['<STR_LIT>'])<EOL>log_green('<STR_LIT>')<EOL>apt_add_repository_from_apt_string(apt_string, '<STR_LIT>')<EOL>log_green('<STR_LIT>')<EOL>install_ubuntu_development_tools()<EOL>install_oracle_java(distribution, '<STR_LIT>')<EOL>log_green('<STR_LIT>')<EOL>apt_install(packages=['<STR_LIT>', '<STR_LIT>'])<EOL>if not file_contains('<STR_LIT>',<EOL>'<STR_LIT>', use_sudo=True):<EOL><INDENT>file_append('<STR_LIT>',<EOL>'<STR_LIT>', use_sudo=True)<EOL>log_green('<STR_LIT>')<EOL>for svc in ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>restart_service(svc)<EOL><DEDENT><DEDENT>if not file_contains('<STR_LIT>',<EOL>'<STR_LIT>', use_sudo=True):<EOL><INDENT>file_append('<STR_LIT>',<EOL>'<STR_LIT>', use_sudo=True)<EOL>log_green('<STR_LIT>')<EOL>for svc in ['<STR_LIT>']:<EOL><INDENT>restart_service(svc)<EOL><DEDENT><DEDENT>log_green('<STR_LIT>')<EOL>with quiet():<EOL><INDENT>cmd = '<STR_LIT>'<EOL>contents = sudo(cmd).replace('<STR_LIT:\n>', '<STR_LIT:U+0020>').replace('<STR_LIT:\r>', '<STR_LIT>')<EOL><DEDENT>if not bool(re.search('<STR_LIT>', contents)):<EOL><INDENT>insert_line_in_file_after_regex(<EOL>path='<STR_LIT>',<EOL>line='<STR_LIT>',<EOL>after_regex='<STR_LIT>',<EOL>use_sudo=True)<EOL>log_green('<STR_LIT>')<EOL>restart_service('<STR_LIT>')<EOL><DEDENT><DEDENT>
install mesos (all of it) on a single node