Skip to content

Commit

Permalink
fix(ubuntu): pkgrepo cannot be used
Browse files Browse the repository at this point in the history
  • Loading branch information
noelmcloughlin committed Aug 9, 2020
1 parent 68f54e4 commit fd2ff5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions prometheus/osfamilymap.yaml
Expand Up @@ -23,11 +23,11 @@ Debian:
pkg:
deps:
- cron
use_upstream_repo: true
use_upstream_repo: false
use_upstream_package: false
use_upstream_archive: false
use_upstream_archive: true
repo:
humanname: prometheus repository
humanname: 'prometheus repository'
key_url: 'https://s3-eu-west-1.amazonaws.com/deb.robustperception.io/41EFC99D.gpg'
file: /etc/apt/sources.list.d/prometheus.list
component:
Expand Down
4 changes: 2 additions & 2 deletions prometheus/package/repo/install.sls
Expand Up @@ -4,12 +4,12 @@
{%- set tplroot = tpldir.split('/')[0] %}
{%- from tplroot ~ "/map.jinja" import prometheus as p with context %}
{%- if p.pkg.use_upstream_repo and 'repo' in p.pkg %}
{%- if p.pkg.use_upstream_repo and 'repo' in p.pkg and p.pkg.repo %}
{%- from tplroot ~ "/files/macros.jinja" import format_kwargs with context %}
prometheus-package-repo-install-pkgrepo-managed:
pkgrepo.managed:
{{- format_kwargs(p.pkg['repo']) }}
{{- format_kwargs(p.pkg.repo) }}
file.replace:
# redhat workaround for salt issue #51494
- name: /etc/yum.repos.d/prometheus.repo
Expand Down

0 comments on commit fd2ff5f

Please sign in to comment.