Grains, execution modules, and state modules common to all posix systems
About
idem-posix helps executing commands on a posix system idem.
What is POP?
This project is built with pop, a Python-based implementation of Plugin Oriented Programming (POP). POP seeks to bring together concepts and wisdom from the history of computing in new ways to solve modern computing problems.
For more information:
What is Idem?
This project is built with idem, an idempotent, imperatively executed, declarative programming language written in Python. This project extends idem!
For more information:
Installation
Install with pip:
pip install idem-posix
Development Installation
Clone the idem-posix repo and install with pip:
git clone https://gitlab.com/vmware/idem/idem-posix idem_posix pip install -e idem_posix
Execution
After installation the Idem Posix Provider execution and state modules will be accessible to the pop hub. In order to use them we need to set up our credentials.
Example of using cmd.run state in SLS:
# Execute "ls -l" command
my_state_name:
cmd.run:
cmd: ls -l
cwd: /
shell: False
env:
ENV_VAR_1: ENV_VAL_1
ENV_VAR_2: ENV_VAL_2
timeout: 100
render_pipe:
kwargs:
Example of using cmd.run with Idem CLI:
idem exec cmd.run "shell command --with-flags" cwd=/home render_pipe=json timeout=10
Metadata
Release files for idem-posix 5.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| idem-posix-5.0.0.tar.gz | 17.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| idem_posix-5.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 38.0 kB
Release files / idem-posix-5.0.0.tar.gz
| Download URL | idem-posix-5.0.0.tar.gz |
|---|---|
| Size | 17.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cda7153075cdf3506d62bf4a28658d2cafb3a2f50a4ca49a57ca297c86ae29a0
|
|
BLAKE2b-256 checksum How to use checksums |
162b4b6029fca2cd737b6469079377e30908450596ad2c003313f18af12ed498
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.9.6 readme-renderer/40.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.0.4 tqdm/4.65.0 importlib-metadata/6.8.0 keyring/24.2.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.9.17
|
Release files / idem_posix-5.0.0-py3-none-any.whl
| Download URL | idem_posix-5.0.0-py3-none-any.whl |
|---|---|
| Size | 20.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0b035104afe67191ab1b37d769a9592574e3e75b9335eef24cd0303211926abe
|
|
BLAKE2b-256 checksum How to use checksums |
a1b1aa2f79b99a1b7fa892a50bf400b025d86a5a6915fb7dcfdc5ab5cf9bb64d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.9.6 readme-renderer/40.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.0.4 tqdm/4.65.0 importlib-metadata/6.8.0 keyring/24.2.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.9.17
|