Salt - add example to configure builder qube

This commit is contained in:
unman 2019-07-18 13:49:05 +00:00
parent dec18c8195
commit c860c1745e
4 changed files with 46 additions and 0 deletions

16
builder-gitconfig Normal file
View File

@ -0,0 +1,16 @@
[user]
name = NAME
email = EMAIL
signingkey = KEY
[credential]
helper = cache
[commit]
gpgsign = true
[gpg]
program = qubes-gpg-client-wrapper
[alias]
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short

1
builder-split-gpg-config Normal file
View File

@ -0,0 +1 @@
gpg

26
config.sls Normal file
View File

@ -0,0 +1,26 @@
/home/user/.gitconfig:
file.managed:
- source:
- salt://build/builder-gitconfig
- user: user
- group: user
/rw/config/gpg-split-domain:
file.managed:
- source:
- salt://build/builder-split-gpg-config
- user: root
- group: root
/home/user/.rpmmacros:
file.managed:
- source:
- salt://build/builder-rpmmacros
- user: user
- group: user
https://github.com/QubesOS/qubes-builder.git:
git.latest:
- name: https://github.com/QubesOS/qubes-builder.git
- user: user
- target: /home/user/qubes-builder

3
config.top Normal file
View File

@ -0,0 +1,3 @@
base:
builder:
- build.config