Skip to main content

Small salt module providing os10.managed, to apply basic config on dell OS10 switches

Project description

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).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

salt-os10-0.0.2.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

salt_os10-0.0.2-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file salt-os10-0.0.2.tar.gz.

File metadata

  • Download URL: salt-os10-0.0.2.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.0

File hashes

Hashes for salt-os10-0.0.2.tar.gz
Algorithm Hash digest
SHA256 8abac55ef014d4fe37e5f302d37b70524bc69ad81ce7a50709c931c57e2118db
MD5 d4c248a458a8503dd2bdcbcb8fa18288
BLAKE2b-256 d852dc748fe25258fd4fca703e6fe7e50d564c4d74de93e40a15f8b4bfc8ff4d

See more details on using hashes here.

File details

Details for the file salt_os10-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: salt_os10-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.0

File hashes

Hashes for salt_os10-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 30d8801475879ace6ef603203c7177ada4da54a8eb739feffbda3baee5878cc0
MD5 13c092175117bacdd136b0c3a987af72
BLAKE2b-256 876d6c6a0f44d3f0b9bb9409dcb0744527831214d0398d88f24452fefcb4abe7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page