Module Expr Str ImportFrom alias Import alias Assign NameStore NameLoad Assign NameStore NameLoad TryExcept body Import alias ImportFrom alias TryExcept body Import alias identifier Assign NameStore NameLoad handlers ExceptHandler type NameLoad body TryExcept body Import alias handlers ExceptHandler type NameLoad body Pass Assign NameStore NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareNotEq NameLoad Str body Return For NameStore NameLoad body If CompareNotEq SubscriptLoad NameLoad Index Num Str body Return Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num decorator_list decorator_list handlers ExceptHandler type NameLoad body Pass Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args defaults body Expr Str If BoolOpOr UnaryOpNot NameLoad UnaryOpNot NameLoad body Return NameLoad If CompareIs Call NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults Str body Expr Str Assign NameStore IfExp CompareIn Str NameLoad SubscriptLoad NameLoad Index Str NameLoad If NameLoad body TryExcept body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Num If BoolOpOr UnaryOpNot NameLoad UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return NameLoad Assign NameStore Dict Str Str Str Str Str Str Call AttributeLoad Str attr NameLoad NameLoad NameLoad Call AttributeLoad Str attr NameLoad NameLoad NameLoad Call AttributeLoad Str attr NameLoad NameLoad NameLoad Call AttributeLoad Str attr NameLoad NameLoad NameLoad NameLoad NameLoad If BoolOpOr UnaryOpNot NameLoad CompareEq NameLoad NameLoad body Return NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If CompareNotEq AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr orelse Return Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad For NameStore NameLoad body If Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body For NameStore NameLoad body If BoolOpAnd CompareIn NameLoad NameLoad Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore NameLoad body If Call AttributeLoad NameLoad attr Str body Return SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad For NameStore NameLoad body If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Num Index Num attr Str For NameStore NameLoad body If Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad For NameStore NameLoad body If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Num Index Num attr Str For NameStore NameLoad body If Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num attr Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad If UnaryOpNot NameLoad body Return NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Dict Str Str Assign NameStore TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Return Dict NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Return Dict NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad If NameLoad body Return Dict NameLoad Call AttributeLoad Str attr NameLoad orelse Return Dict NameLoad Call AttributeLoad Str attr NameLoad orelse Return Dict NameLoad Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad If UnaryOpNot NameLoad body Return NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Dict Str Str Assign NameStore TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Return Dict NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr If NameLoad body Return Dict NameLoad NameLoad orelse Return Dict NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad If UnaryOpNot NameLoad body Return NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Dict Str Str Assign NameStore TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Return Dict NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr If NameLoad body Return Dict NameLoad NameLoad orelse Return Dict NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad If UnaryOpNot NameLoad body Return NameLoad Assign NameStore Call NameLoad NameLoad If CompareIn NameLoad SubscriptLoad NameLoad Index NameLoad body Return Dict NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call NameLoad NameLoad If CompareNotIn NameLoad SubscriptLoad NameLoad Index NameLoad body Return Dict NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Dict Str Str Str Str Str Str NameLoad NameLoad Str Str Str Str Assign NameStore TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Return Dict NameLoad NameLoad Assign NameStore Call NameLoad NameLoad If CompareIn NameLoad SubscriptLoad NameLoad Index NameLoad body Return Dict NameLoad Call AttributeLoad Str attr NameLoad orelse Return Dict NameLoad Call AttributeLoad Str attr NameLoad decorator_list
N/A N/A 
Novell ASAM Runner
==================

.. versionadded:: Beryllium

Runner to interact with Novell ASAM Fan-Out Driver

:codeauthor: Nitin Madhok <nmadhok@clemson.edu>

To use this runner, set up the Novell Fan-Out Driver URL, username and password in the
master configuration at ``/etc/salt/master`` or ``/etc/salt/master.d/asam.conf``:

.. code-block:: yaml

    asam:
      prov1.domain.com
        username: "testuser"
        password: "verybadpass"
      prov2.domain.com
        username: "testuser"
        password: "verybadpass"

.. note::

    Optionally, ``protocol`` and ``port`` can be specified if the Fan-Out Driver server
    is not using the defaults. Default is ``protocol: https`` and ``port: 3451``.

 __future__ absolute_import N/A logging N/A HAS_LIBS False N/A HAS_SIX False N/A N/A N/A requests salt.ext.six.moves.html_parser HTMLParser N/A N/A N/A salt.ext.six six N/A HAS_SIX True N/A N/A N/A ImportError N/A N/A N/A N/A six N/A N/A N/A ImportError N/A N/A N/A HAS_LIBS True ASAMHTMLParser N/A HTMLParser N/A __init__ N/A N/A self N/A N/A N/A N/A N/A HTMLParser __init__ self N/A N/A self data N/A N/A handle_starttag N/A N/A self tag attrs N/A N/A N/A N/A tag a N/A N/A N/A attr attrs N/A N/A N/A N/A attr N/A 0 href N/A N/A N/A N/A N/A N/A self data append N/A attr N/A 1 N/A N/A N/A N/A N/A ImportError N/A N/A N/A log N/A N/A logging getLogger __name__ __virtual__ N/A N/A N/A N/A N/A 
    Check for ASAM Fan-Out driver configuration in master config file
    or directory and load runner only if it is specified
     N/A N/A N/A HAS_LIBS N/A HAS_SIX N/A N/A False N/A N/A N/A _get_asam_configuration False N/A N/A False N/A True N/A _get_asam_configuration N/A N/A driver_url N/A N/A N/A 
    Return the configuration read from the master configuration
    file or directory
     N/A asam_config N/A N/A asam __opts__ N/A __opts__ N/A asam None N/A asam_config N/A N/A N/A N/A N/A asam_server service_config N/A N/A six iteritems asam_config N/A N/A username N/A N/A service_config get username None N/A password N/A N/A service_config get password None N/A protocol N/A N/A service_config get protocol https N/A port N/A N/A service_config get port 3451 N/A N/A N/A username N/A password N/A N/A N/A N/A log error N/A N/A Username or Password has not been specified in the master configuration for {0} format asam_server N/A False N/A ret N/A platform_edit_url platform_config_url platformset_edit_url platformset_config_url username password N/A N/A {0}://{1}:{2}/config/PlatformEdit.html format protocol asam_server port N/A N/A {0}://{1}:{2}/config/PlatformConfig.html format protocol asam_server port N/A N/A {0}://{1}:{2}/config/PlatformSetEdit.html format protocol asam_server port N/A N/A {0}://{1}:{2}/config/PlatformSetConfig.html format protocol asam_server port username password N/A N/A N/A driver_url N/A driver_url asam_server N/A N/A ret N/A N/A N/A Exception N/A exc N/A N/A N/A N/A log error N/A N/A Exception encountered: {0} format exc N/A False N/A driver_url N/A N/A N/A N/A log error N/A N/A Configuration for {0} has not been specified in the master configuration format driver_url N/A False N/A False N/A _make_post_request N/A N/A url data auth verify N/A True N/A N/A r N/A N/A requests post url data data auth auth verify verify N/A N/A N/A r status_code N/A N/A requests codes ok N/A N/A N/A N/A r raise_for_status N/A N/A N/A N/A N/A r text split N/A _parse_html_content N/A N/A html_content N/A N/A N/A parser N/A ASAMHTMLParser N/A line html_content N/A N/A N/A N/A line startswith <META N/A N/A N/A N/A html_content remove line N/A N/A N/A N/A parser feed line N/A parser N/A _get_platformset_name N/A N/A data platform_name N/A N/A N/A item data N/A N/A N/A N/A platform_name item N/A N/A item startswith PlatformEdit.html? N/A N/A parameter_list N/A N/A item split & N/A parameter parameter_list N/A N/A N/A N/A parameter startswith platformSetName N/A N/A N/A N/A N/A parameter split = N/A 1 N/A None N/A _get_platforms N/A N/A data N/A N/A N/A platform_list N/A N/A item data N/A N/A N/A N/A item startswith PlatformEdit.html? N/A N/A parameter_list N/A N/A N/A N/A N/A item split PlatformEdit.html? 1 N/A 1 split & N/A parameter parameter_list N/A N/A N/A N/A parameter startswith platformName N/A N/A N/A N/A platform_list append N/A N/A N/A parameter split = N/A 1 N/A platform_list N/A _get_platform_sets N/A N/A data N/A N/A N/A platform_set_list N/A N/A item data N/A N/A N/A N/A item startswith PlatformSetEdit.html? N/A N/A parameter_list N/A N/A N/A N/A N/A item split PlatformSetEdit.html? 1 N/A 1 split & N/A parameter parameter_list N/A N/A N/A N/A parameter startswith platformSetName N/A N/A N/A N/A platform_set_list append N/A N/A N/A N/A N/A parameter split = N/A 1 replace %20 N/A platform_set_list N/A remove_platform N/A N/A name server_url N/A N/A N/A 
    To remove specified ASAM platform from the Novell Fan-Out Driver

    CLI Example:

    .. code-block:: bash

        salt-run asam.remove_platform my-test-vm prov1.domain.com
     N/A config N/A _get_asam_configuration server_url N/A N/A config N/A N/A False N/A url N/A config N/A platform_config_url N/A data N/A manual false N/A auth N/A N/A config N/A username N/A config N/A password N/A N/A N/A html_content N/A _make_post_request url data auth verify False N/A N/A N/A Exception N/A exc N/A N/A err_msg N/A N/A Failed to look up existing platforms on {0} format server_url N/A N/A N/A log error N/A N/A {0}:
{1} format err_msg exc N/A N/A name err_msg N/A parser N/A _parse_html_content html_content N/A platformset_name N/A _get_platformset_name N/A parser data name N/A platformset_name N/A N/A N/A N/A log debug platformset_name N/A N/A data N/A platformName name N/A N/A data N/A platformSetName N/A str platformset_name N/A N/A data N/A postType platformRemove N/A N/A data N/A Submit Yes N/A N/A N/A html_content N/A _make_post_request url data auth verify False N/A N/A N/A Exception N/A exc N/A N/A err_msg N/A N/A Failed to delete platform from {1} format server_url N/A N/A N/A log error N/A N/A {0}:
{1} format err_msg exc N/A N/A name err_msg N/A parser N/A _parse_html_content html_content N/A platformset_name N/A _get_platformset_name N/A parser data name N/A platformset_name N/A N/A N/A name N/A N/A Failed to delete platform from {0} format server_url N/A N/A N/A name N/A N/A Successfully deleted platform from {0} format server_url N/A N/A N/A name N/A N/A Specified platform name does not exist on {0} format server_url N/A list_platforms N/A N/A server_url N/A N/A N/A 
    To list all ASAM platforms present on the Novell Fan-Out Driver

    CLI Example:

    .. code-block:: bash

        salt-run asam.list_platforms prov1.domain.com
     N/A config N/A _get_asam_configuration server_url N/A N/A config N/A N/A False N/A url N/A config N/A platform_config_url N/A data N/A manual false N/A auth N/A N/A config N/A username N/A config N/A password N/A N/A N/A html_content N/A _make_post_request url data auth verify False N/A N/A N/A Exception N/A exc N/A N/A err_msg Failed to look up existing platforms N/A N/A N/A log error N/A N/A {0}:
{1} format err_msg exc N/A N/A server_url err_msg N/A parser N/A _parse_html_content html_content N/A platform_list N/A _get_platforms N/A parser data N/A platform_list N/A N/A N/A server_url platform_list N/A N/A N/A server_url No existing platforms found N/A list_platform_sets N/A N/A server_url N/A N/A N/A 
    To list all ASAM platform sets present on the Novell Fan-Out Driver

    CLI Example:

    .. code-block:: bash

        salt-run asam.list_platform_sets prov1.domain.com
     N/A config N/A _get_asam_configuration server_url N/A N/A config N/A N/A False N/A url N/A config N/A platformset_config_url N/A data N/A manual false N/A auth N/A N/A config N/A username N/A config N/A password N/A N/A N/A html_content N/A _make_post_request url data auth verify False N/A N/A N/A Exception N/A exc N/A N/A err_msg Failed to look up existing platform sets N/A N/A N/A log error N/A N/A {0}:
{1} format err_msg exc N/A N/A server_url err_msg N/A parser N/A _parse_html_content html_content N/A platform_set_list N/A _get_platform_sets N/A parser data N/A platform_set_list N/A N/A N/A server_url platform_set_list N/A N/A N/A server_url No existing platform sets found N/A add_platform N/A N/A name platform_set server_url N/A N/A N/A 
    To add an ASAM platform using the specified ASAM platform set on the Novell
    Fan-Out Driver

    CLI Example:

    .. code-block:: bash

        salt-run asam.add_platform my-test-vm test-platform-set prov1.domain.com
     N/A config N/A _get_asam_configuration server_url N/A N/A config N/A N/A False N/A platforms N/A list_platforms server_url N/A N/A name N/A platforms N/A server_url N/A N/A N/A name N/A N/A Specified platform already exists on {0} format server_url N/A platform_sets N/A list_platform_sets server_url N/A N/A platform_set N/A platform_sets N/A server_url N/A N/A N/A name N/A N/A Specified platform set does not exist on {0} format server_url N/A url N/A config N/A platform_edit_url N/A data N/A platformName platformSetName manual previousURL postType Submit name platform_set false /config/platformAdd.html PlatformAdd Apply N/A auth N/A N/A config N/A username N/A config N/A password N/A N/A N/A html_content N/A _make_post_request url data auth verify False N/A N/A N/A Exception N/A exc N/A N/A err_msg N/A N/A Failed to add platform on {0} format server_url N/A N/A N/A log error N/A N/A {0}:
{1} format err_msg exc N/A N/A name err_msg N/A platforms N/A list_platforms server_url N/A N/A name N/A platforms N/A server_url N/A N/A N/A name N/A N/A Successfully added platform on {0} format server_url N/A N/A N/A name N/A N/A Failed to add platform on {0} format server_url N/A