Module Expr Str Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias Assign NameStore TupleLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Str Pass decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Call NameLoad keyword AttributeLoad NameLoad attr keyword Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr With Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr If Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad body Expr Call AttributeLoad NameLoad attr Str If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Return NameLoad Expr Call AttributeLoad NameLoad attr If BoolOpAnd AttributeLoad AttributeLoad NameLoad attr attr UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad If NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Return NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad BinOpAdd Call NameLoad BinOpAdd NameLoad Str Call NameLoad BinOpAdd NameLoad Str If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad If Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad orelse If Call AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad ListLoad Str NameLoad orelse Assign NameStore Call NameLoad ListLoad Str NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad AttributeLoad NameLoad attr Return NameLoad Return NameLoad decorator_list Call NameLoad Str Call NameLoad Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr attr Str Str If UnaryOpNot NameLoad body Return NameLoad Assign NameStore Call AttributeLoad Str attr Call AttributeLoad NameLoad attr Str Return Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str AttributeLoad AttributeLoad NameLoad attr attr TryExcept body If Call NameLoad GeneratorExp CompareIn NameLoad AttributeLoad AttributeLoad NameLoad attr attr comprehension NameStore ListLoad Str Str body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Return NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Num keyword Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad decorator_list
N/A N/A 
aminator.plugins.provisioner.base
==================================
Simple base class for cases where there are small distro-specific corner cases
 N/A abc N/A logging N/A os N/A shutil glob glob aminator.config conf_action aminator.plugins.base BasePlugin aminator.util download_file aminator.util.linux Chroot monitor_command aminator.util.metrics fails lapse N/A __all__ N/A BaseProvisionerPlugin N/A log N/A N/A logging getLogger __name__ BaseProvisionerPlugin N/A BasePlugin N/A N/A 
    Most of what goes on between apt and yum provisioning is the same, so we factored that out,
    leaving the differences in the actual implementations
     N/A __metaclass__ N/A abc ABCMeta N/A _entry_point aminator.plugins.provisioner _provision_package N/A N/A self N/A N/A N/A  subclasses must implement package provisioning logic  N/A N/A abc abstractmethod _store_package_metadata N/A N/A self N/A N/A N/A  stuff name, version, release into context  N/A N/A abc abstractmethod _pre_chroot_block N/A N/A self N/A N/A N/A  run commands before entering chroot N/A N/A _post_chroot_block N/A N/A self N/A N/A N/A  commands to run after the exiting the chroot N/A N/A add_plugin_args N/A N/A self N/A args kwargs N/A N/A context N/A N/A self _config context N/A prov N/A N/A N/A self _parser add_argument_group title Provisioning N/A N/A N/A prov add_argument -i --interactive dest interactive help interactive session after provivioning action N/A conf_action config N/A context package action store_true N/A provision N/A N/A self N/A N/A N/A context N/A N/A self _config context N/A N/A N/A self _local_install N/A N/A N/A N/A log info N/A N/A performing a local install of {0} format N/A N/A context package arg N/A N/A N/A context package local_install True N/A N/A N/A N/A self _stage_pkg N/A N/A N/A N/A log critical N/A N/A failed to stage {0} format N/A N/A context package arg N/A False N/A N/A N/A N/A log info N/A N/A performing a repo install of {0} format N/A N/A context package arg N/A N/A N/A context package local_install False N/A N/A N/A log debug Pre chroot command block N/A N/A N/A self _pre_chroot_block N/A N/A N/A log debug N/A N/A Entering chroot at {0} format N/A N/A self _distro _mountpoint N/A N/A Chroot N/A N/A self _distro _mountpoint N/A N/A N/A N/A log debug Inside chroot N/A result N/A N/A self _provision_package N/A N/A N/A N/A context package get interactive False N/A N/A N/A N/A os system bash N/A N/A N/A result success N/A N/A N/A N/A log critical N/A N/A Installation of {0} failed: {1.std_err} format N/A N/A context package arg N/A result result N/A False N/A N/A N/A self _store_package_metadata N/A N/A N/A N/A context package local_install N/A N/A N/A N/A context package get preserve False N/A N/A N/A N/A os remove N/A N/A context package arg N/A scripts_dir N/A N/A N/A N/A N/A self _config plugins N/A N/A self full_name get scripts_dir /var/local N/A N/A N/A log debug N/A N/A scripts_dir = {0} format scripts_dir N/A scripts_dir N/A N/A N/A N/A N/A self _run_provision_scripts scripts_dir N/A N/A False N/A N/A N/A log debug Exited chroot N/A N/A N/A log debug Post chroot command block N/A N/A N/A self _post_chroot_block N/A N/A N/A log info Provisioning succeeded! N/A True N/A _run_provision_scripts N/A N/A self scripts_dir N/A N/A N/A 
        execute every python or shell script found in scripts_dir
            1. run python or shell scripts in lexical order

        :param scripts_dir: path in chroot to look for python and shell scripts
        :return: None
         N/A script_files N/A sorted N/A N/A glob N/A scripts_dir /*.py N/A glob N/A scripts_dir /*.sh N/A N/A script_files N/A N/A N/A N/A log debug N/A N/A no python or shell scripts found in {0} format scripts_dir N/A N/A N/A N/A log debug N/A N/A found scripts {0} in {1} format script_files scripts_dir N/A script script_files N/A N/A N/A N/A log debug N/A N/A executing script {0} format script N/A N/A N/A os access script N/A os X_OK N/A N/A result N/A run_script script N/A N/A N/A N/A script endswith .py N/A N/A result N/A run_script N/A python script N/A N/A result N/A run_script N/A sh script N/A N/A N/A result success N/A N/A N/A N/A log critical N/A N/A script failed: {0}: {1.std_err} format script N/A result result N/A False N/A True N/A N/A fails aminator.provisioner.provision_scripts.error N/A lapse aminator.provisioner.provision_scripts.duration _local_install N/A N/A self N/A N/A N/A True if context.package.arg ends with a package extension
         N/A config N/A self _config N/A ext N/A N/A N/A N/A config plugins N/A N/A self full_name get pkg_extension N/A N/A ext N/A N/A False N/A ext N/A N/A .{0} format N/A N/A ext lstrip . N/A N/A N/A N/A N/A N/A config context package arg endswith ext N/A _stage_pkg N/A N/A self N/A N/A N/A copy package file into AMI volume.
         N/A context N/A N/A self _config context N/A N/A N/A context package file N/A N/A N/A os path basename N/A N/A context package arg N/A N/A N/A context package full_path N/A N/A N/A os path join N/A N/A self _distro _mountpoint N/A N/A N/A N/A context package dir lstrip / N/A N/A context package file N/A N/A N/A N/A any N/A N/A protocol N/A N/A context package arg N/A protocol N/A http:// https:// N/A N/A N/A N/A self _download_pkg context N/A N/A N/A N/A self _move_pkg context N/A N/A N/A Exception N/A N/A errstr Exception encountered while staging package N/A N/A N/A log critical errstr N/A N/A N/A log debug errstr exc_info True N/A False N/A N/A N/A context package arg N/A N/A N/A os path join N/A N/A context package dir N/A N/A context package file N/A True N/A _download_pkg N/A N/A self context N/A N/A N/A dowload url to context.package.dir
         N/A pkg_url N/A N/A context package arg N/A dst_file_path N/A N/A context package full_path N/A N/A N/A log debug N/A N/A downloading {0} to {1} format pkg_url dst_file_path N/A N/A download_file pkg_url dst_file_path N/A N/A N/A context package get timeout 1 verify_https N/A N/A context get verify_https False N/A _move_pkg N/A N/A self context N/A N/A N/A src_file N/A N/A N/A N/A context package arg replace file:// N/A dst_file_path N/A N/A context package full_path N/A N/A N/A shutil move src_file dst_file_path N/A __call__ N/A N/A self distro N/A N/A N/A N/A self _distro distro N/A self N/A N/A run_script N/A N/A script N/A N/A N/A N/A monitor_command script N/A