On 05/06/2014 06:04 PM, Marcin wrote:
> I use exec of course – sample of this is below:
> 
>     exec { " something _${name}":
> 
>       command => $some_command_here,
> 
>       require => something [$order],
> 
>       creates => some entry here
> 
>     }
> 
>  
> 
> but what do I need to put in Hiera file, on the FIRST hash – where the
> question marks are in my example?
> 

Hi,

use an empty string and build this slightly differently:

exec { " something _${name}":
      command => $some_command_here,
      creates => some entry here
}
if something[$order] {
  Exec["something_${name}"] { require => something [$order] }
}

But I've got to add - this design feels very hacky. Are you sure you
want to do things this way? It will be horrible to maintain.

If you can explain the whole problem you are solving, someone may have a
suggestion on how to design the solution in a more straight-forward fashion.

Regards,
Felix

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/53733548.1020705%40alumni.tu-berlin.de.
For more options, visit https://groups.google.com/d/optout.

Reply via email to