Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias alias alias alias alias ImportFrom alias ImportFrom alias alias identifier ImportFrom alias alias alias alias alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr Str ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str decorator_list Assign NameStore Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index Num If CompareEq SubscriptLoad NameLoad Index Num Str body Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Dict Return Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Slice Num If CompareEq Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Index Num Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Str If CompareGtE Call NameLoad NameLoad Num body If CompareEq SubscriptLoad NameLoad Index Num Str body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore AttributeLoad NameLoad attr body If CompareEq SubscriptLoad NameLoad Index Str Str body Return Call NameLoad SubscriptLoad NameLoad Index Str Return Call NameLoad Dict decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict For NameStore Call AttributeLoad NameLoad attr Str body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index NameLoad NameLoad Return Call NameLoad NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Return AttributeLoad NameLoad attr Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body If CompareIs NameLoad NameLoad body ImportFrom alias Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Call NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad Str attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad With Call AttributeLoad NameLoad attr Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str AttributeLoad NameLoad attr Assign SubscriptStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Assign SubscriptStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr Str NameStore body Expr Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore ListLoad AttributeLoad NameLoad attr Str Str AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr BinOpAdd NameLoad Str decorator_list Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call NameLoad ListLoad Call NameLoad Dict NameLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad Call AttributeLoad Str attr GeneratorExp AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad GeneratorExp TupleLoad Call AttributeLoad NameLoad attr NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad ListLoad Str NameLoad Str Assign NameStore ListLoad ListLoad Str NameLoad AttributeLoad NameLoad attr Str NameLoad ListLoad Str NameLoad NameLoad Str NameLoad ListLoad Str NameLoad NameLoad Str NameLoad ListLoad Str NameLoad NameLoad Str NameLoad FunctionDef arguments args NameParam defaults body Assign SubscriptStore NameLoad Index Str Call NameLoad keyword NameLoad keyword SubscriptLoad NameLoad Index Str keyword Str If SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str Call NameLoad Call AttributeLoad NameLoad attr orelse Assign SubscriptStore NameLoad Index Str Call NameLoad If CompareIs SubscriptLoad NameLoad Index Str NameLoad body Raise Call NameLoad Str decorator_list decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Yield Call NameLoad keyword 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 Yield Call NameLoad keyword Call NameLoad keyword NameLoad Expr Yield Call NameLoad keyword Call NameLoad keyword BinOpAdd Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword Str Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr NameLoad Raise Call NameLoad Num Return Call NameLoad keyword Call AttributeLoad Call NameLoad keyword NameLoad attr keyword Call NameLoad keyword NameLoad decorator_list
N/A N/A 
Helper utilities for CloudFormation Installer's Packer images.
 N/A json N/A sys tempfile mkdtemp effect Effect ComposedDispatcher TypeDispatcher sync_performer base_dispatcher effect.do do txeffect deferred_performer perform async_perform pyrsistent PClass field freeze thaw pvector_field pmap_field twisted.python.constants ValueConstant Values twisted.python.filepath FilePath twisted.python.usage Options UsageError flocker.common.runner run N/A PACKER_PATH N/A FilePath /opt/packer/packer N/A PACKER_TEMPLATE_DIR N/A N/A N/A FilePath __file__ sibling packer RegionConstant N/A ValueConstant N/A N/A 
    The name of a cloud region.
     N/A AWS_REGIONS N/A Values N/A N/A 
    Constants representing supported target packaging formats.
     N/A AP_NORTHEAST_1 N/A RegionConstant ap-northeast-1 N/A AP_SOUTHEAST_1 N/A RegionConstant ap-southeast-1 N/A AP_SOUTHEAST_2 N/A RegionConstant ap-southeast-2 N/A EU_CENTRAL_1 N/A RegionConstant eu-central-1 N/A EU_WEST_1 N/A RegionConstant eu-west-1 N/A SA_EAST_1 N/A RegionConstant sa-east-1 N/A US_EAST_1 N/A RegionConstant us-east-1 N/A US_WEST_1 N/A RegionConstant us-west-1 N/A US_WEST_2 N/A RegionConstant us-west-2 N/A N/A DEFAULT_IMAGE_BUCKET clusterhq-installer-images N/A DEFAULT_BUILD_REGION N/A AWS_REGIONS US_WEST_1 N/A DEFAULT_DISTRIBUTION ubuntu-14.04 N/A DEFAULT_TEMPLATE docker _PackerOutputParser N/A object N/A N/A 
    Parse the output of ``packer -machine-readable``.
     __init__ N/A N/A self N/A N/A N/A N/A self artifacts N/A N/A N/A self _current_artifact N/A N/A _parse_line_ARTIFACT N/A N/A self parts N/A N/A N/A 
        Parse line parts containing information about an artifact.

        :param list parts: The parts of resulting from splitting a comma
            separated packer output line.
         N/A artifact_type N/A parts N/A 1 N/A N/A N/A parts N/A 4 end N/A N/A N/A N/A self _current_artifact N/A type artifact_type N/A N/A N/A N/A self artifacts append N/A freeze N/A self _current_artifact N/A N/A self _current_artifact N/A N/A N/A key N/A parts N/A 4 N/A value N/A parts N/A 5 N/A N/A N/A len value 1 N/A N/A value N/A value N/A 0 N/A N/A N/A self _current_artifact N/A key value N/A parse_line N/A N/A self line N/A N/A N/A 
        Parse a line of ``packer`` machine readable output.

        :param unicode line: A line to be parsed.
         N/A parts N/A N/A N/A N/A line rstrip split , N/A N/A N/A len parts 3 N/A N/A N/A N/A parts N/A 2 artifact N/A N/A N/A N/A self _parse_line_ARTIFACT parts N/A packer_amis N/A N/A self N/A N/A N/A 
        :return: A ``dict`` of ``{aws_region: ami_id}`` found in the
            ``artifacts``.
         N/A artifact N/A self artifacts N/A N/A N/A N/A artifact N/A type amazon-ebs N/A N/A N/A _unserialize_packer_dict N/A artifact N/A id N/A N/A freeze N/A N/A N/A _unserialize_packer_dict N/A N/A serialized_packer_dict N/A N/A N/A 
    Parse a packer serialized dictionary.

    :param unicode serialized_packer_dict: The serialized form.
    :return: A ``dict`` of the keys and values found.
     N/A packer_dict N/A N/A item N/A N/A serialized_packer_dict split %!(PACKER_COMMA) N/A N/A N/A key value N/A N/A item split : N/A N/A packer_dict N/A key value N/A N/A freeze packer_dict N/A _ConfigurationEncoder N/A N/A json JSONEncoder N/A N/A 
    JSON encoder that can encode ValueConstant etc.
     default N/A N/A self obj N/A N/A N/A N/A isinstance obj ValueConstant N/A N/A N/A obj value N/A N/A N/A N/A json JSONEncoder default self obj N/A N/A _json_dump N/A N/A obj fp N/A N/A N/A N/A N/A json dump obj fp cls _ConfigurationEncoder N/A PackerConfigure N/A PClass N/A N/A 
    The attributes necessary to create a custom packer configuration file from
    the prototype files in ``admin/installer/packer``.

    :ivar build_region: The AWS region to build images in.
    :ivar publish_regions: The AWS regions to publish the build images to.
    :ivar template: The prototype configuration to use as a base. One of
        `docker` or `flocker`.
    :ivar distribution: The operating system distribution to install.
        ubuntu-14.04 is the only one implemented so far.
    :ivar configuration_directory: The directory containing prototype
        configuration templates.
    :ivar source_ami_map: The AMI map containing base images.
     N/A build_region N/A field type RegionConstant mandatory True N/A publish_regions N/A pvector_field item_type RegionConstant N/A template N/A field type unicode mandatory True N/A distribution N/A field type unicode mandatory True N/A configuration_directory N/A field type FilePath initial PACKER_TEMPLATE_DIR N/A source_ami_map N/A pmap_field key_type RegionConstant value_type unicode N/A PackerBuild N/A PClass N/A N/A 
    The attributes necessary to run ``packer build``.

    :ivar configuration_path: The path to a packer build configuration file.
    :ivar sys_module: A ``sys`` like object with ``stdout`` and ``stderr``
        attributes. The ``stderr`` of ``packer build`` will be written to
        ``sys_module.stderr``.
     N/A configuration_path N/A field type FilePath N/A sys_module N/A field initial sys N/A StandardOut N/A PClass N/A N/A 
    The attributes necessary to write bytes to stdout.

    :ivar content: The bytes to write.
     N/A content N/A field type bytes mandatory True N/A RealPerformers N/A object N/A __init__ N/A N/A self reactor working_directory sys_module N/A None None None N/A N/A N/A reactor None N/A twisted.internet reactor N/A N/A self reactor reactor N/A N/A sys_module None N/A N/A sys_module sys N/A N/A self sys_module sys_module N/A N/A working_directory None N/A N/A working_directory N/A FilePath N/A mkdtemp N/A N/A self working_directory working_directory N/A perform_packer_configure N/A N/A self dispatcher intent N/A N/A N/A 
        Copy the prototype configuration files and provisioning scripts to a
        temporary location and modify one of the configurations with the values
        found in ``intent``.
         N/A temporary_configuration_directory N/A N/A N/A self working_directory child packer_configuration N/A N/A N/A temporary_configuration_directory makedirs N/A N/A N/A N/A intent configuration_directory copyTo temporary_configuration_directory N/A template_name N/A N/A template_{distribution}_{template}.json format distribution N/A intent distribution template N/A intent template N/A template_path N/A N/A temporary_configuration_directory child template_name N/A N/A N/A template_path open r infile N/A N/A configuration N/A N/A json load infile N/A N/A N/A N/A configuration N/A builders N/A 0 N/A region N/A intent build_region N/A N/A N/A N/A configuration N/A builders N/A 0 N/A source_ami N/A N/A intent source_ami_map N/A N/A intent build_region N/A N/A N/A N/A configuration N/A builders N/A 0 N/A ami_regions N/A thaw N/A intent publish_regions N/A output_template_path N/A N/A template_path temporarySibling N/A N/A N/A output_template_path open w outfile N/A N/A N/A _json_dump configuration outfile N/A N/A output_template_path alwaysCreate False N/A output_template_path N/A sync_performer perform_packer_build N/A N/A self dispatcher intent N/A N/A N/A 
        Run ``packer build`` using the configuration in the supplied ``intent``
        and parse its output.

        :returns: A ``Deferred`` which fires with a dict mapping the ID of the
            AMI published to each AWS region.
         N/A command N/A N/A PACKER_PATH path build -machine-readable N/A N/A intent configuration_path path N/A parser N/A _PackerOutputParser handle_stdout N/A N/A line N/A N/A N/A N/A N/A parser parse_line line N/A N/A N/A N/A N/A self sys_module stderr write N/A line N/A N/A d N/A run N/A self reactor command handle_stdout handle_stdout N/A N/A N/A d addCallback N/A N/A N/A ignored N/A N/A N/A parser packer_amis N/A d N/A deferred_performer perform_standard_out N/A N/A self dispatcher intent N/A N/A N/A 
        Print the content in ``intent`` to stdout.
         N/A N/A N/A N/A N/A self sys_module stdout write N/A intent content N/A sync_performer dispatcher N/A N/A self N/A N/A N/A N/A ComposedDispatcher N/A N/A TypeDispatcher N/A PackerConfigure PackerBuild StandardOut N/A self perform_packer_configure N/A self perform_packer_build N/A self perform_standard_out base_dispatcher N/A N/A _validate_constant N/A N/A constants option_value option_name N/A N/A N/A N/A N/A constant_value N/A N/A constants lookupByValue option_value N/A N/A N/A ValueError N/A N/A N/A UsageError N/A N/A The option '--{}' got unsupported value: '{}'. Must be one of: {}. format option_name option_value N/A N/A ,  join N/A N/A c value N/A c N/A N/A constants iterconstants N/A constant_value N/A _validate_ami_region_map N/A N/A blob N/A N/A N/A 
    Validate and decode the supplied JSON encoded mapping.

    :param bytes blob: The JSON encoded blob.
    :returns: A ``dict`` of (``RegionConstant``, ``u"ami-id"``).
     N/A N/A dict N/A N/A N/A N/A AWS_REGIONS lookupByValue k v N/A N/A k v N/A N/A N/A N/A json loads blob items N/A PublishInstallerImagesOptions N/A Options N/A N/A 
    Options for uploading Packer-generated image IDs.
     N/A optFlags N/A N/A copy_to_all_regions None Copy images to all regions. [default: False] N/A optParameters N/A N/A build_region None N/A DEFAULT_BUILD_REGION value A region where the image will be built.
 unicode N/A distribution None DEFAULT_DISTRIBUTION The distribution of operating system to install.
 unicode N/A source-ami-map None None A JSON encoded map of AWS region to AMI ID of base images.
 _validate_ami_region_map N/A template None DEFAULT_TEMPLATE The template to build.
 unicode postOptions N/A N/A self N/A N/A N/A N/A self N/A build_region N/A _validate_constant constants AWS_REGIONS option_value N/A self N/A build_region option_name build_region N/A N/A self N/A copy_to_all_regions N/A N/A N/A self N/A regions N/A tuple N/A N/A AWS_REGIONS iterconstants N/A N/A N/A self N/A regions N/A tuple N/A N/A N/A self N/A source-ami-map None N/A N/A N/A UsageError --source-ami-map is required. N/A N/A publish_installer_images_effects N/A N/A options N/A N/A N/A configuration_path N/A N/A Effect intent N/A PackerConfigure build_region N/A options N/A build_region publish_regions N/A options N/A regions template N/A options N/A template distribution N/A options N/A distribution source_ami_map N/A options N/A source-ami-map N/A ami_map N/A N/A Effect intent N/A PackerBuild configuration_path configuration_path N/A N/A N/A Effect intent N/A StandardOut content N/A N/A N/A json dumps N/A thaw ami_map encoding utf-8 N/A do publish_installer_images_main N/A N/A reactor args base_path top_level N/A N/A N/A options N/A PublishInstallerImagesOptions N/A N/A N/A N/A N/A options parseOptions args N/A N/A N/A UsageError N/A e N/A N/A N/A N/A N/A sys stderr write N/A Usage Error: %s: %s
 N/A N/A N/A base_path basename e N/A N/A SystemExit 1 N/A N/A async_perform dispatcher N/A N/A N/A RealPerformers reactor reactor dispatcher effect N/A publish_installer_images_effects options options N/A