Re: [qubes-users] saltstack: dependencies during vm.create

2020-07-20 Thread unman
On Sun, Jul 19, 2020 at 04:15:17PM +0100, lik...@gmx.de wrote:
> Hi!
> 
> I'm trying to create a DVM from a TemplateVM which is also created in the 
> same file. The DVM depends on the TemplateVM and that's why the creation 
> fails. Running the script twice works.
> 
> My top files looks similar to:
> 
> base:
> ??dom0:
> ?? - match: nodegroup
> ?? - create-template-vm
> ?? - create-dvm
> 
> I've played around with the "require" or "order" key words, but it doesn't 
> work:
> 
> base:
> ??dom0:
> ?? - match: nodegroup
> ?? - create-template-vm
> ?? - create-dvm
> ?? - order: last
> 
> Error is:
> Rendering exception occurred: Jinja error: mapping values are not allowed 
> here; line 6
> 
> Any ideas to enforce an order during vm creation?
> 
> Thanks a lot in advance! P.
> 

Dont put both entries in the top file: - you can use only `create-dvm`.
`require` and `order` are connections between **states** - put them in
the state file.

-- 
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 qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/20200720114521.GC9057%40thirdeyesecurity.org.


[qubes-users] saltstack: dependencies during vm.create

2020-07-19 Thread liked2

Hi!

I'm trying to create a DVM from a TemplateVM which is also created in the same 
file. The DVM depends on the TemplateVM and that's why the creation fails. 
Running the script twice works.

My top files looks similar to:

base:
 dom0:
  - match: nodegroup
  - create-template-vm
  - create-dvm

I've played around with the "require" or "order" key words, but it doesn't work:

base:
 dom0:
  - match: nodegroup
  - create-template-vm
  - create-dvm
    - order: last

Error is:
Rendering exception occurred: Jinja error: mapping values are not allowed here; 
line 6

Any ideas to enforce an order during vm creation?

Thanks a lot in advance! P.

--
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 qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/71df3e7e-02c9-2b23-3113-452d97b3b731%40gmx.de.