Rundeck资源生成器
rundeck-resources的Python项目详细描述
python工具,用于查询来自不同源的资源并将其导出到Rundeck可以使用的数据结构中。
安装
pip install rundeck-resources
用法
$ rundeck-resources -h usage: rundeck-resources [-h] [-v] [-l LOGGER] [--no-cache] [-V] config Generates rundeck resources file from different API sources. positional arguments: config Configuration file. optional arguments: -h, --help show this help message and exit -v, --verbose Verbosity level to use. -l LOGGER, --logger LOGGER The logger YAML configuration file. --no-cache Do not use cache. -V, --version Prints version.
rundeck-resources需要INI配置文件。 您可以在example.ini中看到示例配置。
码头工人
有一个Docker图像,标记了发布包的版本。
ENV | OPTIONAL | DESCRIPTION |
---|---|---|
ARGS | ^{tt3}$ | The command line arguments. |
CONFIG | ^{tt4}$ | The path to the configuration file. |
- 用法:
$ docker run -it -v ~/config/:/config \ -v ~/export/:/export \ -e ARGS="-vvv" -e CONFIG="/config/config.ini" \ elazkani/rundeck-resources
- 假设:
- ~/config/保存config.ini配置文件。
- 配置设置为导出到/export/路径。
- /export将在容器中保存导出的资源文件。
{TT9}$存在于主机上。
进口商
- rundeck-resources目前提供以下进口商:
- 厨师:ChefImporter
出口商
- rundeck-resources目前提供以下导出器:
- 山药:YAMLExporter