Module Expr Str ImportFrom alias Import alias Import alias Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Assign NameStore Dict Str Str FunctionDef arguments args defaults body Expr Str If Call AttributeLoad AttributeLoad NameLoad attr attr body Return TupleLoad NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str Assign NameStore Dict Assign NameStore Str Assign NameStore ListLoad Assign NameStore Dict Assign NameStore NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameStore body For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Continue If Call AttributeLoad NameLoad attr Str body Continue Assign NameStore Call AttributeLoad NameLoad attr If BoolOpAnd CompareIn Str NameLoad CompareNotIn Str NameLoad body Assign NameStore Str If BoolOpAnd CompareEq Call NameLoad NameLoad Num NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Continue If CompareIn Str NameLoad body Assign NameStore Str For NameStore NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore ListLoad Assign NameStore Dict Continue If CompareEq NameLoad Str body Assign NameStore NameLoad orelse Assign NameStore NameLoad If CompareEq SubscriptLoad NameLoad Index Num Str body If CompareNotIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Dict For NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num body If CompareNotIn NameLoad SubscriptLoad NameLoad Index Str body Assign SubscriptStore SubscriptLoad NameLoad Index Str Index NameLoad ListLoad Assign NameStore Call AttributeLoad Str attr SubscriptLoad NameLoad Index Num NameLoad Assign NameStore Call NameLoad NameLoad For NameStore NameLoad body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad attr NameLoad Assign NameStore NameLoad If CompareGt Call NameLoad NameLoad Num body Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Num Call AttributeLoad Str attr SubscriptLoad NameLoad Slice Num orelse Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Num NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad For NameStore SubscriptLoad NameLoad Index Str body If CompareIn NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str NameLoad If BoolOpAnd Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad UnaryOpNot NameLoad body Return Call AttributeLoad Str attr NameLoad If NameLoad body If Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad body Return Str Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareEq NameLoad Str body Delete SubscriptDel NameLoad Index NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call SubscriptLoad NameLoad Index Str NameLoad Call AttributeLoad Str attr NameLoad NameLoad keyword Num keyword NameLoad orelse If CompareEq NameLoad Str body Assign NameStore NameLoad orelse If CompareEq NameLoad Str body Assign NameStore Str orelse Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call SubscriptLoad NameLoad Index Str NameLoad Call AttributeLoad Str attr NameLoad NameLoad keyword Num keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Str For NameStore NameLoad body If CompareIs SubscriptLoad NameLoad Index NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Str AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad SubscriptLoad NameLoad Index NameLoad Return Call AttributeLoad Str attr NameLoad NameLoad decorator_list
N/A N/A 
Module for managing logrotate.
 __future__ absolute_import N/A os N/A logging N/A salt.utils N/A log N/A N/A logging getLogger __name__ N/A default_conf /etc/logrotate.conf N/A __func_alias__ N/A set_ set __virtual__ N/A N/A N/A N/A N/A 
    Only work on POSIX-like systems
     N/A N/A N/A N/A salt utils is_windows N/A N/A N/A False The logrotate execution module cannot be loaded: only available on non-Windows systems. N/A True N/A _parse_conf N/A N/A conf_file N/A default_conf N/A N/A 
    Parse a logrotate configuration file.

    Includes will also be parsed, and their configuration will be stored in the
    return dict, as if they were part of the main config file. A dict of which
    configs came from which includes will be stored in the 'include files' dict
    inside the return dict, for later reference by the user or module.
     N/A ret N/A N/A mode single N/A multi_names N/A N/A multi N/A N/A prev_comps None N/A N/A N/A N/A salt utils fopen conf_file r ifile N/A N/A line ifile N/A N/A line N/A N/A line strip N/A N/A line N/A N/A N/A N/A N/A line startswith # N/A N/A N/A comps N/A N/A line split N/A N/A N/A { line N/A } line N/A N/A mode multi N/A N/A N/A N/A len comps 1 prev_comps N/A N/A multi_names prev_comps N/A N/A multi_names comps N/A N/A N/A multi_names pop N/A N/A N/A } line N/A N/A mode single N/A multi_name multi_names N/A N/A N/A ret N/A multi_name multi N/A multi_names N/A N/A multi N/A N/A N/A N/A mode single N/A N/A key ret N/A N/A key multi N/A N/A N/A comps N/A 0 include N/A N/A N/A include files ret N/A N/A N/A ret N/A include files N/A N/A include N/A N/A os listdir N/A comps N/A 1 N/A N/A N/A include N/A ret N/A include files N/A N/A N/A N/A ret N/A include files N/A include N/A N/A include_path N/A N/A {0}/{1} format N/A comps N/A 1 include N/A include_conf N/A _parse_conf include_path N/A file_key include_conf N/A N/A N/A ret N/A file_key N/A include_conf N/A file_key N/A N/A N/A N/A N/A ret N/A include files N/A include append file_key N/A prev_comps comps N/A N/A N/A len comps 1 N/A N/A N/A key N/A N/A comps N/A 0 N/A N/A join N/A comps N/A 1 N/A N/A N/A key N/A N/A comps N/A 0 True N/A ret N/A show_conf N/A N/A conf_file N/A default_conf N/A N/A 
    Show parsed configuration

    CLI Example:

    .. code-block:: bash

        salt '*' logrotate.show_conf
     N/A N/A _parse_conf conf_file N/A set_ N/A N/A key value setting conf_file N/A None default_conf N/A N/A 
    Set a new value for a specific configuration line

    CLI Example:

    .. code-block:: bash

        salt '*' logrotate.set rotate 2

    Can also be used to set a single value inside a multiline configuration
    block. For instance, to change rotate in the following block:

    .. code-block:: text

        /var/log/wtmp {
            monthly
            create 0664 root root
            rotate 1
        }

    Use the following command:

    .. code-block:: bash

        salt '*' logrotate.set /var/log/wtmp rotate 2

    This module also has the ability to scan files inside an include directory,
    and make changes in the appropriate file.
     N/A conf N/A _parse_conf conf_file N/A include N/A conf N/A include files N/A N/A N/A key N/A N/A conf N/A include files N/A include N/A N/A conf_file N/A N/A N/A os path join N/A conf N/A include include N/A N/A N/A isinstance N/A conf N/A key dict N/A setting N/A N/A N/A N/A Error: {0} includes a dict, and a specific setting inside the dict was not declared format key N/A setting N/A N/A N/A isinstance N/A conf N/A key str N/A N/A Error: A setting for a dict was declared, but the configuration line given is not a dict N/A stanza N/A conf N/A key N/A N/A value False N/A N/A N/A stanza N/A value N/A N/A N/A stanza N/A value setting N/A new_line N/A _dict_to_stanza key stanza N/A N/A N/A log debug stanza N/A N/A N/A log debug new_line N/A N/A N/A log debug key N/A N/A N/A __salt__ N/A file.replace conf_file N/A N/A {0}.*{{.*}} format key new_line flags 24 backup False N/A N/A N/A value True N/A N/A new_line key N/A N/A N/A value False N/A N/A new_line N/A N/A new_line N/A N/A {0} {1} format key value N/A N/A N/A log debug conf_file N/A N/A N/A log debug key N/A N/A N/A log debug new_line N/A N/A N/A __salt__ N/A file.replace conf_file N/A N/A ^{0}.* format key new_line flags 8 backup False N/A _dict_to_stanza N/A N/A key stanza N/A N/A N/A 
    Convert a dict to a multi-line stanza
     N/A ret N/A skey stanza N/A N/A N/A N/A stanza N/A skey True N/A N/A N/A stanza N/A skey N/A ret N/A N/A     {0} {1}
 format skey N/A stanza N/A skey N/A N/A N/A {0} {{
{1}}} format key ret N/A