【问题标题】:How to update Rundeck project setting using CLI如何使用 CLI 更新 Rundeck 项目设置
【发布时间】:2021-09-17 23:46:51
【问题描述】:

我想更新现有 Rundeck 项目的项目设置。例如:使用 CLI 将资源/节点添加到 Rundeck 项目。我该怎么做?

【问题讨论】:

    标签: rundeck


    【解决方案1】:

    解决方案:

    以下是使用 Rundeck CLI 将 .xml 格式的资源文件添加到现有 Rundeck 项目的命令

    $ rd 项目配置集 -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=文件

    【讨论】:

    • 正如目前所写,您的答案尚不清楚。请edit 添加其他详细信息,以帮助其他人了解这如何解决所提出的问题。你可以找到更多关于如何写好答案的信息in the help center
    【解决方案2】:

    这里有更多有用的 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 documentationproject parameter

    【讨论】:

      猜你喜欢
      • 2018-05-25
      • 1970-01-01
      • 2016-12-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-08-16
      相关资源
      最近更新 更多