Project

General

Profile

Feature #25589

Updated by Tomáš Strachota over 5 years ago

The hammer CLI command has a nice --output json feature that I would like to see the json output be able to be used as the input on another Foreman server. 
 For example: 
 hammer --output json domain list >domain.json 
 hammer --input json domain create --file domain.json or something like that. 

 
 In my cause is would like to see something like: 
 hammer --output json export >export.json 
 hammer --input json import --file export.json on another server, so now you have a copy of all the metadata, like OS and subnets and partition-tables and provisioning templates and domains and host groups. 

 
 I would like to be able to export from one Foreman server and import the configuration into another Foreman server. 
 It would be nice for any place that the hammer command has the create option to be able to accept the json output from a list command and not need to parse all of the fields, since they are already in the json file.

Back