def enable_marathon_basic_authentication(principal, password):
upstart_file = '<STR_LIT>'<EOL>with hide('<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>sudo('<STR_LIT>'.format(password))<EOL><DEDENT>boot_args = '<STR_LIT:U+0020>'.join(['<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>'.format(principal, password),<EOL>'<STR_LIT>',<EOL>principal,<EOL>'<STR_LIT>',<EOL>'<STR_LIT>'])<EOL>if not file_contains(upstart_file, boot_args, use_sudo=True):<EOL><INDENT>sed(upstart_file, '<STR_LIT>', boot_args, use_sudo=True)<EOL>file_attribs(upstart_file, mode=<NUM_LIT>, sudo=True)<EOL>restart_service('<STR_LIT>')<EOL><DEDENT>
configures marathon to start with authentication