Bug 1411220

Summary: [RFE] Allow exporting of templates
Product: Red Hat Satellite Reporter: Marek Hulan <mhulan>
Component: Provisioning TemplatesAssignee: Marek Hulan <mhulan>
Status: CLOSED ERRATA QA Contact: Lukas Zapletal <lzap>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2.0CC: bbuckingham, bobby.prins, jcallaha, lzap, mhulan
Target Milestone: UnspecifiedKeywords: FutureFeature, Triaged
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-02-21 16:39:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Marek Hulan 2017-01-09 07:42:59 UTC
Based on popularity of the same feature in remote execution that allows to share templates easily, there's no reason why not the introduce the same in core. Especially with API, it's possible to script exporting to some repo. Also this will help foreman_temples exporting feature greatly.

Comment 1 Marek Hulan 2017-01-09 07:43:03 UTC
Created from redmine issue http://projects.theforeman.org/issues/17403

Comment 2 Marek Hulan 2017-01-09 07:43:07 UTC
Upstream bug assigned to mhulan

Comment 4 Marek Hulan 2017-01-09 07:48:18 UTC
Reproducing steps:

1. go to Host -> Provisioning Templates
2. In actions column, choose export for any template
3. verify you can download it

The same works for any template kind. Note that metadata of a template are generated based on template attributes. Exporting requires view permission. Exporting is also available through API.

Comment 5 Satellite Program 2017-01-09 09:20:46 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/17623 has been resolved.

Comment 7 Lukas Zapletal 2017-08-09 11:40:44 UTC
Templates exports fine in the UI.

I am able to dump templates via CLI.

[root@zzzap ~]# hh template dump --name "Alterator default PXELinux"
<%#
kind: PXELinux
name: Alterator default PXELinux
oses:
- ALTLinux p6
- ALTLinux p7
-%>
...

That provides the same feature.

[root@zzzap ~]# rpm -q foreman katello
foreman-1.15.2-1.el7sat.noarch
katello-3.4.4-2.el7sat.noarch

Comment 8 Bryan Kearney 2018-02-21 16:38:45 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.

For information on the advisory, and where to find the updated files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:0336

Comment 9 Bryan Kearney 2018-02-21 16:39:58 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.

For information on the advisory, and where to find the updated files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:0336

Comment 10 Satellite Program 2018-02-21 16:54:17 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.
> 
> For information on the advisory, and where to find the updated files, follow the link below.
> 
> If the solution does not work for you, open a new bug report.
> 
> https://access.redhat.com/errata/RHSA-2018:0336