Merge "Allow configure java params for ODL karaf"
This commit is contained in:
commit
b438521172
@ -51,3 +51,12 @@ opendaylight_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ do
|
|||||||
opendaylight_tag: "{{ openstack_release }}"
|
opendaylight_tag: "{{ openstack_release }}"
|
||||||
opendaylight_image_full: "{{ opendaylight_image }}:{{ opendaylight_tag }}"
|
opendaylight_image_full: "{{ opendaylight_image }}:{{ opendaylight_tag }}"
|
||||||
opendaylight_dimensions: "{{ default_container_dimensions }}"
|
opendaylight_dimensions: "{{ default_container_dimensions }}"
|
||||||
|
|
||||||
|
###################
|
||||||
|
# Java Opts
|
||||||
|
###################
|
||||||
|
|
||||||
|
# JAVA_MAX_MEM param
|
||||||
|
opendaylight_java_max_mem: "8g"
|
||||||
|
# JAVA_MAX_PERM_MEM param
|
||||||
|
opendaylight_java_max_perm_mem: "512m"
|
||||||
|
@ -140,13 +140,15 @@
|
|||||||
|
|
||||||
- name: Copying over setenv
|
- name: Copying over setenv
|
||||||
template:
|
template:
|
||||||
src: "{{ role_path }}/templates/setenv.j2"
|
src: "{{ item }}"
|
||||||
dest: "{{ node_config_directory }}/{{ item }}/setenv"
|
dest: "{{ node_config_directory }}/opendaylight/setenv"
|
||||||
mode: "0660"
|
mode: "0660"
|
||||||
become: true
|
become: true
|
||||||
register: opendaylight_config_env
|
register: opendaylight_config_env
|
||||||
with_items:
|
with_first_found:
|
||||||
- "opendaylight"
|
- "{{ node_custom_config }}/opendaylight/{{ inventory_hostname }}/setenv"
|
||||||
|
- "{{ node_custom_config }}/opendaylight/setenv"
|
||||||
|
- "{{ role_path }}/templates/setenv.j2"
|
||||||
notify:
|
notify:
|
||||||
- Restart opendaylight container
|
- Restart opendaylight container
|
||||||
|
|
||||||
|
@ -17,8 +17,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
if [ "x$JAVA_MAX_PERM_MEM" = "x" ]; then
|
if [ "x$JAVA_MAX_PERM_MEM" = "x" ]; then
|
||||||
export JAVA_MAX_PERM_MEM="512m"
|
export JAVA_MAX_PERM_MEM="{{ opendaylight_java_max_perm_mem }}"
|
||||||
fi
|
fi
|
||||||
if [ "x$JAVA_MAX_MEM" = "x" ]; then
|
if [ "x$JAVA_MAX_MEM" = "x" ]; then
|
||||||
export JAVA_MAX_MEM="8g"
|
export JAVA_MAX_MEM="{{ opendaylight_java_max_mem }}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user