跳转到主要内容

未提供项目描述

项目描述

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

适用于所有POSIX系统的通用grains、执行模块和状态模块

关于

idem-posix 帮助在POSIX系统上执行 idem 命令。

什么是POP?

该项目使用 pop 构建,它是一个基于Python的 插件面向编程 (POP) 实现。POP旨在以新的方式结合计算历史上的概念和智慧来解决现代计算问题。

更多信息

什么是Idem?

该项目使用 idem 构建,idem 是一种用Python编写的幂等、命令式执行的声明式编程语言。该项目扩展了idem!

更多信息

安装

使用pip安装

pip install idem-posix

开发安装

克隆 idem-posix 仓库,并使用pip安装

git clone https://gitlab.com/vmware/idem/idem-posix idem_posix
pip install -e idem_posix

执行

安装后,Idem Posix Provider 的执行和状态模块将对 pop hub 可用。为了使用它们,我们需要设置我们的凭据。

SLS 中使用 cmd.run 状态的示例

# 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:

使用 Idem CLI 的 cmd.run 示例

idem exec cmd.run "shell command --with-flags" cwd=/home render_pipe=json timeout=10

项目详情


下载文件

下载您平台上的文件。如果您不确定选择哪个,请了解更多关于 安装包 的信息。

源分布

idem-posix-5.0.0.tar.gz (17.7 kB 查看哈希值)

上传时间

构建分布

idem_posix-5.0.0-py3-none-any.whl (20.4 kB 查看哈希值)

上传时间 Python 3

支持