add support to manage repos

This commit is contained in:
nd 2019-05-25 00:56:46 +02:00
parent 496e116830
commit 9f1729ceee
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
4 changed files with 75 additions and 1 deletions

40
README.md Normal file
View file

@ -0,0 +1,40 @@
# Packages
## Supported
Only Apt and Debian Stretch.
Other versions might work but are not tested.
## Parameters and defaults
packages:
pkg: {}
repos: {}
All configuration is to be placed inside the `packages` dict.
```
# dictionary of package names to install. The key is the name of the packages, value musst be != none as none is used as knock out.
pkg: {}
# dictionary of repositories to setup, the key is used as name for the repository. See **repo** for definition for the content
repos: {}
```
**repo**:
```
# url to repo, example: "http://www.deb-multimedia.org stretch main non-free"
url: ''
# only set either key or keyid + keyserver
# gpg key to add for this repo
key: ''
# key id of the key to add, for example "36A1D7869245C8950F966E92D8576A8BA88D21E9"
keyid: ''
# key server to get the key from, for example "keyserver.ubuntu.com"
keyserver:
```