These scripts are useful to import/export specific items
Note: be sure that there are no other tasks in lib/tasks with the same task name. Rake ignores the namespace (rhconsulting in this case) and uses the task method name. This can cause issues if you have two rake files with the same task names. For example, make sure there are not two instances of the dialogs:export. Even if you specify the namespace rake might choose the wrong task to run
Option 1) use make commands
-
Get latest files from github
rm -fR cfme-rhconsulting-scripts/ git clone https://github.com/rhtconsulting/cfme-rhconsulting-scripts.git
-
Install files to /var/www/miq/vmdb/lib/tasks
cd cfme-rhconsulting-scripts/ make install
-
Clean install (Removes the files before installing)
cd cfme-rhconsulting-scripts/ make clean-install
Option 2) Copy files manually * Copy the .rake files to /var/www/miq/vmdb/lib/tasks
cd cfme-rhconsulting-scripts/ cp *.rake /var/www/miq/vmdb/lib/tasks/
BUILDDIR=/tmp/CFME-build DOMAIN_EXPORT=YourDomainHere rm -fR ${BUILDDIR} mkdir -p ${BUILDDIR}/{service_catalogs,dialogs,roles,tags,buttons,customization_templates,miq_ae_datastore} cd /var/www/miq/vmdb bin/rake rhconsulting:dialogs:export[${BUILDDIR}/dialogs] bin/rake rhconsulting:service_catalogs:export[${BUILDDIR}/service_catalogs] bin/rake rhconsulting:roles:export[${BUILDDIR}/roles/roles.yml] bin/rake rhconsulting:tags:export[${BUILDDIR}/tags/tags.yml] bin/rake rhconsulting:buttons:export[${BUILDDIR}/buttons/buttons.yml] bin/rake rhconsulting:customization_templates:export[${BUILDDIR}/customization_templates/customization_templates.yml] bin/rake "rhconsulting:miq_ae_datastore:export[${DOMAIN_EXPORT}, ${BUILDDIR}/miq_ae_datastore]"
BUILDDIR=/tmp/CFME-build DOMAIN_IMPORT=YourDomainHere cd /var/www/miq/vmdb bin/rake rhconsulting:dialogs:import[${BUILDDIR}/dialogs] bin/rake rhconsulting:service_catalogs:import[${BUILDDIR}/service_catalogs] bin/rake rhconsulting:roles:import[${BUILDDIR}/roles/roles.yml] bin/rake rhconsulting:tags:import[${BUILDDIR}/tags/tags.yml] bin/rake rhconsulting:buttons:import[${BUILDDIR}/buttons/buttons.yml] bin/rake rhconsulting:customization_templates:import[${BUILDDIR}/customization_templates/customization_templates.yml] bin/rake "rhconsulting:miq_ae_datastore:import[${DOMAIN_IMPORT}, ${BUILDDIR}/miq_ae_datastore]"
-
Jose Simonelli (jose@redhat.com)
-
Lester Claudio (claudiol@redhat.com)
-
George Goh (george.goh@redhat.com)