def prep_bootstrap(mpt):
 bs_ = __salt__['config.gather_bootstrap_script']()
 fpd_ = os.path.join(mpt, 'tmp', '{0}'.format(uuid.uuid4()))
 if (not os.path.exists(fpd_)):
  os.makedirs(fpd_)
 os.chmod(fpd_, 448)
 fp_ = os.path.join(fpd_, os.path.basename(bs_))
 shutil.copy(bs_, fp_)
 tmppath = fpd_.replace(mpt, '')
 return (fp_, tmppath)

def prep_bootstrap ( mpt ) : bs_ = __salt__ [ 'config.gather_bootstrap_script' ] ( ) fpd_ = os . path . join ( mpt , 'tmp' , '{0}' . format ( uuid . uuid4 ( ) ) ) if ( not os . path . exists ( fpd_ ) ) : os . makedirs ( fpd_ ) os . chmod ( fpd_ , 448 ) fp_ = os . path . join ( fpd_ , os . path . basename ( bs_ ) ) shutil . copy ( bs_ , fp_ ) tmppath = fpd_ . replace ( mpt , '' ) return ( fp_ , tmppath )
update and get the random script to a random place cli example: .