-
Notifications
You must be signed in to change notification settings - Fork 22
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
add debian repo support #37
add debian repo support #37
Conversation
influxdb is a classBreaking changes to this file WILL impact these 1 modules (exact match):This module is declared in 0 of 579 indexed public
|
Thank you for opening these PRs! I'll start taking a look at them today. |
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.
d362b1f
to
6010db7
Compare
@m0dular I included the debian repo support feature here, because it contains variables used by this feature. |
Ah that's right, they both use the repository related variables. I'll kick off the acceptance tests, and I'll find some time to add a couple unit tests to cover it. Unless you feel like doing those yourself :P |
I always forget this, but for spec tests we need module deps in Lines 4 to 7 in eaa6d2d
One of the spec tests is failing because it expects the gpg url to be
But it only contains the second entry. I don't remember why I set it up that way, but I think we need the |
@m0dular The repo descriptions just references one key: |
3935dbe
to
7f03904
Compare
I took a look at the gpg keys:
I didn't find an official statement from influxdb which key has which purpose, but:
|
The acceptance tests would show us whether removing the gpg key would be an issue, but I also think we should keep the GPG url the same for now. That can be revisited later if we need to. |
@m0dular Only thing to think about: Yumrepo doesn't seem to have a Problem with two keys AFAIK I dont know if Apt has. so my suggestion would be to go with the old key for Ubuntu and Debian |
Sounds good. If you can push a commit that fixes the |
Sounds good. will do. |
50c1d02
to
0c394ee
Compare
@m0dular PR updated :-) |
I think the failures a related to the fact that the Debian an ubuntu repos for influx db only keep the latest version in them, we may need to specify latest or something for these OS's https://repos.influxdata.com/ubuntu/dists/focal/stable/binary-arm64/Packages I came across this before its really curious why they do this |
@MartyEwings I will add that to the data |
0c394ee
to
854eeab
Compare
manifests/init.pp
Outdated
@@ -105,7 +125,7 @@ | |||
|
|||
package {'influxdb2': |
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.
There were some errors in the acceptance tests related to the ssl files being applied before the /etc/influxdb
directory exists, and influxdb.service.d
being applied before the influxdb
user exists. I don't know why this happens on Ubuntu and not elsewhere, but I tested this change and it worked.
$package_before = if $use_ssl and $manage_ssl {
[
File['/etc/influxdb/cert.pem', '/etc/influxdb/key.pem', '/etc/influxdb/ca.pem', '/etc/systemd/system/influxdb.service.d'],
Service['influxdb']
]
}
else {
Service['influxdb']
}
package {'influxdb2':
ensure => $version,
require => $package_require,
before => $package_before,
}
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.
Hi @SimonHoenscheid, we're still seeing these failures in acceptance tests.
Error: Could not set 'file' on ensure: No such file or directory - A directory component in /etc/influxdb/cert.pem20220913-19386-1aod2be.lock does not exist or is a dangling symbolic link (file: /etc/puppetlabs/code/environments/production/modules/influxdb/manifests/init.pp, line: 200)
Can you try adding this code so the package is installed before we try to set up the certs?
I went ahead and merged #31 because it's only linting. That created a merged conflict here on the closing For #36 we could either apply the same |
This PR is waiting for #36 to be merged. Afterwards this PR can be rebased. |
854eeab
to
08cf994
Compare
I already rebased this PR. It can be merged after #36 |
08cf994
to
7e4f062
Compare
I added a commit that includes the |
fixes Add repository for Debian/Ubuntu #13