Skip to main content

No project description provided

Project description

Made with pop, a Python implementation of Plugin Oriented Programming Made with idem, a Python implementation of Plugin Oriented Programming Documentation is published with Sphinx on docs.idemproject.io Made with Python

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


Download files

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

Source Distribution

idem-posix-5.0.0.tar.gz (17.7 kB view hashes)

Uploaded Source

Built Distribution

idem_posix-5.0.0-py3-none-any.whl (20.4 kB view hashes)

Uploaded Python 3

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