I generally view it as over-complicated for most folks, but it is a
supported thing and won't bite :)




On Mon, Jul 7, 2014 at 11:58 AM, Mehul Ved <mehul.n....@gmail.com> wrote:

> Hi,
>   I am setting up a system using ansible where my configuration values
> are defined in defaults/main.yml. If the user wants to override it,
> they will edit vars/main.yml with the same dictionary structure. e.g.
>
> $ cat defaults/main.yml
> app:
>   port: 10000
>   workers: 10
>
> $ cat vars/main.yml
> app:
>   port: 20000
>
> So, now my configuration will be:
> app:
>   port: 2000
>   workers: 10
>
> To do this, I set hash_behaviour=merge in my ansible.cfg. This does
> work as expected. But, I am not sure if it'll cause me any trouble
> going ahead or add unnecessary complexity? Is it safe to go ahead with
> this setting as long the whole deployment code will be maintained by
> me?
>
> --
> With Regards,
> Mehul Ved
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CADTL0oZ0-fyDFEz5RbaD2EoPZv49ucWFej0%2Bt92fTKHPNTzmEQ%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgx1Q_CNj-FqG3%2BTLBnANbkuMbJeBv4jGsuz%3DR%3DpjRbUFw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to