Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
uphrh-sb-devops
Commits
7d733bcf
Unverified
Commit
7d733bcf
authored
3 years ago
by
Keshav Prasad
Committed by
GitHub
3 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #3089 from project-sunbird/release-4.4.1
Release 4.4.1
parents
b53838c3
8a086168
master
login-changes
loginRegisterBtn
prasath-release-5.1.0
release-5.1.0
release-5.1.0-api
release-5.1.0-apiuat
release-5.1.0-bulk-enrol-unenrol
release-5.1.0-uat
release-5.1.0-uatLatest
release-5.1.0-uatapi
release-5.1.0-upsmf-prod
release-uat-nginx
revert-5-login-changes
upstream/release-5.1.0-vdn
release-5.2.0-inquiry_RC1
release-5.1.0_RC3
release-5.1.0_RC2
release-5.1.0_RC1
release-5.0.2
release-5.0.2_RC1
release-5.0.1
release-5.0.1_RC1
release-5.0.0
release-5.0.0_RC5
release-5.0.0_RC4
release-5.0.0_RC3
release-5.0.0_RC2
release-5.0.0_RC1
release-4.10.2_RC1
release-4.10.1
release-4.10.1_RC2
release-4.10.1_RC1
release-4.10.0
release-4.10.0_RC1
release-4.9.0
release-4.9.0_RC4
release-4.9.0_RC3
release-4.9.0_RC2
release-4.9.0_RC1
release-4.8.0
release-4.8.0_RC8
release-4.8.0_RC7
release-4.8.0_RC6
release-4.8.0_RC5
release-4.8.0_RC4
release-4.8.0_RC3
release-4.8.0_RC2
release-4.8.0_RC1
release-4.7.0
release-4.7.0_RC3
release-4.7.0_RC2
release-4.7.0_RC1
release-4.6.0
release-4.6.0_RC4
release-4.6.0_RC3
release-4.6.0_RC2
release-4.5.0
release-4.5.0_RC6
release-4.5.0_RC5
release-4.5.0_RC4
release-4.5.0_RC3
release-4.5.0_RC2
release-4.5.0_RC1
No related merge requests found
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
ansible/roles/cassandra/tasks/main.yml
+18
-0
ansible/roles/cassandra/tasks/main.yml
ansible/roles/cassandra/templates/override.conf.j2
+2
-0
ansible/roles/cassandra/templates/override.conf.j2
ansible/roles/es6/templates/systemd/elasticsearch.j2
+1
-0
ansible/roles/es6/templates/systemd/elasticsearch.j2
ansible/roles/graylog/tasks/server.yml
+9
-0
ansible/roles/graylog/tasks/server.yml
ansible/roles/graylog/templates/mongodb.service-Debian.j2
+1
-0
ansible/roles/graylog/templates/mongodb.service-Debian.j2
ansible/roles/graylog/templates/mongodb.service-RedHat.j2
+1
-0
ansible/roles/graylog/templates/mongodb.service-RedHat.j2
ansible/roles/keycloak-provision/templates/keycloak-service.j2
+1
-1
...le/roles/keycloak-provision/templates/keycloak-service.j2
ansible/roles/log-es6/files/systemd/elasticsearch_override.conf
+1
-0
...e/roles/log-es6/files/systemd/elasticsearch_override.conf
ansible/roles/log-es6/tasks/elasticsearch-config.yml
+10
-0
ansible/roles/log-es6/tasks/elasticsearch-config.yml
ansible/roles/log-es6/templates/elasticsearch.j2
+2
-0
ansible/roles/log-es6/templates/elasticsearch.j2
ansible/roles/log-es6/templates/override.conf.j2
+2
-1
ansible/roles/log-es6/templates/override.conf.j2
ansible/roles/logstash/templates/logstash.service.j2
+1
-0
ansible/roles/logstash/templates/logstash.service.j2
ansible/roles/mongodb-cluster/templates/mongodb.service.j2
+1
-0
ansible/roles/mongodb-cluster/templates/mongodb.service.j2
with
50 additions
and
2 deletions
+50
-2
ansible/roles/cassandra/tasks/main.yml
+
18
−
0
View file @
7d733bcf
...
...
@@ -79,6 +79,24 @@
delay
:
10
sleep
:
5
-
name
:
Make sure systemd destination dir exists
file
:
path
:
"
/etc/systemd/system/cassandra.service.d"
state
:
directory
mode
:
"
755"
-
name
:
Copy specific cassandra Systemd config file
template
:
src
:
"
override.conf.j2"
dest
:
"
/etc/systemd/system/cassandra.service.d/override.conf"
owner
:
root
group
:
cassandra
mode
:
"
644"
force
:
yes
-
name
:
Force systemd to reread configs
systemd
:
daemon_reload=yes
-
name
:
Restart Cassandra seeds
service
:
name
:
cassandra
...
...
This diff is collapsed.
Click to expand it.
ansible/roles/cassandra/templates/override.conf.j2
0 → 100644
+
2
−
0
View file @
7d733bcf
[Service]
Environment="_JAVA_OPTIONS='-Dlog4j2.formatMsgNoLookups=true'"
This diff is collapsed.
Click to expand it.
ansible/roles/es6/templates/systemd/elasticsearch.j2
+
1
−
0
View file @
7d733bcf
...
...
@@ -5,6 +5,7 @@ Wants=network-online.target
After=network-online.target
[Service]
Environment="_JAVA_OPTIONS='-Dlog4j2.formatMsgNoLookups=true'"
Environment=ES_HOME={{es_home}}
Environment=CONF_DIR={{conf_dir}}
Environment=ES_PATH_CONF={{conf_dir}}
...
...
This diff is collapsed.
Click to expand it.
ansible/roles/graylog/tasks/server.yml
+
9
−
0
View file @
7d733bcf
...
...
@@ -40,6 +40,15 @@
mode
:
0644
notify
:
"
restart
graylog-server"
-
name
:
"
Add
log4j
env
to
service
file"
lineinfile
:
path
:
/usr/lib/systemd/system/graylog-server.service
insertafter
:
\[Service]
line
:
"
Environment=
\"
_JAVA_OPTIONS='-Dlog4j2.formatMsgNoLookups=true'
\"
"
firstmatch
:
yes
state
:
present
notify
:
"
restart
graylog-server"
-
name
:
"
Graylog
server
should
start
after
reboot"
file
:
path
:
"
/etc/init/graylog-server.override"
...
...
This diff is collapsed.
Click to expand it.
ansible/roles/graylog/templates/mongodb.service-Debian.j2
+
1
−
0
View file @
7d733bcf
...
...
@@ -4,6 +4,7 @@ After=network.target
Documentation=https://docs.mongodb.org/manual
[Service]
Environment="_JAVA_OPTIONS='-Dlog4j2.formatMsgNoLookups=true'"
User=mongodb
Group=mongodb
ExecStart=/usr/bin/mongod --quiet --config /etc/mongod.conf
...
...
This diff is collapsed.
Click to expand it.
ansible/roles/graylog/templates/mongodb.service-RedHat.j2
+
1
−
0
View file @
7d733bcf
...
...
@@ -4,6 +4,7 @@ After=network.target
Documentation=https://docs.mongodb.org/manual
[Service]
Environment="_JAVA_OPTIONS='-Dlog4j2.formatMsgNoLookups=true'"
User=mongod
Group=mongod
Environment="OPTIONS=-f /etc/mongod.conf"
...
...
This diff is collapsed.
Click to expand it.
ansible/roles/keycloak-provision/templates/keycloak-service.j2
+
1
−
1
View file @
7d733bcf
...
...
@@ -11,7 +11,7 @@
keycloakuser
=
keycloak
keycloakpath
=
/opt/keycloak/bin
_JAVA_OPTIONS
=
'-Dlog4j2.formatMsgNoLookups=true'
# Normal output log
LOGOUT
=
/var/log/keycloak.out.log
# Error output log
...
...
This diff is collapsed.
Click to expand it.
ansible/roles/log-es6/files/systemd/elasticsearch_override.conf
+
1
−
0
View file @
7d733bcf
[
Service
]
Environment
=
"_JAVA_OPTIONS='-Dlog4j2.formatMsgNoLookups=true'"
LimitMEMLOCK
=
infinity
This diff is collapsed.
Click to expand it.
ansible/roles/log-es6/tasks/elasticsearch-config.yml
+
10
−
0
View file @
7d733bcf
...
...
@@ -103,3 +103,13 @@
force
:
yes
notify
:
restart elasticsearch
when
:
es_config_log4j2 != ''
-
name
:
Add log4j env to service file
become
:
yes
lineinfile
:
path
:
/usr/lib/systemd/system/elasticsearch.service
insertafter
:
\[Service]
line
:
"
Environment=
\"
_JAVA_OPTIONS='-Dlog4j2.formatMsgNoLookups=true'
\"
"
firstmatch
:
yes
state
:
present
notify
:
restart elasticsearch
This diff is collapsed.
Click to expand it.
ansible/roles/log-es6/templates/elasticsearch.j2
+
2
−
0
View file @
7d733bcf
...
...
@@ -8,6 +8,8 @@ ES_HOME={{es_home}}
# Elasticsearch temp directory
ES_TMPDIR={{ es_tmp_dir }}
_JAVA_OPTIONS='-Dlog4j2.formatMsgNoLookups=true'
# Elasticsearch Java path
{% if es_java_home | length > 0 %}
ES_JAVA_HOME={{ es_java_home }}
...
...
This diff is collapsed.
Click to expand it.
ansible/roles/log-es6/templates/override.conf.j2
+
2
−
1
View file @
7d733bcf
[Service]
Environment="_JAVA_OPTIONS='-Dlog4j2.formatMsgNoLookups=true'"
{% if m_lock_enabled %}
LimitMEMLOCK = infinity
{% endif %}
{% if es_max_open_files is defined %}
LimitNOFILE = {{ es_max_open_files }}
{% endif %}
\ No newline at end of file
{% endif %}
This diff is collapsed.
Click to expand it.
ansible/roles/logstash/templates/logstash.service.j2
+
1
−
0
View file @
7d733bcf
...
...
@@ -2,6 +2,7 @@
Description=logstash Daemon
[Service]
Environment="_JAVA_OPTIONS='-Dlog4j2.formatMsgNoLookups=true'"
Type=simple
User={{learner_user}}
Group={{learner_user}}
...
...
This diff is collapsed.
Click to expand it.
ansible/roles/mongodb-cluster/templates/mongodb.service.j2
+
1
−
0
View file @
7d733bcf
...
...
@@ -5,6 +5,7 @@ Documentation=man:mongod(1)
After=network-online.target
[Service]
Environment="_JAVA_OPTIONS='-Dlog4j2.formatMsgNoLookups=true'"
User={{ mongodb_user }}
{% if mongodb_use_numa | bool %}
ExecStart=/usr/bin/numactl --interleave=all /usr/bin/mongod --config /etc/mongod.conf
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets