rundeck

Trying to Pass Dynamic Value to Rundeck Server

妖精的绣舞 提交于 2021-01-29 14:08:31
问题 Variable(servicename) in rundeck, runningservices(sshd) I wanna pass here to rundeck server. import requests runningservice=sshd headers = { 'Accept': 'application/json', 'Content-Type': 'application/json', 'X-Rundeck-Auth-Token': 'API', } data = '{"argString":"-servicename runningservice "}' response = requests.post('http://IP:PORT/api/16/job/JOBID/executions', headers=headers, data=data) 回答1: You can try in the following way: Job definition with three options: <joblist> <job> <context>

How to run a Powershell command in Rundeck with pipes

橙三吉。 提交于 2021-01-29 13:23:07
问题 I'm using Rundeck version 3.0.13 to send powershell commands over WinRM to Windows Server 2016 hosts. Is there any way to run a powershell command with pipe characters as a single command? For example, I'd love to be able to execute a command like this to start non-disabled services: Get-Service | where-object {$_.StartType -ne "Disabled"} | foreach-object {Start-Service $_} But I get the error back "where-object" command not found. The WinRM node executor runs the command as an argument to

How to set a different Rundeck user in a scheduled job?

荒凉一梦 提交于 2021-01-29 12:43:06
问题 I'm wondering if it's possible to set a different Rundeck User to run a scheduled job? I created a user that can only perform 1 thing which is to run jobs. There is an existing job already that is scheduled to run every minute but I can't seem to find any options to change the user who will run the job. Thanks in advance to those who will answer. 回答1: Currently, the only way to change the scheduled job user is to save the same job as another user. But that sounds good for enhancement. 来源:

Force Rundeck “Secure Remote Authentication” option to pass to script

生来就可爱ヽ(ⅴ<●) 提交于 2021-01-29 01:34:57
问题 SSH key authentication is frowned upon in my environment (a point I disagree with) so Rundeck users are forced into entering their SSH password at run time into a "Secure Remote Authentication" option. Short of setting up two separate options, one "Secure" to pass to the scripts and the other "Secure Remote Authentication" for authenticating the SSH sessions, is there any way to force the contents of a "Secure Remote Authentication" job option to also be passed to a script that the job is

Rundeck variable from script steps to Inline Ansible Playbook

大憨熊 提交于 2021-01-29 00:01:44
问题 I need to download a file from web URL and inflate into remote server, which does not have internet access. Rundeck downloads the file into local path wget, then push the file to destination server using SSH Rundeck to execute script on remote node to inflate the file copied using above step and perform other housekeeping activity, (its a bash shell script) I am with very little knowledge on using Rundeck. Step one , I have got it done. File is downloaded to rundeck from URL and pushed to

Rundeck variable from script steps to Inline Ansible Playbook

五迷三道 提交于 2021-01-29 00:00:34
问题 I need to download a file from web URL and inflate into remote server, which does not have internet access. Rundeck downloads the file into local path wget, then push the file to destination server using SSH Rundeck to execute script on remote node to inflate the file copied using above step and perform other housekeeping activity, (its a bash shell script) I am with very little knowledge on using Rundeck. Step one , I have got it done. File is downloaded to rundeck from URL and pushed to

How do I customise Rundeck with a logo?

▼魔方 西西 提交于 2021-01-28 22:52:27
问题 I've just installed Community Rundeck 3.2.2 with RPM on a RHEL 8.1. I've tried to customise it with my logo images with no success: Created user-assets directory in /var/lib/rundeck Copied the images there (png and jpg) Defined the settings in /etc/rundeck/rundeck-config.properties rundeck.gui.logo=logoTNC600x600grey.jpg rundeck.gui.logoSmall=logoTNC200x200white.png rundeck.gui.instanceNameLabelColor=#ededed rundeck.gui.instanceNameLabelTextColor=#000000 rundeck.gui.title=TNC Rundeck rundeck