我正在尝试整合 Chef 和 Rundeck
I am trying to integrate chef and rundeck
我正在尝试整合 Chef 和 运行deck。我在 Chef 工作站上安装了 运行deck,并尝试仅在本地服务器上执行 运行 命令。正常命令工作正常,如 "uname -a" 但是当我写 cmd 时如 "service httpd status" (httpd 已经安装在工作站上)我收到错误。谁能帮我? (我是 运行deck 的新手,请使用外行语言)。谢谢。
在没有使用过 rundeck 的情况下,快速搜索会显示文档中的 Secondary Sudo Password Authentication 部分。
当您关注 Sudo Password as a Job Option 时,您将得到如下指导,并且在 运行 工作时可能会要求您输入 sudo 密码:
Configure a Job, and include an Option definition where secureInput is set to true. The name of this option can be anything you want, but the default value of sudoPassword recognized by the plugin can be used.
An example Node and Job option configuration are below:
<node name="egon" description="egon" osFamily="unix"
username="rundeck"
hostname="egon"
sudo-command-enabled="true"
sudo-password-option="option.sudoPassword2" />
Job:
<joblist>
<job>
<sequence keepgoing='false' strategy='node-first'>
<command>
<exec>sudo apachectl restart</exec>
</command>
</sequence>
<context>
<project>project</project>
<options>
<option required='true' name='sudoPassword2' secure='true'
description="Sudo authentication password"/>
</options>
</context>
...
</job>
</joblist>
我正在尝试整合 Chef 和 运行deck。我在 Chef 工作站上安装了 运行deck,并尝试仅在本地服务器上执行 运行 命令。正常命令工作正常,如 "uname -a" 但是当我写 cmd 时如 "service httpd status" (httpd 已经安装在工作站上)我收到错误。谁能帮我? (我是 运行deck 的新手,请使用外行语言)。谢谢。
在没有使用过 rundeck 的情况下,快速搜索会显示文档中的 Secondary Sudo Password Authentication 部分。
当您关注 Sudo Password as a Job Option 时,您将得到如下指导,并且在 运行 工作时可能会要求您输入 sudo 密码:
Configure a Job, and include an Option definition where secureInput is set to true. The name of this option can be anything you want, but the default value of sudoPassword recognized by the plugin can be used.
An example Node and Job option configuration are below:
<node name="egon" description="egon" osFamily="unix" username="rundeck" hostname="egon" sudo-command-enabled="true" sudo-password-option="option.sudoPassword2" />
Job:
<joblist> <job> <sequence keepgoing='false' strategy='node-first'> <command> <exec>sudo apachectl restart</exec> </command> </sequence> <context> <project>project</project> <options> <option required='true' name='sudoPassword2' secure='true' description="Sudo authentication password"/> </options> </context> ... </job> </joblist>