Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1381567

Summary: [RFE] Create a foreman_hooks smart proxy plugin
Product: Red Hat Satellite Reporter: Sean O'Keeffe <sokeeffe>
Component: UncategorizedAssignee: Lukas Zapletal <lzap>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2.0CC: b.prins, jcallaha
Target Milestone: UnspecifiedKeywords: FutureFeature
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-04 19:10:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sean O'Keeffe 2016-10-04 12:53:01 UTC
It would be great to be able to run custom scripts on a smart proxy as well, this is particularly useful in environments where clients that cannot connect directly to the foreman server.

E.g. you have a hook that when you create a host it connects to the servers iLO to configure it first. If the foreman server cannot connect directly to the iLO this useless, running the script from the smart proxy would be a better solution, especially in situations where you have proxies all over the world.

Comment 1 Bryan Kearney 2016-10-04 14:21:41 UTC
Upstream bug component is Uncategorized

Comment 3 David Caplan 2016-10-04 17:26:47 UTC
Can this be accomplished with changes to networking behavior, effectively directing Satellite Server to host communications through the Capsule. It seems like a better solution than adding more complexity to the Capsule.

Comment 4 Sean O'Keeffe 2016-10-04 18:28:38 UTC
The other options we have come up with are:
- use a http proxy (squid)
- use port forwarding 
- use SSH tunnel
- copy script to Capsule & and get the hook to run it on the capsule via a something like: "ssh user.com "./path/to/script <args>"

The first 3 options are obviously less secure and I really don't like them. Option 3 could work I guess

Comment 6 Bryan Kearney 2018-09-04 18:58:57 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.

Comment 7 Bryan Kearney 2018-09-04 19:10:44 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.