On Sun, Aug 30, 2020 at 11:36:12AM +0100, [email protected] wrote:
> Hi!
>
> What's the correct way to use user specific pillars in qubes salt stack?
>
> My pillars are located in
> /srv/salt/user_pillar/
>
> To enable during a run them I'm running:
> sudo qubesctl --show-output state.highstate
> --pillar-root=/srv/salt/user_pillar/
>
> This works quite well, but when I'm running it towards a target:
> sudo qubesctl --show-output --target myTarget state.highstate
> --pillar-root=/srv/salt/user_pillar/
>
> I receive this error:
> ERROR (exception list index out of range)
>
>
> Any ideas to investigate? Should pillar files be enabled in a different way?
>
>
> Thanks in advance! P.
>
Have you enabled the pillar in /srv/salt/user_pillar/top.sls?
Example:
In /srv/salt/user_pillar/top.sls I have a stanza:
user:
'target':
- get
In /srv/salt/user_pillar/get.sls, I set the pillar:
host: www.qubes-os.org
Then I have the state and top files, get.sls and get.top:
get file:
cmd.run:
- name: wget {{pillar['host'] }}
base:
target:
- get
qubesctl --skip-dom0 --targets=target state.apply get
--
You received this message because you are subscribed to the Google Groups
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/qubes-users/20200907000719.GA24691%40thirdeyesecurity.org.