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

deploy env_file_path on server #527

Merged
merged 1 commit into from
Mar 1, 2021

Conversation

anarcat
Copy link

@anarcat anarcat commented Feb 23, 2021

Without this change, when the install_method is set to package and
init_style is set to none, the various prometheus::server settings
will never do anything because we stop touching the systemd config
file.

By default, the Debian systemd.service file has this entry:

EnvironmentFile=/etc/default/prometheus
ExecStart=/usr/bin/prometheus $ARGS

... which makes it use the ARGS define in the "default" config
file. This is a hack, but it works on our side in production.

Closes: #323

This is a subset of #303, which should hopefully pass tests and be more manageable.

See also #32

Without this change, when the install_method is set to `package` and
init_style is set to `none`, the various `prometheus::server` settings
will never do anything because we stop touching the systemd config
file.

By deploying the env_file_path on the server, we allow the "Debian
package" setup (install_method=package and init_style=none) to
propagate the daemon_flags correctly.

By default, the Debian systemd.service file has this entry:

    EnvironmentFile=/etc/default/prometheus
    ExecStart=/usr/bin/prometheus $ARGS

... which makes it use the ARGS define in the "default" config
file.

This is a subset of voxpupuli#303, which should hopefully pass tests and be
more manageable.

Closes: voxpupuli#323
@anarcat anarcat merged commit 9ea57fb into voxpupuli:master Mar 1, 2021
cegeka-jenkins pushed a commit to cegeka/puppet-prometheus that referenced this pull request Mar 11, 2024
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.

env_file_path has no effect on prometheus::server
2 participants