rundeck

安装和使用rundeck

孤街醉人 提交于 2020-10-02 16:10:12
安装部署rundeck 1、安装rundeck仓库源 rpm -Uvh http://repo.rundeck.org/latest.rpm 2、安装rundeck java yum install rundeck java 3、启动rundeck及加入系统启动项 systemctl start rundeckd systemctl enable rundeckd 4、访问rundeck 注意:在访问前需要修改配置文件/etc/rundeck/rundeck-config.properties 修改这一行,将 grails.serverURL=http://localhost:4440 修改为 grails.serverURL=http://10.1.2.205:4440 5、创建rundeck 项目 6、创建rundeck 节点 a.创建项目后,在project settings底下配置节点信息 b.在rundeck主机创建/tmp/node-info.xml文件,文件内容如下: <project> <node name="test01" description="test01" tags="test01" hostname="10.1.1.81" osArch="amd64" osFamily="unix" osName="freebsd" osVersion="9.2

Rundeck integration with Ansible through plugin

我的未来我决定 提交于 2020-06-23 18:08:19
问题 I am not able to configure the rundeck integration with ansible, I am using the rundeck-ansible plugin, but I am not getting easy and useful information/help from google. I have installed ansible and rundeck on the same server. I have used that plugin https://github.com/Batix/rundeck-ansible-plugin but not able to configure it. can anyone please share the link which h guide step by step. Any help will be appreciated. 回答1: Keep on mind that the Ansible plugin is out of the box with Rundeck,

Where do you target your hosts, in Rundeck or Ansible? [closed]

旧巷老猫 提交于 2020-03-03 09:21:50
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 18 days ago . My question is when running a ansible playbook from Rundeck where do i set what hosts get targeted? In the Rundeck job/ workflow or ansible playbook? 回答1: To use Ansible inventory you need to add a new Ansible node source. Take a look at this. Especially the step 3. Adding the Ansible node source

How do i install Rundeck's Docker Plugin

冷暖自知 提交于 2020-01-07 17:32:34
问题 I'm trying to manage scheduled jobs (in a Docker image) via Rundeck. I found out that Rundeck has official Docker plugins. However, i couldn't find the instructions to install them. Here's a video on how to use the plugins, but missing the installation part. I'm running Rundeck 3.1 on Docker. 回答1: You need to extend the official image. I leave the following Dockerfile that adds the docker plugin (the file name is "Dockerfile" too): # OFFICIAL RUNDECK DOCKER IMAGE :-) FROM rundeck/rundeck:3.2

How to gracefully stop job execution when one step fails in Rundeck?

 ̄綄美尐妖づ 提交于 2020-01-05 06:37:31
问题 So I defined a Rundeck job which normally executes three steps: run script to check remote directory for .csv files and rsync them manipulate csv files rsync the csvs back to remote dir now I set up the script run on step 1 to finish with exit code 1 when there are no csv files in my remote directory, upon which it does not execute steps 2 and 3 - which is great! But the whole job is marked as having failed even though it just didn't need to execute the other steps. Is it possible to

Rundeck: how to pass authentication credentials from a job to another?

杀马特。学长 韩版系。学妹 提交于 2019-12-25 02:24:39
问题 In RunDeck, I need to use the output of one job as a input to another. I plan to do it the way outlined in this answer. Basically, I'd have a master job and it would call the other two jobs. My problem is that the jobs in my RunDeck installation have access control, so I'd need to pass the authentication info from the master job to the jobs that are started from the command line. How would I pass this authentication info? BTW, my company uses RunDeck version 2.5.1, a somewhat old version. 回答1

rundeck: secondary sudo password authentication not working

霸气de小男生 提交于 2019-12-25 00:14:23
问题 <node name="***" tags="***" osFamily="***" username="***" hostname="192.168.***.***" ssh-authentication="password" ssh-password-storage-path="keys/nodes/${node.name}/ssh.password" sudo-command-enabled="true" sudo-password-storage-path="keys/nodes/${node.name}/sudo.password" /> Command: sudo mv /temp/hello.txt /path/to/destination/ Then I have added the password through key storage. I am sure that the password written in sudo.password is correct. I have rebooted rundeck server I can't get this

rundeck unable to execute powershell script with import-module

心已入冬 提交于 2019-12-24 19:35:03
问题 I am running several python scripts via rundeck (in-line) on windows 2012 target node. These scripts used to run locally but now in the process of moving to rundeck. One of the python scripts opens subprocess to invoke a powershell script and read the output. import subprocess CMD = [r'C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe ', '-File', r'C:\Users\Osman\Code\mop.ps1'] cmd = CMD[:] cmd.append('arg1') cmd.append('arg2') cmd.append('arg3') p = subprocess.Popen(cmd, stdout

How to obtain node inventory for rundeck from chef

可紊 提交于 2019-12-13 07:25:48
问题 The workflow automation tool rundeck sources structured text files to create its inventory of nodes. But if you use chef as your source of truth of your server/node inventory, its undesirable to have to create these flat files just for rundeck to reference. How can rundeck obtain this information dynamically from a chef server? 回答1: chef-rundeck is a sinatra app (ruby) that interfaces with a chef server and exposes the node inventory data through a REST API in XML format. https://github.com