Skip to content

Commit dd5b815

Browse files
committed
vagrant: create mystamps.conf
Addressed to #399 [ci skip]
1 parent cc89839 commit dd5b815

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
DEBUG=y
2+
LOG_FOLDER=/var/log/mystamps
3+
JAVA_OPTS='-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/heap-dumps -XX:+UseCompressedOops -Dsun.rmi.dgc.client.gcInterval=86400000 -Dsun.rmi.dgc.server.gcInterval=86400000 -Djava.security.egd=file:/dev/./urandom -Dspring.profiles.active=prod -Xmx192m'
4+
#JAVA_OPTS='-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/heap-dumps -XX:+UseCompressedOops -Dsun.rmi.dgc.client.gcInterval=86400000 -Dsun.rmi.dgc.server.gcInterval=86400000 -Djava.security.egd=file:/dev/./urandom -Xms128m -Xmx192m -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=96m -XX:+UseCompressedClassPointers -javaagent:/data/mystamps/newrelic/newrelic.jar'
5+

vagrant/provisioning/roles/mystamps-app/tasks/main.yml

+20
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@
3535
state: directory
3636
when: profile == 'prod'
3737

38+
- name: Creating /data/heap-dumps
39+
file:
40+
path: /data/heap-dumps
41+
owner: mystamps
42+
group: mystamps
43+
mode: '0755'
44+
state: directory
45+
when: profile == 'prod'
46+
3847
- name: Creating /data/mystamps/config
3948
file:
4049
path: /data/mystamps/config
@@ -53,6 +62,17 @@
5362
owner: mystamps
5463
group: mystamps
5564
mode: '0600'
65+
notify:
66+
- Restarting mystamps service
67+
when: profile == 'prod'
68+
69+
- name: Creating mystamps.conf
70+
copy:
71+
src: mystamps.conf
72+
dest: /data/mystamps/mystamps.conf
73+
mode: '0644'
74+
notify:
75+
- Restarting mystamps service
5676
when: profile == 'prod'
5777

5878
- name: Running service

0 commit comments

Comments
 (0)