Closed noelmcloughlin closed 5 years ago
The repo file:
[vagrant@localhost ~]$ cat /etc/yum.repos.d/prometheus.repo
[prometheus]
metadata_expire=300
name=prometheus
gpgkey=https://packagecloud.io/prometheus-rpm/release/gpgkey
https://raw.githubusercontent.com/lest/prometheus-rpm/master/RPM-GPG-KEY-prometheus-rpm
enabled=1
baseurl=https://packagecloud.io/prometheus-rpm/release/el/$releasever/$basearch
gpgkey2=https://raw.githubusercontent.com/lest/prometheus-rpm/master/RPM-GPG-KEY-prometheus-rpm
gpgcheck=1
# installed by salt
@noelmcloughlin Likewise.
Thanks thats done @myii
Hi @alxwr When you have time, could you review some of the PRs on grafana and prometheus? They are okay on Ubuntu. Need further testing on CentOS. thx.
ping @alxwr this to fix CentOS.
This is the CentOS error.
ID: prometheus-package-install-prometheus-installed
Function: pkg.installed
Name: prometheus
Result: False
Comment: Error occurred installing package(s). Additional info follows:
errors:
- Running scope as unit run-18469.scope.
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.clouvider.net
* epel: mirror.infonline.de
* extras: mirrors.ukfast.co.uk
* updates: mirrors.clouvider.net
No package prometheus available.
Error: Nothing to do
Started: 23:11:42.180729
Duration: 29495.127 ms
Changes:
Thanks @myii for reviewing
:tada: This PR is included in version 2.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
This PR adds support for prometheus repo on RedHat. The implementation required a workaround for https://github.com/saltstack/salt/issues/51494
BREAKING CHANGE: the variable 'pkg' was renamed 'pkg.name', update your pillars One state failed due to https://github.com/saltstack-formulas/prometheus-formula/issues/3