Skip to content

Commit

Permalink
Merge pull request #217 from Cray-HPE/CASMPET-6860
Browse files Browse the repository at this point in the history
CASMPET-6860 deploy node-exporter via cephadm shell in ansible
  • Loading branch information
leliasen-hpe authored Nov 22, 2023
2 parents 2e2c812 + a8ed911 commit 6a103c9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.17.1] - 2023-11-20

### Changed

- CASMPET-6860: Change the `csm.storage.smartmon` play so it redeploys `node-exporter` using 'cephadm shell' instead of a 'ceph' command.

## [1.17.0] - 2023-10-18

### Dependencies
Expand Down
7 changes: 6 additions & 1 deletion ansible/roles/csm.storage.smartmon/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,13 @@
- name: Redeploy node-exporter
when:
- admin_keyring.stat.exists
command: "cephadm shell --mount /etc/cray/ceph/ -- ceph orch apply -i /mnt/node-exporter.yml"
register: apply_node_exporter

- name: Reconfig node-exporter
when:
- (apply_node_exporter.rc is defined) and (apply_node_exporter.rc == 0)
command: "ceph orch {{ item }} "
with_items:
- apply -i /etc/cray/ceph/node-exporter.yml
- reconfig node-exporter
- redeploy node-exporter

0 comments on commit 6a103c9

Please sign in to comment.