M. David Bennett
addd0d2da0
Conditionally disable apt-key usage ( #235 )
Disable apt-key usage when salt version is at least 3005, and the user
provides 'signed-by=' in their source, and we're on a newer version of
Debian or Ubuntu.
apt-key is deprecated, see the following for more context:
https://docs.saltproject.io/en/latest/ref/states/all/salt.states.pkgrepo.html#apt-key-deprecated
Signed-off-by: M. David Bennett <mdavidbennett@syntheticworks.com>
8 månader sedan
Matthew Thode
e85db680ac
allow use of new state syntax for module.run
The new syntax has been supported since ~2017.
From the docs, in case they change:
! New Style
test.random_hash:
module.run:
- test.random_hash:
- size: 42
- hash_type: sha256
! Legacy Style
test.random_hash:
module.run:
- size: 42
- hash_type: sha256
4 år sedan
Matthew Thode
311b2bb3d1
sort repos so they do not change order every run
4 år sedan
Bruno Binet
6278efc19c
Fix missing json filter to support salt v2019.2
See salt issues #48309 #51925
5 år sedan
Nick Metz
7df5106a11
Fix for issue #183 Compile issue in linux.system.repo
6 år sedan
azvyagintsev
4494a47bd5
Implement repo.pinning logic
* Ubuntu pinning params allow to be used
multiply times. In same time, old `list`
format now allowing to be predictable
iterated inside jinja
Related-Bug: PROD-21604 (PROD:21604)
Change-Id: If1c0f0f834a296b9a19d0af5fc7673c9229a7ac5
6 år sedan
azvyagintsev
42b64a1f29
Misc fixes
* Add\fix __virtual__ for modules
* Remove unneded multiline for repo.sls
Change-Id: I1f8d321b68dfe6a44264b4ddcd6cd0c576938da1
6 år sedan
azvyagintsev
7903ba97da
Refactor pillar repo key fetch
Change-Id: I511996de9d8abc69d6775b45482f8196c7159a1a
6 år sedan
azvyagintsev
45cf452dbb
Fix global proxy processing
* Fix processing disabled repo
* Extend tests for such case
Change-Id: Ib3243f2b3e70aecef65273be215b30613b8df025
Closes-Bug: PROD-21954 (PROD:21954)
6 år sedan
Alexandru Avadanii
5df87a1a13
system:repo: Fix duplicate file.absent sls IDs
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
6 år sedan
azvyagintsev
ff089d2428
Fix|change system.repo update logic
- Add possibility to remove prereq. packages installation BEFORE
* Crucial logic violation - if we don't have any repo\
have them configured in wrong way - stage will always fail.
* install prereq. packages after all - sounds stupid, but correct.
* By default - it will still try to install prereq. We don't want to
broke OLD logic.See readme, how-to overide such behaviour.
- don't update cache per-repo - it's simply useless and may fail due p1.
Run update only once - after all repos configured\reconfigured
- Add new option at system:refresh_repos_meta - for case, when update
should not be run in any case. By default - true.
- remove 99proxies-salt-{{ name }} along with disabled repo
- fix duplicate 'clean_file' option
Closes-Bug: PROD-15992 (PROD:15992)
Change-Id: I4b312f82f65be80e7726f62482978f68c25746a3
6 år sedan
azvyagintsev
f27f4367d3
0-change sugar
* Make system.repo more readable
Change-Id: I0f28e71f4b00422a70006559525e5be24c4cb065
6 år sedan
Petr Michalec
9f30456a0e
Fix, system.repo don't use curl if not needed
- fixed pkgrepo.manage to use/prefer key_url for salt >= 2017.7
- updated syntax for key verificatoin
- fix, avoid curl for salt:// schema (as in #156 )
Change-Id: I1b50c287a4030a9cefa1b819017d59cc5fb1c197
6 år sedan
Vasyl Saienko
4a23e4d201
Revert "Fix, system.repo don't use curl on fixed pkgrepo.manage"
Commit totally broke all deployment CI job.
This reverts commit 24477c590b
.
Change-Id: Idce0954f0bd363095069e91edc6941ca78b22c60
6 år sedan
Petr Michalec
24477c590b
Fix, system.repo don't use curl on fixed pkgrepo.manage
Change-Id: Id5b5a44f3dfbbdd60442fd2f273b72557fa9e191
6 år sedan
azvyagintsev
eda3823a09
Fix default_repo requirments
Change-Id: I2d374a589e18f38f91beac9514ff5bf3c034d637
6 år sedan
azvyagintsev
6f5e69e2bf
Fix system:repo
* Currently, 'key' was processed only for default repos
* Remove double-definition
* Re-use idempotent fix
Co-Authored-By: Dennis Dmitriev <ddmitriev@mirantis.com>
Change-Id: Ic733f671b39e7b4a8d8e0a83515b6b0632c3a41b
6 år sedan
Martin Horak
9673a18fba
Fixed curl to follow redirections.
6 år sedan
Martin Horak
ceb6686d71
Fix syntax - add quotes.
6 år sedan
Martin Horak
77f2d02118
Rewritten using replace to make one line.
6 år sedan
Martin Horak
c0c7292279
Enable adding multiline GPG key.
6 år sedan
Martin Horak
7b14633199
Fix typo.
6 år sedan
Martin Horak
f1feaf60a3
Change requisite clausule.
Add check for existing key for idempotency.
6 år sedan
Martin Horak
a73b87150e
Workaround for fetching repo keys via proxy.
6 år sedan
Michael Fladischer
1e41e3065d
Use items() instead of iteritems() for Python3 compatibility.
iteritems() was dropped in recent Python3 releases and items() is compatible
with Python 2.7.
6 år sedan
Oleh Hryhorov
3e68a4f78b
The patch fixes access to undefined variable
The patches fixes the situation when repo is not defined but
formula tries to get access to source parameter of the repo.
Change-Id: Ifa7b8475bfc2cece6803ab7da7b2d0d5cc12b652
Related-PROD: PROD-17001
7 år sedan
Petr Michalec
4d5c0a80bd
Fix/Feature: RHEL repo.enabled=False; use pkgrepo.abset
Change-Id: I811cbb17d98df357c4b44bd53ddcc5d01a06537f
7 år sedan
Filip Pytloun
3af564619b
Fix trailing :
Change-Id: Id9d9178ca7417df1b8a83110e92cf4a62907982d
7 år sedan
Filip Pytloun
bd16dc27d7
Allow removing apt repositories
Change-Id: Ib7f34360b7580cbc4260b826d1eb21d443801fa5
7 år sedan
Consatntine Kalinovskiy
8aad368ec8
Fixing invalid variable reference
Change-Id: I7919ef2273185081d56a40af1e8fb4e602da41a2
7 år sedan
Marek Celoud
f163f06194
add update when default repo is changed
Closes-Bug: #PROD-10623
Change-Id: I9e070f7f96b1f0b8eafa12403c5df4ae5be3e42c
7 år sedan
Petr Michalec
e9978ce016
Allow override repo name
- allow multiple repos configured on one system (nightly/testing/stable)
7 år sedan
Bruno Binet
94ee9d58c6
Make sure system.purge_repos is optional
7 år sedan
Martin Polreich
09a648ae21
Add ability to add ppa repo
7 år sedan
Petr Michalec
1ae62b1fb7
Allow direct use of gpg key in linux.system.repo
7 år sedan
Jiri Broulik
25839cca97
purging repos
7 år sedan
Petr Michalec
459da2bc65
avoid install system pkgs before repo configured
7 år sedan
Marek Celoud
9ed340364a
add package include into repo state
Change-Id: I4fd6cafb72fb1ad89c6595782d6705f49777761b
7 år sedan
Filip Pytloun
914eff9e0f
Cleanup reponame.list to remove obsolete entries
Change-Id: Ifaa3adff756ed63f8e1f66d5de344cb0ab1c9e94
7 år sedan
Petr Michalec
10462bba7f
Add system.env, system.profile, system.proxy and configure proxy under system.repo
7 år sedan
Petr Michalec
c146f18e8f
Add consolidate/clean_file/refresh_db pkgrepo options
7 år sedan
Marek Celoud
159d381e0f
require linux_packages install in repo state
7 år sedan
Filip Pytloun
d147ae1dd2
Fix repo_url definition
8 år sedan
Filip Pytloun
96be4379cb
Enhance yum repo definition
8 år sedan
Filip Pytloun
f5383a44be
Initial commit
9 år sedan