Skip to content

Commit

Permalink
Move JMX auth credentials out of dockers reaper configuration and int…
Browse files Browse the repository at this point in the history
…o configure-jmx-credentials script. This allows users to start reaper without configuring REAPER_JMX_AUTH_USERNAME and REAPER_JMX_AUTH_PASSWORD.
  • Loading branch information
van-vliet authored and adejanovski committed Nov 4, 2020
1 parent 24aa024 commit 1fbf033
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/server/src/main/docker/cassandra-reaper.yml
Expand Up @@ -51,10 +51,6 @@ autoScheduling:

jmxPorts: ${REAPER_JMX_PORTS}

jmxAuth:
username: ${REAPER_JMX_AUTH_USERNAME}
password: ${REAPER_JMX_AUTH_PASSWORD}

jmxmp:
enabled: ${REAPER_JMXMP_ENABLED}
ssl: ${REAPER_JMXMP_SSL}
Expand Down
11 changes: 11 additions & 0 deletions src/server/src/main/docker/configure-jmx-credentials.sh
Expand Up @@ -38,3 +38,14 @@ EOT
done

fi


if [ ! -z "${REAPER_JMX_AUTH_USERNAME}" ]; then

cat <<EOT >> /etc/cassandra-reaper.yml
jmxAuth:
username: ${REAPER_JMX_AUTH_USERNAME}
password: ${REAPER_JMX_AUTH_PASSWORD}
EOT

fi

0 comments on commit 1fbf033

Please sign in to comment.