6.2.7. Performing Required Post-Deployment Tasks
Important
- Cartridge manifests must be imported on the broker host before cartridges can be used in applications.
- At least one district must be created before applications can be created.
You can perform these tasks manually on the broker host. Run the following command to import the cartridge manifests for all cartridges installed on nodes:
# oo-admin-ctl-cartridge -c import-profile --activate --obsolete
openshift.sh
Alternatively, you can perform these tasks using the openshift.sh
script by running the post_deploy
action. This action is not run by default, but by supplying the actions
parameter, you can specify that it only run post_deploy
. When running the post_deploy
action, ensure that the script is run on the broker host using the broker
installation component.
Important
valid_gear_sizes
, default_gear_capabilities
, or default_gear_size
parameters were supplied during the initial broker host installation, ensure that the same values are supplied again when running the post_deploy
action. Otherwise, your configured values will be overridden by default values.
valid_gear_sizes
parameter is supplied when running the post_deploy
action, districts are created for each size in valid_gear_sizes
with names in the format default-gear_size_name
. If you do not want these default districts created, see the instructions for manually performing these tasks.
post_deploy
action of the openshift.sh
script. It supplies the same values for the valid_gear_sizes
, default_gear_capabilities
, and default_gear_size
used during the sample broker host installation and uses default values for all unspecified parameters:
Example 6.11. Running the post_deploy
Action on the Broker Host
$ sudo sh openshift.sh
actions=post_deploy install_components=broker valid_gear_sizes=medium default_gear_size=medium default_gear_capabilities=medium 2>&1 | tee -a openshift.sh.log
openshift.sh.log
file. Cartridge manifests are imported on the broker host, and a district named default-medium
is created.