-
Notifications
You must be signed in to change notification settings - Fork 449
added installation method config to skip install #272
Conversation
Installation is already split into Also this role is intended to be a management tool for a full lifecycle of prometheus application and this includes day 1 and day 2 operations. |
We do the installation a different way with some other mechanism so we want to skip all installation related things and just configure the software with ansible. This is not too uncommen when looking at other roles. |
So you want to literally copy prometheus config file and rules because this is what is left after you disable installation (as you can see in https://github.com/cloudalchemy/ansible-prometheus/blob/master/tasks/configure.yml), in such case why use this role at all? The main benefits of using this role are automated lifecycle of prometheus binary and secure by default systemd service file if you disable those, then everything else can be easily accomplished with one simple execution of
If you run in a container, then after changing configuration file prometheus needs to be reloaded, so you need to reload container. In such case this role doesn't support it and never will, so why going through the hassle of downloading a role which you are using in a way that can be accomplished with simpler methods? |
Yes, I only need the configure part (and the systemd file part as long as parts of the config are command line parameters) but does it hurt in any way if installation can get skipped? |
Please consider this feature which is apparently needed by more than one person. |
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.
After some thought let's implement this.
@DEvil0000 Could you rebase?
README.md
Outdated
@@ -28,6 +28,7 @@ All variables which can be overridden are stored in [defaults/main.yml](defaults | |||
| Name | Default Value | Description | | |||
| -------------- | ------------- | -----------------------------------| | |||
| `prometheus_version` | 2.16.0 | Prometheus package version. Also accepts `latest` as parameter. Only prometheus 2.x is supported | | |||
| `prometheus_install_method` | "auto" | Prometheus installation method takes `auto` or `manual` where `manual` effectively skips installation. | |
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.
Let's switch this to boolen like prometheus_skip_install
and set it to false
by default.
Also please add a not that this is exclusive with prometheus_binaries_local_dir
and prometheus_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.
@paulfantom, contact me if @DEvil0000 does not respond to your request
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.
I feel like I did ;)
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.
It's mean that you will not update this MR anymore ?
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.
excuse me if I was not clear. I updated it and requested a new review before your comment as you can see in its history.
So what do you think is missing?
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.
OK. Thanks. @paulfantom, is-it ok for you ?
Thanks 👍 |
skipping installation as a option