Elastica / py-salt

Simple python interface for salt grains and pillars

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

py-salt

Simple python interface for salt grains and pillars

Install

You can install py-salt module with pip:

pip install py-salt

Example:

from pysalt import Pillar, Grains

p = Pillar()
g = Grains()

# Print pillar list
print(p)

# Print `os_family` grain
print(g['os_family'])

# Set 'zabbix_server' roles in grain `roles`
g['roles'] = 'zabbix_server'

About

Simple python interface for salt grains and pillars


Languages

Language:Python 100.0%