This post is a how-to specific to ManageIQ development.
Whereas custom automate code can be exported from the ManageIQ UI, other custom content in ManageIQ (like Service Dialogs, custom buttons, etc.) must be exported via the command line. Below are the steps for exporting content from one environment and importing it to another. This does require some basic knowledge of linux administration:
Steps:
Create an
exports
folder at /tmp/exports on source server and animports
folder at /tmp/imports on destination server.From within the
/var/www/miq/vmdb
directory on the source server use the rake commands from the image above to export one category of items into that folder. E.g.,:rake evm:export:service_dialogs -- --directory /tmp/exports/
Use scp to move the contents of
/tmp/exports
on the source server to the/tm/imports
dir on the destination server.From within the
/var/www/miq/vmdb
directory on destination server use rake commands from the image above to import one category of items at a time. E.g.,rake evm:import:service_dialogs -- --source /tmp/imports/
OPTIONAL:
a. Delete/tmp/imports
on destination server
b. Delete/tmp/exports
on source serverRepeat from step 2 through all the various categories of items to export.
Here's a whole article: https://access.redhat.com/documentation/en-us/red_hat_cloudforms/4.7/html/scripting_actions_in_cloudforms/migrating_custom_buttons
Top comments (0)