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

revert the env_vars removal for two exporters #528

Closed
wants to merge 1 commit into from

Conversation

anarcat
Copy link

@anarcat anarcat commented Feb 23, 2021

We need the env_vars for the Debian package to work properly. In
Debian-land, the systemd .service file gets its parameters from the
EnvironmentFile, which we deploy through the env_vars here.

Yes, it's backwards, and no, it's not great because it doesn't
actually use the options stuff, but at least it works.

This is necessary to have those exporters be able to accept options
when using init_style=none and install_method=package.

This is a split off of #303 which should at least pass
tests (/probably/ because the install_method=package code path is
basically untested).

See also #32

We need the env_vars for the Debian package to work properly. In
Debian-land, the systemd `.service` file gets its parameters from the
EnvironmentFile, which we deploy through the `env_vars` here.

Yes, it's backwards, and no, it's not great because it doesn't
actually use the `options` stuff, but at least it works.

This is necessary to have those exporters be able to accept options
when using init_style=none and install_method=package.

This is a split off of voxpupuli#303 which should at least pass
tests (/probably/ because the `install_method=package` code path is
basically untested).
@anarcat
Copy link
Author

anarcat commented Feb 23, 2021

a cleaner approach for this is #530

@anarcat anarcat marked this pull request as draft February 23, 2021 22:00
@anarcat anarcat closed this Feb 23, 2021
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.

1 participant