Project

General

Profile

Actions

Feature #17091

open

New Remote Execution Provider, where search field becomes parameters in script instead

Added by Jason Berry over 7 years ago. Updated over 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

One of the needs I've came across needs a different kind of SSH provider; One where I can statically set WHERE it SSH's to, and the search query/results become parameters to pass in the script to be ran.

A few of the situations I've ran into this are:
  • I need to SSH to my Backup server, and run a specific command to force a backup to start of a server. If I had the above provider, it'd just be a matter of searching for the hosts needed to force a backup against, use the "Static SSH Host" provider or whatever, and pass the search list to the command that gets executed on the static ssh'd host
  • I have a trusted host, and I need to push files from it to all the servers in my search parameter. This is the case in DMZ's, where they don't have access to PULL files, it has to be a Push from a specific host. SSH Static Host field is my specific host, search query is all the hosts that get passed to the command ran on the specific host.
Actions #1

Updated by Dominic Cleal over 7 years ago

  • Project changed from Foreman to Foreman Remote Execution
Actions #2

Updated by Ivan Necas over 7 years ago

Interesting use-case. I'm not sure it belongs to the remote execution directly, or it would be more a question of a layer on top of it. I know tstrachota has some code that could help, but it's not released yet, but from what I saw, this could be pretty good fit for what you need. I will update this case once more updates are there.

Actions #3

Updated by Sergio dcm00 over 5 years ago

I need to send an email with a list of all host Im goint to execute something...
I need the list of host select to execute one powercli script..

This provider (perphaps another plugin ¿?, not remote execution provider) would be change the focus. Remote execution its a loop over selected hosts. This new plugin it would be executed once only.
This new plugin/provider would exec someting (job template) only one time. That template could use selected machines like an array to filter or which you want (exec powercli script over Vcenter and filtering the selected machines, send one mail with the list of machines selected to be patched...)

mmmm... 2 years.. :(

Actions

Also available in: Atom PDF