Project

General

Profile

Actions

Feature #25589

open

[RFE] hammer <option> create --input json - possible Foreman clone

Added by Jerry Williams over 5 years ago. Updated over 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Visibility
Target version:
-
Difficulty:
Triaged:
No
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:
yes

Description

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.


Related issues 1 (0 open1 closed)

Related to Hammer CLI - Tracker #14914: Tracker for output related issuesClosed

Actions
Actions

Also available in: Atom PDF