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
exportsfolder at /tmp/exports on source server and animportsfolder at /tmp/imports on destination server.From within the
/var/www/miq/vmdbdirectory 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/exportson the source server to the/tm/importsdir on the destination server.From within the
/var/www/miq/vmdbdirectory 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/importson destination server
b. Delete/tmp/exportson 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)