Skip to content

Commit

Permalink
* Updated setenv2.sh script, KILLBILL_QUEUE_CREATOR_NAME is set only …
Browse files Browse the repository at this point in the history
…if KILLBILL_QUEUE_CREATOR_AUTOGENERATE_NAME set to false.

* Notification queue mode is set to POLLING by default.
  • Loading branch information
vnandwana committed Nov 2, 2024
1 parent 22f7822 commit 6d901c4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
7 changes: 6 additions & 1 deletion ansible/templates/killbill/conf/setenv2.sh.j2
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Java Properties
export CATALINA_OPTS="$CATALINA_OPTS
-Dorg.killbill.queue.creator.name=${KILLBILL_QUEUE_CREATOR_NAME:-{{ inventory_hostname }}}
-Dorg.killbill.queue.creator.autoGeneratedName=${KILLBILL_QUEUE_CREATOR_AUTOGENERATE_NAME:-true}
-Dorg.killbill.server.properties=file://{{ kb_config_dir }}/killbill.properties
{{ kb_system_properties }}"


if [ "$KILLBILL_QUEUE_CREATOR_AUTOGENERATE_NAME" = "false" ]; then
export CATALINA_OPTS="$CATALINA_OPTS -Dorg.killbill.queue.creator.name=${KILLBILL_QUEUE_CREATOR_NAME:-{{ inventory_hostname }}}"
fi
2 changes: 2 additions & 0 deletions docker/templates/killbill/latest/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ ENV KB_org_killbill_server_baseUrl=http://$ENV_HOST_IP:8080
ENV KB_org_killbill_billing_plugin_kpm_kpmPath=$KPM_INSTALL_DIR/kpm-latest/kpm
ENV KB_org_killbill_billing_plugin_kpm_bundlesPath=$KILLBILL_INSTALL_DIR/bundles
ENV KB_org_killbill_security_shiroResourcePath=$KILLBILL_INSTALL_DIR/config/shiro.ini
ENV KB_org_killbill_notificationq_main_queue_mode=POLLING
ENV KB_org_killbill_notificationq_analytics_queue_mode=POLLING
ENV KB_ADMIN_PASSWORD=password

# Default kpm.yml, override as needed
Expand Down
6 changes: 5 additions & 1 deletion docker/templates/killbill/latest/setenv2.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# Java Properties
export CATALINA_OPTS="$CATALINA_OPTS
-Dorg.killbill.queue.creator.name=${KILLBILL_QUEUE_CREATOR_NAME:-localhost}
-Dorg.killbill.queue.creator.autoGeneratedName=${KILLBILL_QUEUE_CREATOR_AUTOGENERATE_NAME:-true}
-Dorg.killbill.server.properties=file://$KILLBILL_INSTALL_DIR/killbill.properties
"

if [ "$KILLBILL_QUEUE_CREATOR_AUTOGENERATE_NAME" = "false" ]; then
export CATALINA_OPTS="$CATALINA_OPTS -Dorg.killbill.queue.creator.name=${KILLBILL_QUEUE_CREATOR_NAME:-localhost}"
fi

#
# Load legacy properties (backward compatibility)
#
Expand Down

0 comments on commit 6d901c4

Please sign in to comment.