我想更新现有 Rundeck 项目的项目设置。例如:使用 CLI 将资源/节点添加到 Rundeck 项目。我怎么做?
2 回答
0
解决方案:
下面是使用 Rundeck CLI 将 .xml 格式的资源文件添加到现有 Rundeck 项目的命令
$ rd projects configure set -p MG-Test-CLI --
--resources.source.1.config.file="/home/rundeck/iidas/resources.xml" \ --resources.source.1.config.generateFileAutomatically =true
--resources.source.1.config.includeServerNode=true
--resources.source.1.type=文件
于 2021-09-18T00:30:25.490 回答
0
这里有更多有用的 Rundeck CLI 项目命令:
# create project
rd projects create -p project1
# get project configuration
rd projects configure get -p project1
# Configure nodes from remote URL (GitLab)
rd projects configure update -p project1 -- \
--resources.source.1.type=url \
--resources.source.1.config.url='https://git.i.example.com/api/v4/projects/3/repository/files/project1%2Fdev%2Fnodes.json/raw?ref=master&private_token=1234567890' \
--resources.source.1.config.timeout=10 \
--resources.source.1.config.cache=false
另请参阅Rundeck CLI 文档和项目参数。
于 2022-02-07T14:10:23.313 回答