idem的通用sls-source插件
项目描述
idem的通用sls-source插件
关于
此项目提供了idem的通用sls-source。sls-source可用于收集params数据或state定义。
什么是POP?
此项目是用pop构建的,它是基于Python的插件面向编程(POP)的实现。POP试图以新的方式结合计算机历史中的概念和智慧来解决现代计算机问题。
更多信息
入门
先决条件
Python 3.8+
git (如果从源代码安装或为项目做出贡献)
安装
如果想要使用idem-sources,您可以通过从PyPI或源代码安装来使用它。
从PyPI安装
pip install idem-sources
从源代码安装
# clone repo
git clone git@gitlab.com/vmware/idem/idem-sources.git
cd idem-sources
# Setup venv
python3 -m venv .venv
source .venv/bin/activate
pip install -e .
使用方法
SLS源是包含sls文件的目录树、存档和远程存储。SLS和参数源可以来自许多不同的地方。可以用于处理SLS源的插件位于idem/idem/sls。
sls源格式的格式是
<protocol>://<resource>
已认证的sls源格式的格式是
<protocol_plugin>://<acct_profile>@<resource>
与协议插件提供者关联的命名acct配置文件将将其值传递给适当的“缓存”函数的ctx.acct。
具有MIME类型(如zip文件)的文件源在进一步处理之前将被解压缩。
这是一个指定sls_sources和param_sources的idem配置文件的示例
idem:
sls_sources:
- file://path/to/sls_tree
- file://path/to/sls_source.zip
- git://github.com/my_user/my_project.git
- git+http://github.com/my_user/my_project.git
- git+https://github.com/my_user/my_project.git
- git+ssh://github.com/my_user/my_project.git
param_sources:
- file://path/to/sls_tree
- file://path/to/sls_source.zip
- git://github.com/my_user/my_project.git
- git+http://github.com/my_user/my_project.git
- git+https://github.com/my_user/my_project.git
- git+ssh://github.com/my_user/my_project.git
sls_sources和param_sources也可以从CLI指定。
$ idem state my.sls.ref \
--sls-sources \
"file://path/to/sls_tree" \
"file://path/to/sls_source.zip" \
"git://github.com/my_user/my_project.git" \
"git+http://github.com/my_user/my_project.git"
"git+https://github.com/my_user/my_project.git"
--param-sources \
"file://path/to/sls_tree" \
"file://path/to/sls_source.zip" \
"git://github.com/my_user/my_project.git"
"git+http://github.com/my_user/my_project.git"
"git+https://github.com/my_user/my_project.git"
路线图
参考公开问题,以获取建议功能(和已知问题)的列表。
致谢
Img Shields使存储库徽章的制作变得容易。
项目详情
下载文件
下载适用于您平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。
源分布
idem-sources-2.0.0.tar.gz (9.9 kB 查看散列)
构建分布
idem_sources-2.0.0-py3-none-any.whl (9.7 kB 查看散列)