Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace if/else with a selector #1

Closed
wants to merge 4 commits into from
Closed

replace if/else with a selector #1

wants to merge 4 commits into from

Conversation

bastelfreak
Copy link

Pull Request (PR) description

This Pull Request (PR) fixes the following issues

alexjfisher and others added 4 commits November 18, 2019 17:31
In systemd, the service is currently not being restarted after
configuration changes.  See voxpupuliGH-382

The acceptance test in this commit reconfigures prometheus with
the admin API enabled and then attempts to access it.

See https://prometheus.io/docs/prometheus/latest/querying/api/#tsdb-admin-apis
The [unreliable](https://puppet.com/docs/puppet/5.5/lang_defaults.html#behavior) resource default
```
File{
  notify => Class['prometheus::run_service']
}
```
is replaced by a `$notify` variable that is set on the relevant file
resources *and* `systemd::unit_file`.  Some care was needed to make sure
the reload behaviour wasn't broken.  ie If the configuration change is
just a new scrape job that is collected, the service should only be
reloaded, not restarted.

Fixes voxpupuli#382
@bastelfreak bastelfreak changed the title replace if/else if selector replace if/else with a selector Nov 18, 2019
@bastelfreak bastelfreak closed this by deleting the head repository Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants