cleaned up repositories
This commit is contained in:
parent
918b43d192
commit
5659281c80
@ -1,21 +1,10 @@
|
||||
includes:
|
||||
- repos.msteams
|
||||
|
||||
packages:
|
||||
teams: { status: installed }
|
||||
rocketchat: { status: installed }
|
||||
|
||||
repositories:
|
||||
msteams:
|
||||
humanname: Microsoft Teams
|
||||
baseurl: https://packages.microsoft.com/yumrepos/ms-teams
|
||||
enabled: True
|
||||
gpgautoimport: True
|
||||
refresh: True
|
||||
google-chrome:
|
||||
humanname: Google Chrome
|
||||
baseurl: https://dl.google.com/linux/chrome/rpm/stable/x86_64
|
||||
enabled: True
|
||||
gpgautoimport: True
|
||||
refresh: True
|
||||
|
||||
firefox:
|
||||
addons:
|
||||
Okta Browser Plugin: https://addons.mozilla.org/en-US/firefox/addon/okta-browser-plugin/
|
||||
|
9
salt/pillars/repos/google_chrome.sls
Normal file
9
salt/pillars/repos/google_chrome.sls
Normal file
@ -0,0 +1,9 @@
|
||||
repositories:
|
||||
google-chrome:
|
||||
humanname: google-chrome
|
||||
baseurl: https://dl.google.com/linux/chrome/rpm/stable/x86_64/
|
||||
enabled: True
|
||||
gpgautoimport: True
|
||||
gpgkey: /root/google_linux_signing_key.pub
|
||||
refresh: True
|
||||
signingkey: google_linux_signing_key.pub
|
8
salt/pillars/repos/msteams.sls
Normal file
8
salt/pillars/repos/msteams.sls
Normal file
@ -0,0 +1,8 @@
|
||||
repositories:
|
||||
msteams:
|
||||
humanname: Microsoft Teams
|
||||
baseurl: https://packages.microsoft.com/yumrepos/ms-teams
|
||||
enabled: True
|
||||
gpgautoimport: True
|
||||
refresh: True
|
||||
signingkey: microsoft.asc
|
@ -1,16 +0,0 @@
|
||||
repositories:
|
||||
google-chrome:
|
||||
humanname: google-chrome
|
||||
baseurl: https://dl.google.com/linux/chrome/rpm/stable/x86_64/
|
||||
enabled: True
|
||||
gpgautoimport: True
|
||||
gpgkey: /root/google_linux_signing_key.pub
|
||||
refresh: True
|
||||
{% if grains['os'] == "SUSE" %}
|
||||
packman:
|
||||
humanname: packman
|
||||
baseurl: https://ftp.gwdg.de/pub/linux/misc/packman/suse/{{ grains['oscodename'].replace(" ", "_") }}/
|
||||
enabled: True
|
||||
gpgautoimport: True
|
||||
refresh: True
|
||||
{% endif %}
|
@ -1,12 +1,10 @@
|
||||
base:
|
||||
'*':
|
||||
- packages
|
||||
- repositories
|
||||
- vim
|
||||
- firefox
|
||||
- hosts
|
||||
|
||||
#{% if salt['file.file_exists']('hosts/{0}.sls'.format(grains.nodename)) %}
|
||||
# '{{ grains.nodename }}':
|
||||
# - hosts.{{ grains.nodename }}
|
||||
#{% endif %}
|
||||
- repos.google_chrome
|
||||
{% if grains['os'] == "SUSE" -%}
|
||||
- repos.packman
|
||||
{% endif %}
|
||||
|
@ -1,17 +1,19 @@
|
||||
add the google-chrome signing key:
|
||||
{% for repo, args in salt['pillar.get']('repositories', {}).items() %}
|
||||
{% if 'signingkey' in args %}
|
||||
Add {{ repo }} signing key:
|
||||
file.managed:
|
||||
- name: /root/google_linux_signing_key.pub
|
||||
- source: salt://files/google_linux_signing_key.pub
|
||||
- name: /root/{{ args['signingkey'] }}
|
||||
- source: salt://files/{{ args['signingkey'] }}
|
||||
- user: root
|
||||
- group: root
|
||||
|
||||
import google signing key:
|
||||
Import {{ repo }} signing key:
|
||||
cmd.run:
|
||||
- name: rpm --import /root/google_linux_signing_key.pub
|
||||
- name: rpm --import /root/{{ args['signingkey'] }}
|
||||
- onchanges:
|
||||
- file: add the google-chrome signing key
|
||||
- file: Add {{ repo }} signing key
|
||||
{% endif %}
|
||||
|
||||
{% for repo, args in salt['pillar.get']('repositories', {}).items() %}
|
||||
Add {{ repo }} repository:
|
||||
pkgrepo.managed:
|
||||
- name: {{ repo }}
|
||||
|
Loading…
Reference in New Issue
Block a user