mirror of
https://github.com/unman/shaker.git
synced 2024-10-01 01:25:41 -04:00
Salt - add example to create qubes-builder
This commit is contained in:
commit
41de6fd213
9
clone.sls
Normal file
9
clone.sls
Normal file
@ -0,0 +1,9 @@
|
||||
include:
|
||||
- build.template-fedora-30-minimal
|
||||
|
||||
qvm-clone-id:
|
||||
qvm.clone:
|
||||
- require:
|
||||
- sls: build.template-fedora-30-minimal
|
||||
- name: template-builder
|
||||
- source: fedora-30-minimal
|
30
create.sls
Normal file
30
create.sls
Normal file
@ -0,0 +1,30 @@
|
||||
include:
|
||||
- build.clone
|
||||
|
||||
qvm-present-id:
|
||||
qvm.present:
|
||||
- name: builder
|
||||
- template: template-builder
|
||||
- label: gray
|
||||
|
||||
qvm-prefs-id:
|
||||
qvm.prefs:
|
||||
- name: builder
|
||||
- netvm: tor
|
||||
- memory: 800
|
||||
- maxmem: 8000
|
||||
- vcpus: 4
|
||||
|
||||
qvm-features-id:
|
||||
qvm.features:
|
||||
- name: builder
|
||||
- disable:
|
||||
- service.cups
|
||||
|
||||
'qvm-volume extend builder:private 20G' :
|
||||
cmd.run
|
||||
|
||||
update_file:
|
||||
file.prepend:
|
||||
- name: /etc/qubes-rpc/policy/qubes.Gpg
|
||||
- text: builder gpg allow
|
4
create.top
Normal file
4
create.top
Normal file
@ -0,0 +1,4 @@
|
||||
base:
|
||||
dom0:
|
||||
- match: nodegroup
|
||||
- build.create
|
17
template-fedora-30-minimal.sls
Normal file
17
template-fedora-30-minimal.sls
Normal file
@ -0,0 +1,17 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# vim: set syntax=yaml ts=2 sw=2 sts=2 et :
|
||||
|
||||
##
|
||||
# qvm.template-fedora-30-minimal
|
||||
# ======================
|
||||
#
|
||||
# Installs 'fedora-30-minimal' template.
|
||||
#
|
||||
# Execute:
|
||||
# qubesctl state.sls qvm.template-fedora-30-minimal dom0
|
||||
##
|
||||
|
||||
template-fedora-30-minimal:
|
||||
pkg.installed:
|
||||
- name: qubes-template-fedora-30-minimal
|
||||
- fromrepo: qubes-templates-itl
|
Loading…
Reference in New Issue
Block a user