Merge pull request #32 from noelmcloughlin/repo
fix(ubuntu): pkgrepo cannot be used
This commit is contained in:
commit
9b6c13d62c
@ -23,11 +23,11 @@ Debian:
|
|||||||
pkg:
|
pkg:
|
||||||
deps:
|
deps:
|
||||||
- cron
|
- cron
|
||||||
use_upstream_repo: true
|
use_upstream_repo: false
|
||||||
use_upstream_package: false
|
use_upstream_package: false
|
||||||
use_upstream_archive: false
|
use_upstream_archive: true
|
||||||
repo:
|
repo:
|
||||||
humanname: prometheus repository
|
humanname: 'prometheus repository'
|
||||||
key_url: 'https://s3-eu-west-1.amazonaws.com/deb.robustperception.io/41EFC99D.gpg'
|
key_url: 'https://s3-eu-west-1.amazonaws.com/deb.robustperception.io/41EFC99D.gpg'
|
||||||
file: /etc/apt/sources.list.d/prometheus.list
|
file: /etc/apt/sources.list.d/prometheus.list
|
||||||
component:
|
component:
|
||||||
|
@ -4,12 +4,12 @@
|
|||||||
{%- set tplroot = tpldir.split('/')[0] %}
|
{%- set tplroot = tpldir.split('/')[0] %}
|
||||||
{%- from tplroot ~ "/map.jinja" import prometheus as p with context %}
|
{%- 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 %}
|
{%- from tplroot ~ "/files/macros.jinja" import format_kwargs with context %}
|
||||||
|
|
||||||
prometheus-package-repo-install-pkgrepo-managed:
|
prometheus-package-repo-install-pkgrepo-managed:
|
||||||
pkgrepo.managed:
|
pkgrepo.managed:
|
||||||
{{- format_kwargs(p.pkg['repo']) }}
|
{{- format_kwargs(p.pkg.repo) }}
|
||||||
file.replace:
|
file.replace:
|
||||||
# redhat workaround for salt issue #51494
|
# redhat workaround for salt issue #51494
|
||||||
- name: /etc/yum.repos.d/prometheus.repo
|
- name: /etc/yum.repos.d/prometheus.repo
|
||||||
|
Loading…
Reference in New Issue
Block a user