Orient db role

This commit is contained in:
2017-06-12 03:04:37 +03:00
parent 6648b44e95
commit 58a5a6ab1b
5 changed files with 9 additions and 6 deletions
+1 -1
View File
@@ -7,8 +7,8 @@
become: yes
roles:
- { role: apache2config }
- { role: tomcat8 }
- { role: orientdb }
- { role: tomcat8 }
vars:
tmpl:
+3 -2
View File
@@ -17,8 +17,9 @@ orientdb_ssl_port_range: 2434-2440
orientdb_enable_http: True
orientdb_http_port_range: 2480-2490
orientdb_force_install: False
orientdb_Xms: 128m
orientdb_Xmx: 310m
orientdb_jvm_Xms: 128m
orientdb_jvm_Xmx: 310m
orientdb_jvm_MaxDirectMemorySize: 512m
orientdb_users:
- name: root
password: rootpwd
@@ -23,7 +23,7 @@ start() {
echo "Starting OrientDB server daemon..."
cd "$ORIENTDB_DIR/bin"
su $ORIENTDB_USER -c "export ORIENTDB_OPTS_MEMORY=\"-Xms{{orientdb_Xms}} -Xmx{{orientdb_Xmx}}\";cd \"$ORIENTDB_DIR/bin\"; /usr/bin/nohup ./server.sh 1>{{orientdb_log_dir}}/orientdb.log 2>{{orientdb_log_dir}}/orientdb.err &"
su $ORIENTDB_USER -c "export ORIENTDB_OPTS_MEMORY=\"-Xms{{orientdb_jvm_Xms}} -Xmx{{orientdb_jvm_Xmx}}\";cd \"$ORIENTDB_DIR/bin\"; /usr/bin/nohup ./server.sh 1>{{orientdb_log_dir}}/orientdb.log 2>{{orientdb_log_dir}}/orientdb.err &"
}
stop() {
+1 -1
View File
@@ -5,7 +5,7 @@ Wants=network.target
[Service]
User=orientdb
Environment=ORIENTDB_ROOT_PASSWORD='{{ orientdb_users[0].password }}' "ORIENTDB_OPTS_MEMORY=-Xms{{orientdb_Xms}} -Xmx{{orientdb_Xmx}}"
Environment=ORIENTDB_ROOT_PASSWORD='{{ orientdb_users[0].password }}' "ORIENTDB_OPTS_MEMORY=-Xms{{orientdb_jvm_Xms}} -Xmx{{orientdb_jvm_Xmx}}" "JAVA_OPTS_SCRIPT=-Djna.nosys=true -XX:+HeapDumpOnOutOfMemoryError -XX:MaxDirectMemorySize={{orientdb_jvm_MaxDirectMemorySize}} -Djava.awt.headless=true -Dfile.encoding=UTF8 -Drhino.opt.level=9"
ExecStart={{ orientdb_path }}/bin/server.sh
Restart=on-failure
RestartSec=20
+3 -1
View File
@@ -5,4 +5,6 @@ galaxy_info:
license: license (GPLv2, CC-BY, etc)
min_ansible_version: 1.2
galaxy_tags: []
dependencies: []
dependencies:
- { role: jdk }