mirror of
https://github.com/ben-grande/qusal.git
synced 2025-07-30 01:38:38 -04:00
fix: discover non-root username at runtime
Useful when Dom0 has the non-default username, less useful for DomUs. Fixes: https://github.com/ben-grande/qusal/issues/43
This commit is contained in:
parent
e84959bebb
commit
5722a25779
7 changed files with 30 additions and 18 deletions
|
@ -27,13 +27,14 @@ Usage:
|
|||
qvm.start:
|
||||
- name: {{ qube }}
|
||||
|
||||
{% set gui_user = salt['cmd.shell']('groupmems -l -g qubes') -%}
|
||||
{% import "dom0/gui-user.jinja" as gui_user -%}
|
||||
|
||||
"{{ qube }}-sync-appmenus":
|
||||
cmd.run:
|
||||
- require:
|
||||
- qvm: {{ qube }}-start
|
||||
- name: qvm-sync-appmenus {{ qube }}
|
||||
- runas: {{ gui_user }}
|
||||
- runas: {{ gui_user.gui_user }}
|
||||
|
||||
{% if running == 0 -%}
|
||||
"{{ qube }}-shutdown":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue