Module ImportFrom alias alias alias Assign NameStore Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias alias Expr Call AttributeLoad NameLoad attr Num Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore NameLoad If NameLoad body Expr Call NameLoad Call AttributeLoad Str attr NameLoad If UnaryOpNot NameLoad body Assign NameStore ListLoad Assign TupleStore NameStore NameStore TupleLoad NameLoad NameLoad If NameLoad body If NameLoad body Assign NameStore Call NameLoad NameLoad keyword NameLoad orelse Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad If NameLoad body With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr attr If CompareNotEq NameLoad NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad NameLoad orelse Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Assign TupleStore NameStore NameStore TupleLoad NameLoad Str If BoolOpAnd UnaryOpNot NameLoad UnaryOpNot NameLoad body TryExcept body Assign NameStore Call AttributeLoad Str attr Call NameLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad attr attr handlers ExceptHandler type NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If BoolOpAnd UnaryOpNot NameLoad UnaryOpNot NameLoad body TryExcept body With Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad NameStore body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Assign NameStore NameLoad If UnaryOpNot NameLoad body If NameLoad body Expr Call NameLoad NameLoad Raise Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad body Assign TupleStore NameStore NameStore TupleLoad NameLoad Str If BoolOpAnd UnaryOpNot NameLoad UnaryOpNot NameLoad body TryExcept body Assign NameStore Call AttributeLoad Str attr Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad attr attr If CompareIn Str Call AttributeLoad NameLoad attr body Assign NameStore Str handlers ExceptHandler type NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If BoolOpAnd UnaryOpNot NameLoad UnaryOpNot NameLoad body TryExcept body With Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad NameStore body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Assign NameStore NameLoad If NameLoad body Expr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad Str attr NameLoad If BoolOpOr BoolOpAnd UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad body Expr Call NameLoad Call AttributeLoad Str attr NameLoad Assign TupleStore NameStore NameStore Call NameLoad Call AttributeLoad Str attr NameLoad If AttributeLoad NameLoad attr body If CompareIn Str SubscriptLoad NameLoad Index Num body Pass orelse Expr Call NameLoad SubscriptLoad NameLoad Index Num Expr Call NameLoad SubscriptLoad NameLoad Index Num Expr Call NameLoad Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Num With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body TryExcept body Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad Call AttributeLoad Str attr NameLoad Return handlers ExceptHandler type TupleLoad NameLoad name NameStore body If NameLoad body Raise NameLoad ExceptHandler type TupleLoad NameLoad name NameStore body Pass ExceptHandler type TupleLoad NameLoad name NameStore body If NameLoad body Raise NameLoad orelse Assign NameStore Call AttributeLoad Str attr NameLoad Call AttributeLoad NameLoad attr Expr Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad Call AttributeLoad Str attr NameLoad Expr Call NameLoad Call AttributeLoad Str attr NameLoad With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMult Num Num While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Break Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Assign NameStore Str Assign TupleStore NameStore NameStore Call NameLoad NameLoad If SubscriptLoad NameLoad Index Num body If CompareIn Call AttributeLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr attr ListLoad Str Str Str Str body Return Call AttributeLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Assign NameStore NameLoad Assign NameStore Str Assign TupleStore NameStore NameStore Call NameLoad NameLoad If SubscriptLoad NameLoad Index Num body If CompareIn Call AttributeLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr attr ListLoad Str Str body Assign NameStore NameLoad If BoolOpAnd NameLoad UnaryOpNot NameLoad body Assign NameStore Str Assign TupleStore NameStore NameStore Call NameLoad NameLoad If AttributeLoad NameLoad attr body Expr Call NameLoad SubscriptLoad NameLoad Index Num Expr Call NameLoad SubscriptLoad NameLoad Index Num Raise Call NameLoad Str Assign NameStore Str Assign TupleStore NameStore NameStore Call NameLoad NameLoad If AttributeLoad NameLoad attr body Expr Call NameLoad SubscriptLoad NameLoad Index Num Expr Call NameLoad SubscriptLoad NameLoad Index Num Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr NameLoad If BoolOpOr NameLoad BoolOpAnd UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Str UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Str body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad Assign TupleStore NameStore NameStore Call NameLoad Call AttributeLoad Str attr keyword NameLoad keyword NameLoad If AttributeLoad NameLoad attr body Expr Call NameLoad SubscriptLoad NameLoad Index Num Expr Call NameLoad SubscriptLoad NameLoad Index Num Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Num Expr Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad Assign TupleStore NameStore NameStore Call NameLoad Call AttributeLoad Str attr keyword NameLoad keyword NameLoad If AttributeLoad NameLoad attr body Expr Call NameLoad SubscriptLoad NameLoad Index Num Expr Call NameLoad SubscriptLoad NameLoad Index Num Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Num With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Str If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str Str NameLoad NameLoad NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore NameLoad If UnaryOpNot NameLoad body Assign NameStore NameLoad Assign NameStore Str Assign TupleStore NameStore NameStore Call NameLoad NameLoad If AttributeLoad NameLoad attr body Return Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad NameLoad NameLoad NameLoad If NameLoad body Assign NameStore BinOpAdd NameLoad Str If UnaryOpNot NameLoad body Assign TupleStore NameStore NameStore Call NameLoad NameLoad keyword NameLoad If AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign TupleStore NameStore NameStore Call NameLoad NameLoad keyword NameLoad If AttributeLoad NameLoad attr body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Assign NameStore Call AttributeLoad Str attr NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad If AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign NameStore Call AttributeLoad Str attr NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad If AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign NameStore SubscriptLoad SubscriptLoad Call NameLoad Str Index Num Index Num Assign NameStore ListLoad For NameStore ListLoad Str Str body Assign NameStore Call AttributeLoad Str attr ListLoad NameLoad NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad If NameLoad body Assign NameStore BinOpAdd BinOpAdd BinOpAdd Call AttributeLoad Str attr NameLoad Str NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad If AttributeLoad NameLoad attr body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword NameLoad keyword Str keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad keyword Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad Str attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Call AttributeLoad Str attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num Assign NameStore Call NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Call NameLoad keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str If BoolOpAnd SubscriptLoad NameLoad Index Str CompareEq Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr attr attr Str Str attr Str Str Str body Assign SubscriptStore NameLoad Index Str NameLoad orelse Assign SubscriptStore NameLoad Index Str Call NameLoad keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad If CompareNotIn Call AttributeLoad NameLoad attr ListLoad Num body Raise Call NameLoad Str If BoolOpAnd BoolOpAnd BoolOpOr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Str BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Str UnaryOpNot SubscriptLoad NameLoad Index Str body Raise Call NameLoad Str If UnaryOpNot SubscriptLoad NameLoad Index Str body Expr Call NameLoad SubscriptLoad NameLoad Index Str If UnaryOpNot SubscriptLoad NameLoad Index Str body Expr Call NameLoad keyword SubscriptLoad NameLoad Index Str If UnaryOpNot SubscriptLoad NameLoad Index Str body Expr Call NameLoad NameLoad NameLoad keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str If UnaryOpNot SubscriptLoad NameLoad Index Str body Expr Call NameLoad NameLoad NameLoad keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str If UnaryOpNot SubscriptLoad NameLoad Index Str body Expr Call NameLoad NameLoad NameLoad If UnaryOpNot SubscriptLoad NameLoad Index Str body Expr Call NameLoad SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A __future__ absolute_import division print_function N/A __docformat__ restructuredtext en N/A glob N/A shutil N/A time N/A os N/A socket N/A pprint N/A time N/A urllib2 N/A hashlib N/A difflib N/A sys N/A traceback N/A re N/A socket N/A argparse subprocess Popen PIPE N/A N/A N/A socket setdefaulttimeout 2 N/A GITHUB https://raw.githubusercontent.com/makinacorpus/makina-states/stable/ N/A RELEASES_URL http://sourceforge.net/projects/makinacorpus/files/makina-states N/A VER_SLUG versions/makina-states-{dist}-{flavor}_version.txt N/A MD5_SLUG N/A N/A {0}.md5 format VER_SLUG N/A VER_URL N/A GITHUB VER_SLUG N/A MD5_URL N/A GITHUB MD5_SLUG N/A DEFAULT_DIST trusty N/A DEFAULT_FLAVOR standalone N/A DEFAULT_VER 14 N/A DEFAULT_MD5 7be985a7965d0228178aad06f6ad0a4c N/A DEFAULT_BRANCH stable N/A DESCRIPTION 
Install a prebuilt version of makina-states directly on the system

WARNING: for now only ubuntu-trusty is supported
DONT INSTALL ON ANYTHING ELSE THAN TRUSTY UNLESS YOU KNOW WHAT's YOU ARE
DOING

Prerequisites:
    apt-get install python

usage:
    {name}
 popen N/A N/A cargs shell log stream N/A None True True None N/A N/A N/A stream None N/A N/A stream False N/A log N/A N/A N/A print N/A N/A Running: {0} format cargs N/A N/A cargs N/A N/A cargs N/A N/A N/A ret ps N/A None None N/A cargs N/A N/A stream N/A N/A ps N/A Popen cargs shell shell N/A N/A ps N/A Popen cargs shell shell stdout PIPE stderr PIPE N/A ret N/A N/A ps communicate N/A N/A ret ps N/A check_md5 N/A N/A filep md5 N/A None N/A N/A N/A N/A N/A N/A os path exists filep N/A N/A N/A OSError N/A N/A {0} does not exists format filep N/A md5 N/A N/A N/A open filep rb fic N/A N/A cmd5 N/A N/A N/A N/A hashlib md5 N/A N/A fic read hexdigest N/A N/A cmd5 md5 N/A N/A N/A ValueError N/A N/A md5sum failed({0}) current: {1} != {2} format filep cmd5 md5 N/A N/A N/A print WARNING: MD5 check skipped N/A get_ver N/A N/A ver dist flavor offline N/A DEFAULT_VER DEFAULT_DIST DEFAULT_FLAVOR False N/A N/A N/A res trace N/A ver N/A N/A N/A ver N/A offline N/A N/A N/A N/A res N/A N/A {0} format N/A int N/A N/A N/A N/A N/A N/A urllib2 urlopen N/A N/A VER_URL format dist dist read strip N/A N/A N/A Exception N/A N/A trace N/A N/A traceback format_exc N/A N/A N/A ver N/A res N/A N/A N/A N/A N/A open N/A N/A N/A os path join N/A N/A N/A os path dirname N/A N/A N/A os path dirname N/A N/A N/A os path abspath N/A N/A sys argv N/A 0 N/A N/A VER_SLUG format flavor flavor dist dist fic N/A N/A res N/A N/A N/A N/A fic read strip N/A N/A N/A IOError N/A N/A res DEFAULT_VER N/A N/A res N/A N/A trace N/A N/A N/A print trace N/A N/A ValueError No default version N/A res N/A get_md5 N/A N/A md5 ver dist flavor offline N/A DEFAULT_MD5 DEFAULT_VER DEFAULT_DIST DEFAULT_FLAVOR False N/A N/A N/A res trace N/A md5 N/A N/A N/A md5 N/A offline N/A N/A N/A N/A res N/A N/A {0} format N/A N/A N/A N/A N/A N/A urllib2 urlopen N/A N/A MD5_URL format dist dist flavor flavor read strip N/A N/A not found N/A N/A res lower N/A N/A res N/A N/A N/A Exception N/A N/A trace N/A N/A traceback format_exc N/A N/A N/A md5 N/A res N/A N/A N/A N/A N/A open N/A N/A N/A os path join N/A N/A N/A os path dirname N/A N/A N/A os path dirname N/A N/A N/A os path abspath N/A N/A sys argv N/A 0 N/A N/A MD5_SLUG format flavor flavor dist dist fic N/A N/A res N/A N/A N/A N/A fic read strip N/A N/A N/A IOError N/A N/A res DEFAULT_MD5 N/A trace N/A N/A N/A print trace N/A res N/A system N/A N/A cmd N/A N/A N/A N/A N/A os system cmd N/A restore_acls N/A N/A adir ftar force N/A None False N/A N/A tar N/A N/A N/A os path basename ftar N/A aclflag N/A N/A N/A os path join adir N/A N/A .{0}aclsdone format tar N/A N/A N/A N/A N/A N/A N/A os path exists aclflag N/A N/A N/A os path exists N/A N/A N/A os path join adir acls.txt N/A N/A N/A os path exists adir force N/A N/A N/A print N/A N/A Restoring acls in {0} format adir N/A N/A ret ps N/A popen N/A N/A /usr/bin/setfacl --restore=acls.txt format adir N/A N/A ps returncode N/A N/A N/A config N/A ret N/A 1 N/A N/A N/A N/A N/A print N/A ret N/A 0 N/A N/A print N/A ret N/A 1 N/A N/A print N/A N/A error while restoring acls in {0} format adir N/A N/A N/A sys exit 1 N/A N/A open aclflag w fic N/A N/A N/A N/A fic write N/A download_template N/A N/A url tar md5 offline N/A None False N/A N/A N/A N/A N/A check_md5 tar md5 N/A N/A print N/A N/A Already downloaded: {0} format tar N/A N/A N/A N/A N/A IOError N/A exc N/A N/A offline N/A N/A exc N/A N/A N/A OSError N/A exc N/A N/A N/A N/A N/A ValueError N/A exc N/A N/A offline N/A N/A exc N/A N/A dtar N/A N/A {0}.{1}.sav format tar N/A N/A time time N/A N/A print N/A N/A MD5 FAILED: Moving {0} -> {1} format tar dtar N/A N/A N/A os rename tar dtar N/A N/A print N/A N/A Downloading {0} format url N/A N/A print N/A N/A  in {0} format tar N/A N/A open tar wb fp N/A N/A req N/A N/A urllib2 urlopen url N/A CHUNK N/A 16 1024 N/A True N/A N/A chunk N/A N/A req read CHUNK N/A N/A chunk N/A N/A N/A N/A N/A fp write chunk N/A N/A check_md5 tar md5 N/A N/A print N/A N/A Downloaded: {0} format tar N/A get_dist N/A N/A default_dist N/A DEFAULT_DIST N/A N/A cmd lsb_release -c -s N/A N/A ret ps N/A popen cmd N/A N/A ret N/A 0 N/A N/A N/A N/A N/A N/A N/A N/A ret N/A 0 lower strip N/A precise trusty utopic vivid N/A N/A N/A N/A N/A N/A N/A ret N/A 0 lower strip N/A default_dist N/A setup_prereqs N/A N/A offline N/A False N/A N/A apt False N/A cmd lsb_release -i -s N/A N/A ret ps N/A popen cmd N/A N/A ret N/A 0 N/A N/A N/A N/A N/A N/A N/A N/A ret N/A 0 lower strip N/A ubuntu debian N/A N/A apt True N/A N/A apt N/A offline N/A N/A cmd apt-get update N/A N/A ret ps N/A popen cmd N/A N/A ps returncode N/A N/A N/A print N/A ret N/A 0 N/A N/A print N/A ret N/A 1 N/A N/A ValueError Cant update apt N/A cmd apt-get install -y --force-yes xz-utils python rsync acl N/A N/A ret ps N/A popen cmd N/A N/A ps returncode N/A N/A N/A print N/A ret N/A 0 N/A N/A print N/A ret N/A 1 N/A N/A ValueError Cant install prereqs N/A unpack_template N/A N/A adir ftar md5 force N/A None False N/A N/A adir N/A N/A N/A os path normpath N/A N/A N/A os path abspath adir N/A adirtmp N/A N/A N/A os path join N/A N/A os getcwd makina-states.tmp N/A tar N/A N/A N/A os path basename ftar N/A N/A N/A N/A N/A os path exists /etc/makina-states N/A N/A N/A N/A os makedirs /etc/makina-states N/A unflag N/A N/A N/A os path join N/A N/A /etc/makina-states/prebuilt.{0} format tar N/A N/A force N/A N/A N/A N/A N/A os path exists unflag N/A N/A N/A N/A os path exists /srv/salt/makina-states/ N/A N/A N/A N/A os path exists /srv/mastersalt/makina-states/ N/A N/A N/A N/A N/A os path exists adirtmp N/A N/A N/A N/A shutil rmtree adirtmp N/A N/A N/A N/A N/A os path exists adirtmp N/A N/A N/A N/A os makedirs adirtmp N/A N/A print N/A N/A Unpacking {0} in {1} format ftar adirtmp N/A N/A ret ps N/A popen N/A N/A tar xJf "{tar}" -C "{adirtmp}" format tar ftar adirtmp adirtmp N/A N/A ps returncode N/A N/A N/A print N/A ret N/A 0 N/A N/A print N/A ret N/A 1 N/A N/A print error while untaring N/A N/A N/A sys exit 1 N/A N/A print N/A N/A Syncing {0} <- {1} format adir adirtmp N/A N/A ret ps N/A popen N/A N/A rsync -aA  "{adirtmp}/" "{adir}/" format adir adir adirtmp adirtmp N/A N/A ps returncode N/A N/A N/A print N/A ret N/A 0 N/A N/A print N/A ret N/A 1 N/A N/A print error while syncing N/A N/A N/A sys exit 1 N/A N/A open unflag w f N/A N/A N/A N/A f write N/A N/A N/A N/A os path exists adirtmp N/A N/A N/A N/A shutil rmtree adirtmp N/A install_salt N/A N/A fqdn mastersalt local_salt_mode local_mastersalt_mode offline update branch N/A None masterless masterless None None DEFAULT_BRANCH N/A N/A N/A update None N/A N/A update False N/A N/A mastersalt N/A N/A mastersalt fqdn N/A cmd test -e /srv/mastersalt/makina-states/_scripts/boot-salt.sh N/A N/A ret ps N/A popen cmd N/A N/A ps returncode N/A N/A N/A cmd N/A N/A /srv/mastersalt/makina-states/_scripts/boot-salt.sh -C --local-salt-mode {1} --local-mastersalt-mode {2} -b {4} -m {0} --mastersalt {3} --salt-master-dns {0} format fqdn local_salt_mode local_mastersalt_mode mastersalt branch N/A update N/A N/A cmd2 N/A cmd  --refresh-modules N/A N/A offline N/A N/A N/A ret ps N/A popen cmd2 stream True N/A N/A ps returncode N/A N/A N/A ValueError Cant update salt N/A N/A ret ps N/A popen cmd stream True N/A N/A ps returncode N/A N/A N/A ValueError Cant reset salt N/A fix_hosts N/A N/A fqdn N/A N/A N/A host N/A N/A N/A fqdn split . N/A 0 N/A cmd N/A N/A echo '{0}'>/etc/hostname format host N/A N/A ret ps N/A popen cmd N/A N/A ps returncode N/A N/A N/A ValueError Cant set host N/A cmd N/A N/A hostname {0} format host N/A N/A ret ps N/A popen cmd N/A N/A ps returncode N/A N/A N/A ValueError Cant affect host N/A container_hosts N/A N/A N/A popen cat /etc/hosts N/A 0 N/A 0 N/A to_add N/A N/A ip N/A 127.0.0.1 127.0.0.1 N/A N/A h N/A N/A join N/A fqdn host N/A N/A N/A N/A re search N/A N/A {0}( |	).*{1}(	| |$) format ip h container_hosts flags N/A re M N/A N/A N/A N/A to_add append N/A N/A {0} {1} format ip h N/A to_add N/A N/A container_hosts N/A N/A N/A N/A N/A join to_add container_hosts N/A N/A join to_add N/A cmd N/A N/A echo "{0}"|tee /etc/hosts format container_hosts N/A N/A ret ps N/A popen cmd N/A N/A ps returncode N/A N/A N/A ValueError Cant set hosts N/A get_fqdn N/A N/A fqdn N/A None N/A N/A N/A fqdn None N/A N/A fqdn N/A N/A socket getfqdn N/A fqdn N/A main N/A N/A N/A N/A N/A default_dist N/A get_dist DEFAULT_DIST N/A parser N/A N/A argparse ArgumentParser usage N/A N/A DESCRIPTION format ver DEFAULT_VER name ./install_prebuild_makina_states.py md5 DEFAULT_MD5 flavor DEFAULT_FLAVOR releases RELEASES_URL dist default_dist N/A N/A N/A parser add_argument --fqdn default None help fqdn of this host N/A N/A N/A parser add_argument --dist default default_dist help N/A N/A dist ({0}) format default_dist N/A N/A N/A parser add_argument --flavor dest flavor default DEFAULT_FLAVOR help N/A N/A flavor ({0}) format DEFAULT_FLAVOR N/A N/A N/A parser add_argument --ver default None help N/A N/A version ({0} format DEFAULT_VER N/A N/A N/A parser add_argument -m --mirror dest mirror default RELEASES_URL help N/A N/A mirror url ({0}) format RELEASES_URL N/A N/A N/A parser add_argument -a --dest default / dest adir help destination dir (/) N/A N/A N/A parser add_argument -o --offline default False action store_true help Run offline and assume tar is already there N/A N/A N/A parser add_argument -u --update default False action store_true help Run a git pull in salt dirs prior to install N/A N/A N/A parser add_argument -f --force default False action store_true help Force unpack again N/A N/A N/A parser add_argument --branch help N/A N/A default branch ({0}) format DEFAULT_BRANCH default DEFAULT_BRANCH N/A N/A N/A parser add_argument -s --md5 help N/A N/A MD5 of the tarball of version to use  (latest version will be fetched from internet if not offline. set to 'no' for no md5sum check format DEFAULT_MD5 default None N/A N/A N/A parser add_argument --skip-hosts default False action store_true help skip hosts N/A N/A N/A parser add_argument --skip-download default False action store_true help skip download N/A N/A N/A parser add_argument --skip-acls default False action store_true help skip acls N/A N/A N/A parser add_argument --skip-unpack default False action store_true help skip unpack N/A N/A N/A parser add_argument --skip-prereqs default False action store_true help skip prereqs N/A N/A N/A parser add_argument --skip-salt default False action store_true help skip salt N/A args N/A N/A parser parse_args N/A N/A sys argv N/A 1 N/A opts N/A vars args N/A N/A opts N/A fqdn N/A get_fqdn N/A opts N/A fqdn N/A N/A opts N/A ver N/A get_ver ver N/A opts N/A ver dist N/A opts N/A dist flavor N/A opts N/A flavor offline N/A opts N/A offline N/A N/A N/A opts N/A md5 N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A opts N/A md5 lower strip replace " replace ' no N/A N/A N/A opts N/A md5 None N/A N/A N/A opts N/A md5 N/A get_md5 md5 N/A opts N/A md5 ver N/A opts N/A ver flavor N/A opts N/A flavor dist N/A opts N/A dist offline N/A opts N/A offline N/A tar N/A N/A makina-states-{dist}-{flavor}-{ver}.tar.xz format opts N/A url N/A N/A N/A os path join N/A opts N/A mirror tar N/A adir N/A N/A N/A os path abspath N/A opts N/A adir N/A ftar N/A N/A N/A os path abspath N/A N/A N/A os path join N/A N/A os getcwd tar N/A N/A N/A N/A os getuid N/A 0 N/A N/A N/A ValueError Must be run either as root or via sudo N/A N/A N/A N/A N/A N/A N/A os path exists /srv/salt/makina-states N/A N/A N/A os path exists /srv/mastersalt/makina-states N/A N/A N/A N/A os path exists /usr/bin/salt N/A N/A N/A os path exists /usr/bin/salt-call N/A N/A N/A os path exists /etc/makina-states N/A N/A opts N/A force N/A N/A N/A ValueError Makina-States is already installed N/A N/A N/A opts N/A skip_hosts N/A N/A N/A fix_hosts N/A opts N/A fqdn N/A N/A N/A opts N/A skip_prereqs N/A N/A N/A setup_prereqs offline N/A opts N/A offline N/A N/A N/A opts N/A skip_download N/A N/A N/A download_template url ftar md5 N/A opts N/A md5 offline N/A opts N/A offline N/A N/A N/A opts N/A skip_unpack N/A N/A N/A unpack_template adir ftar md5 N/A opts N/A md5 force N/A opts N/A force N/A N/A N/A opts N/A skip_acls N/A N/A N/A restore_acls adir ftar N/A N/A N/A opts N/A skip_salt N/A N/A N/A install_salt N/A opts N/A fqdn update N/A opts N/A update branch N/A opts N/A branch offline N/A opts N/A offline N/A N/A N/A __name__ __main__ N/A N/A N/A main