Metadata-Version: 2.1
Name: salt-os10
Version: 0.0.2
Summary: Small salt module providing os10.managed, to apply basic config on dell OS10 switches
Home-page: https://github.com/ArcaniteSolutions/salt-os10
Author: Maximilien Cuony
Author-email: maximilien.cuony@arcanite.ch
License: MPL
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
Classifier: Operating System :: Other OS
Classifier: Programming Language :: Python
Classifier: Topic :: System :: Networking
Description-Content-Type: text/markdown
Requires-Dist: sh

# salt-os10

Salt-os10 is a small salt state, providing an easy way to configure the configuration of a Dell OS10 switch.

It provides a simple interface to apply configuration commands from a template.

It does not provide anything else for the moment. Most of others changes can be done via usual salt states.

This is a **beta version**. Use it at your own risk!

## Installation

Simply run the following command on your switch:

`pip install salt-os10`

## Usage

You can use in your sls files the following state:

```
test_config:
    os10.managed:
      - source: salt://config
```

Assuming the config file look like:

```
ntp server ch.pool.ntp.org
```

The state will parse the lines in your templated file and run it in a 'configure terminal' transation.

## Parameters

### source

Source file. Behave as the `source` argument of `file.managed`.

### hash

Hash of the file. Behave as the `hash` argument of `file.managed`.

### hash_name

Type of hash. Behave as the `hash_name` argument of `file.managed`.

### skip_verify

Skip hash verification. Behave as the `skip_verify` argument of `file.managed`.

### engine

Template format. Default to `jinja`. Behave as the `template` argument of `file.managed`.

### context

Data pased to the template. Behave as the as the `context` argument of `file.managed`.

### defaults

Default values for the context. Behave as the `defaults` argument of `file.managed`.

### commit

Commit changes when the state is applied. Default to `True`, setting it to `False` will revert changes (but will try to run them).


