Add docs for reloading workbooks during development

Prior to I2d3576d30fcae74ea692bd712a40264004d9b9d1 I used to copy
this from instack-undercloud, but since that now uses python it's
useful to have a reference of how to update all workbooks after
installing a locally built tripleo-common package.

Change-Id: I0eb53bcb63d3c8722d787f1f4a389a854860a623
This commit is contained in:
Steven Hardy 2018-01-04 13:25:31 +00:00
parent 04317fff33
commit 0f6c3dfa8b
1 changed files with 20 additions and 0 deletions

View File

@ -38,6 +38,26 @@ code to accomplish these tasks. ::
# make sure the new actions got loaded
mistral action-list | grep tripleo
Workflow Development
------------------
When developing new workflows, you will need to reload the modified workflows,
e.g the following will reload all the workflows from the default packaged
location, or you can use a similar approach to replace only a single workbook
while under development. ::
for workbook in $(openstack workbook list -f value -c Name | grep tripleo); do
openstack workbook delete $workbook
done
for workflow in $(openstack workflow list -f value -c Name | grep tripleo); do
openstack workflow delete $workflow
done
for workbook in $(ls /usr/share/openstack-tripleo-common/workbooks/*); do
openstack workbook create $workbook
done
Validations
-----------