Metadata-Version: 2.1
Name: stockpiler
Version: 0.5.2
Summary: Backup Network Device Configurations
Home-page: https://github.com/rackerlabs/stockpiler
Author: Brett Lykins
Author-email: brett.lykins@rackspace.com
License: LGPLv3+
Download-URL: https://github.com/rackerlabs/stockpiler/archive/v0.5.2.tar.gz
Description: # Stockpiler
        Stockpiler gathers network device configurations and stores them in a local Git repository.
        
        Stockpiler utilizes Nornir, Netmiko, and GitPython for a fully self-contained
         backup solution, and has been tested to function on Linux, MacOS, and Windows.
        
        By default, it will read in device inventory from `/etc/stockpiler/`, and output backups to `/opt/stockpiler/`.
         Both are configurable by command line arguments.
        
        # Installation
        
        Notes:
        
        1. Stockpiler utilizes a very recent release of Netmiko. This requires some specific handling (as outlined below),
           until other libraries update their dependencies.
        2. Stockpiler requires Python 3.7 or higher.
        3. Stockpiler utilizes Python Virtual Environments for isolation of the code/environment.
        
        ## Installation Steps
        
        1. Create a directory for the Stockpiler virtual environment:
            `mkdir stockpiler`
        2. Create a virtual environment in that directory:
            `python3 -m venv stockpiler`
        3. Navigate to the new directory and activate it:
            `cd stockpiler;source bin/activate`
        4. Install Nornir:
            `pip install nornir`
        5. Edit the dependencies, this will require you to find the Napalm and Nornir `METADATA` files in your virtual
         environment:
            * Paths should be similar to:
                * `lib/python3.7/site-packages/napalm-2.5.0.dist-info/METADATA`
                * `lib/python3.7/site-packages/nornir-2.3.0.dist-info/METADATA`
            * In each file, find the lines similar to below that reference Netmiko:
                * `Requires-Dist: netmiko (==2.4.2)`
                * `Requires-Dist: netmiko (>=2.3.3,<3.0.0)`
            * Edit it to include 3.0.0, similar to the below:
                * `Requires-Dist: netmiko (>=2.4.2)`
                * `Requires-Dist: netmiko (>=2.3.3)`
        6. Install Stockpiler:
            `pip install stockpiler`
        
        # Configuration
        
        As Stockpiler utilizes Nornir for the underlying inventory and task handling, see the Nornir
         documentation for more information on creating an inventory file or your configuration options
        
        While we have provided a simple `nornir_conf.yaml` file, you are welcome to provide your own or customize
         the one provided by the package.
        * https://nornir.readthedocs.io/en/latest/configuration/index.html
        
        If you are using Windows (or wish to host your inventory in a different location than `/etc/stockpiler/inventory`), you
         will need to create a custom Nornir config file with your inventory paths.
        
Keywords: stockpiler,backups,network,nornir,python
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Provides-Extra: test
Provides-Extra: build
