Skip to content

Commit

Permalink
Minor bug fix with prometheus agent location in cassandra-env.sh. Fix…
Browse files Browse the repository at this point in the history
…ed become = true for the edit.
  • Loading branch information
genghisken committed Jan 6, 2025
1 parent bbc2d0f commit 7a5a358
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gkservercollection/galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ name: gkservercollection
# The version of the collection. Must be compatible with semantic versioning
# 2024-03-17 KWS Bumped to version 0.0.28 because of updates to MariaDB and Anaconda installs.
# 2024-12-17 KWS Bumped to version 0.2.0 to match the latest release tag.
version: 0.2.1
version: 0.2.2

# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
readme: README.md
Expand Down
3 changes: 2 additions & 1 deletion gkservercollection/roles/cassandra4/handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,10 @@
- name: Add the prometheus agent to the cassandra environment
lineinfile:
dest: '{{ cassandra_config_dir }}{% if ansible_os_family == "RedHat" %}/conf{% endif %}/cassandra-env.sh'
line: 'JVM_OPTS="$JVM_OPTS -javaagent:/etc/cassandra/jmx_prometheus_javaagent-1.0.1.jar=7070:{{ cassandra_config_dir }}{% if ansible_os_family == "RedHat" %}/conf{% endif %}/prometheus/prometheus_cassandra.yml"'
line: 'JVM_OPTS="$JVM_OPTS -javaagent:/etc/cassandra/prometheus/jmx_prometheus_javaagent-1.0.1.jar=7070:{{ cassandra_config_dir }}{% if ansible_os_family == "RedHat" %}/conf{% endif %}/prometheus/prometheus_cassandra.yml"'
state: present
create: yes
become: true

#- name: Start the seed nodes
# service:
Expand Down

0 comments on commit 7a5a358

Please sign in to comment.