Git Product home page Git Product logo

Comments (5)

tlaurion avatar tlaurion commented on June 6, 2024

@SkypLabs @marmarek

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.

marmarek avatar marmarek commented on June 6, 2024

--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.

SkypLabs avatar SkypLabs commented on June 6, 2024

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.

tlaurion avatar tlaurion commented on June 6, 2024

thanks to you both.

@marmarek:

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.

tlaurion avatar tlaurion commented on June 6, 2024

Fixed in #2

from my-qubes-os-formula.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.