Skip to content
This repository has been archived by the owner on Mar 26, 2020. It is now read-only.

Include gluster-prometheus-exporter rpm in glusterd2 container #1308

Merged
merged 2 commits into from
Nov 12, 2018
Merged

Include gluster-prometheus-exporter rpm in glusterd2 container #1308

merged 2 commits into from
Nov 12, 2018

Conversation

aravindavk
Copy link
Member

@aravindavk aravindavk commented Oct 31, 2018

Signed-off-by: Aravinda VK avishwan@redhat.com

@aravindavk
Copy link
Member Author

retest this please

@aravindavk
Copy link
Member Author

Nightly rpm is now setup http://artifacts.ci.centos.org/gluster/gluster-prometheus-nightly/ (centosci PR: gluster/centosci#36)

Removed DO_NOT_MERGE label, Please review

- name: Configure gluster-exporter to use glusterd2
replace:
path: /etc/gluster-exporter/gluster-exporter.toml
regexp: 'gluster-mgmt = "glusterd"'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May want to make these matches a bit more robust ala: '^gluster-mgmt =.*' (or something alone those lines)... Just to ensure the replacement happens even if the default options changes subtly.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed as suggested.

Copy link
Member

@kshlm kshlm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than the use of the command module to enable the service, the remaining changes look good.

value: GD2_ENDPOINTS

- name: Enable gluster-exporter.service
command: systemctl enable gluster-exporter.service
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should be using the service module instead of the command module. Any reason not to?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

referred other instance in the same file(Line 109)

- Depends on rpm spec file PR
  gluster/gluster-prometheus#26
- Nightly rpm building is setup
  gluster/centosci#36
- Depends of environment variable related PR
  gluster/gluster-prometheus#66

Signed-off-by: Aravinda VK <avishwan@redhat.com>
@aravindavk
Copy link
Member Author

Updated to use "service" module instead of "command". @kshlm please review

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants