blob: 65063858cdbf8669100ddbd4e5e188fce1b7b4b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
include:
- profile.seccheck
- profile.zypp
- profile.node_exporter
{#- to-do: move this to some formula or macro -#}
{%- set osfullname = grains['osfullname'] -%}
{#- this SLES clause likely only works in BCI -#}
{%- if osfullname == 'Leap' or osfullname == 'SLES' -%}
{%- set repoos = grains['osrelease'] -%}
{%- elif osfullname == 'openSUSE Tumbleweed' -%}
{%- set repoos = 'openSUSE_Tumbleweed' -%}
{%- else -%}
{%- do salt.log.error('Unsupported operating system.') -%}
{%- endif -%}
{%- set repobase = 'https://download.opensuse.org/repositories/home:/crameleon:/LibertaCasa/' ~ repoos -%}
{%- set repokey = repobase ~ '/repodata/repomd.xml.key' %}
libertacasa_rpm_key:
cmd.run:
- name: rpm --import {{ repokey }}
- unless: rpm -q --quiet gpg-pubkey-f8722274
libertacasa_rpm_repository:
pkgrepo.managed:
- name: 'LibertaCasa'
- baseurl: {{ repobase }}
- comments:
- 'Managed by Salt'
- gpgcheck: 1
- gpgkey: {{ repokey }}
- require:
- cmd: libertacasa_rpm_key
ca-certificates-syscid:
pkg.installed:
- require:
- pkgrepo: libertacasa_rpm_repository
|