No project description provided
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file idem-posix-5.0.0.tar.gz
.
File metadata
- Download URL: idem-posix-5.0.0.tar.gz
- Upload date:
- Size: 17.7 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cda7153075cdf3506d62bf4a28658d2cafb3a2f50a4ca49a57ca297c86ae29a0 |
|
MD5 | e67733b97be3f8e47dff2410b0754be4 |
|
BLAKE2b-256 | 162b4b6029fca2cd737b6469079377e30908450596ad2c003313f18af12ed498 |
File details
Details for the file idem_posix-5.0.0-py3-none-any.whl
.
File metadata
- Download URL: idem_posix-5.0.0-py3-none-any.whl
- Upload date:
- Size: 20.4 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b035104afe67191ab1b37d769a9592574e3e75b9335eef24cd0303211926abe |
|
MD5 | 2d9324000bdcd017a8a2d882e1845f49 |
|
BLAKE2b-256 | a1b1aa2f79b99a1b7fa892a50bf400b025d86a5a6915fb7dcfdc5ab5cf9bb64d |