-
Notifications
You must be signed in to change notification settings - Fork 271
Update: make delegate_to configurable / add version check to avoid re-install each time #73
Conversation
07f0061
to
e422b5b
Compare
@paulfantom Can I, or may I, redirect stderr to stdout? Or is that also not wanted? |
6979791
to
65d0f2a
Compare
- import_tasks: install.yml | ||
become: true | ||
when: (not __node_exporter_is_installed.stat.exists) or (__node_exporter_current_version_output.stderr_lines[0].split(" ")[2] != node_exporter_version) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stderr_lines
— likely to change in node_exporter, either directly or later via kingpin.v3. ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will patch it when they change. That issue in kingpin is 3 years old and we don't know when or if node_exporter will follow with that change :)
@SuperQ any insight?
What for? You are using Also
|
@paulfantom thanks, good to know. PR is done so far, let me know your thoughts! |
@@ -3,6 +3,7 @@ node_exporter_version: 0.17.0 | |||
node_exporter_web_listen_address: "0.0.0.0:9100" | |||
|
|||
node_exporter_textfile_dir: "/var/lib/node_exporter" | |||
node_exporter_destination: "/usr/local/bin/node_exporter" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is static on purpose as we are trying to follow dir structure defined in hier(7)
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In hier
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
man hier
manual for a layout of linux system directory tree
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@paulfantom ah, I had seen node_exporter
in /opt
on a few systems. Do you mind if I keep this? Since the default is what you need.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we put it into /opt
in the beginning, then there was a transition period which took couple of months, where we had this configurable and did some tricks to cleanup after ourselves. And now it is over and I don't see any reason to go back.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@paulfantom I'll see if I can finish this PR this week and remove it then.
- gather remote version - skip/avoid install when we are already up to date
65d0f2a
to
9abc006
Compare
I was rethinking this and got to some conclusions:
|
@paulfantom I think everything but the install location is taken care off, I was gonna do that now. Is that okay? |
Could you split delegation to another PR? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Objectives
delegate_to
configurablenode_exporter
location configurableTicket
Resolves: #67