Qubes and Salt question

41 views
Skip to first unread message

onelov...@tuta.io

unread,
May 14, 2020, 12:29:20 PM5/14/20
to qubes...@googlegroups.com
Hello, Qubes Community!

Can you help me how to correctly use Salt in dom0 for automate tasks.
For example, i need to clone debian-10 template and install toolchain on it.

apt install -y \
build-essential \
zlib1g-dev uuid-dev libdigest-sha-perl \
libelf-dev \
bc \
bzip2 \
bison \
flex \
git \
gnupg \
iasl \
m4 \
nasm \
patch \
python \
wget \
gnat \
cpio \
ccache \
pkg-config \
cmake \
libusb-1.0-0-dev \
pkg-config \
texinfo \

Qubes Salt files stored at /srv folder as root.
where do i need to put my custom *.sls files?
and how launch it use qubesctl from dom0?
Thanks.
--
Securely sent with Tutanota. Get your own encrypted, ad-free mailbox:

unman

unread,
May 15, 2020, 9:04:53 AM5/15/20
to qubes...@googlegroups.com
> where do i need to put my custom *.sls files?and how launch it use qubesctl from dom0?
> Thanks.

You can create folder within /srv/salt and put files there - reference
them as <folder>.<file>:
qubesctl state.apply <folder>.<file>

If you prefer not to use /srv/salt you can run:
`qubesctl state.apply qubes.user-dirs`
which will create a usable "user_" structure under /srv
Reply all
Reply to author
Forward
0 new messages