Skip to main content

salt-cumulus

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

It provides a simple interface to apply net 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-cumulus

Usage

You can use in your sls files the following state:

test_config:
    cumulus.managed:
      - source: salt://config

Assuming the config file look like:

net add time ntp server ch.pool.ntp.org

The state will parse the lines in your templated file and run each command starting with net add or net del. Others elements are ignored, so you may add comments or other data as you like, but we suggest you starts comments with # .

Warning

Running this state will abort any pending configuration first: you should avoid using the net command at the same time!

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

Release files for salt-cumulus 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for salt-cumulus 0.0.3
File Size Uploaded
salt-cumulus-0.0.3.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for salt-cumulus 0.0.3
File Interpreter ABI Platform
salt_cumulus-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 12.7 kB

Release files / salt-cumulus-0.0.3.tar.gz

Download URL salt-cumulus-0.0.3.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0d5a8ec60e6ea855fde1f5f63d40ca488932435d3bd271dc877deb056863ae9b
BLAKE2b-256 checksum
How to use checksums
b8056d6c12d107455dafb11785c4a5c711c44d96541b3b6410a009f425967286
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / salt_cumulus-0.0.3-py3-none-any.whl

Download URL salt_cumulus-0.0.3-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3a679c91a688bcb9450616f82f3a16fa09611429b8455a2d10db13670639fc14
BLAKE2b-256 checksum
How to use checksums
57114cf929619a523930735814c861b2d8910bcdd5ee88264c9e74065c6463ab
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page