Comments (5)
created dom0-powertop.sls, which after deployment in dom0 with ./copy-fom-vm-to-dom0.sh are deployed under /srv/salt/my-config/
dom0-powertop.sls
content:
# -*- coding: utf-8 -*-
# vim: set syntax=yaml ts=2 sw=2 sts=2 et :
dom0:
pkg.installed:
- name: powertop
- fromrepo: fedora
Modified my-config.top so that the dom0 section ressembles to:
# -*- coding: utf-8 -*-
# vim: set syntax=yaml ts=2 sw=2 sts=2 et :
base:
'dom0':
- my-config.anon-whonix
- my-config.personal
- my-config.personal-dev
- my-config.personal-pub
- my-config.untrusted
- my-config.vault
- my-config.dom0-powertop
Ran sudo qubesctl top.enable my-config
in dom0, then sudo qubesctl --show-output --targets dom0-powertop state.highstate
- All your recipes were run, even though I specifified just
dom0-powertop
in the above command. Why is that? Will have to delete everything manually... - dom0-powertop recipe results in
command line error: no such option --best
when launching yumdownloader. How one's installs software and add service launch in the present recipe attempt?
Any guideline in writing dom0 package installation and service inclusion? Thanks a bunch.
from my-qubes-os-formula.
--target
option is about target VMs, not formulas. If you want to run selected formula only, use state.sls my-config.dom0-powertop
instead of state.highstate
. It will run only one sls file, regardless of top file settings. Note that ignoring top file means you may need to provide target VMs manually (using --target
option) - but if you skip --targets
, it will apply to dom0 only, which is probably what you want.
As for command line error: no such option --best
- I guess you're using Debian-based VM for updatevm. Unfortunately, Debian has very old yum/yumdownloader and doesn't have dnf package at all, which makes some options unsupported. Better use Fedora-based VM for that. If you want to use Whonix, you can connect that Fedora-based VM to sys-whonix.
from my-qubes-os-formula.
Thanks @tlaurion for your work and @marmarek for your help.
You will find some instructions on the wiki including how to use state.highstate
, state.sls
, the --skip-dom0
and --targets
options...
If something is missing, just drop me a message in this issue and I will update the wiki accordingly.
from my-qubes-os-formula.
thanks to you both.
So the current works with sudo qubesctl state.sls my-config.dom0-powertop
.
- How would one enable a service in dom0? (
systemctl enable powertop
) - How would one state in a sls (powertop here) that it requires a sys-update based on fedora template that in return depends on sys-whonix or default sys-firewall?
Thanks a bunch. Learning my way through salt and the management stack, but learning fast. :)
from my-qubes-os-formula.
Fixed in #2
from my-qubes-os-formula.
Related Issues (6)
- Deploy NetworkManager randomized mac configuration file under an already configured sys-net HOT 5
- Deploy discard (fstrim) LUKS configuration changes to properly consolidate disk space (SSD, thin provisioning and DVM) HOT 2
- Deploy qubes-updates-cache by default (So updates packages are downloaded once and picked by every TemplateVMs) HOT 2
- Deploy additional AdminVM/make Dom0 manageable through onion hidden service to permit trusted 3rd party remote support HOT 20
- [dotfiles] Install bc HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from my-qubes-os-formula.