Yum repo update to work with version 7
Closed this issue · 5 comments
Manually using the following:
[elastic-7.x]
name=Elastic repository for 7.x packages
baseurl=https://artifacts.elastic.co/packages/7.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
The module spits out the following that for some reason only show 6.x version of filebeat:
[beats]
name=elastic beats repo
baseurl=https://artifacts.elastic.co/packages/7.x/yum
enabled=1
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
Did the machine you're running this on previously have filebeat 6.x installed? I'm wondering if we need to clean out the yum cache when we modify the repository to keep it from searching the cached package list.
I've got a change staged up if that ends up being the case.
Yes it did. That may be all it takes. I couldn't see why the yum repo file from the module wouldn't work.
Can you check if the code in master fixes this problem? I've pushed the change, but don't have a good place to test it (I run master in production, but we're not quite ready for 7.x yet).
Yep that fixed it. Cheers.
Thanks for the help. I just put the change in a new release (4.0.2).