--
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-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/433a9c7a-c091-4a81-a586-d44c25ae3973%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/VgGIyBhFtZM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAEhzMJDshtwczt04PK%3D7S9XWuAcDmdERZvP8RbwCq8j7cqttFA%40mail.gmail.com.
I currenty use vars_files because Ansible doesn't include these files automatically. I was suggesting making a standard place to put vaulted group_vars (or host_vars) and gave mine as an example.Do you object to the idea or just my convention?
On 21 May 2014 16:39, Hagai Kariti <hka...@gmail.com> wrote:I currenty use vars_files because Ansible doesn't include these files automatically. I was suggesting making a standard place to put vaulted group_vars (or host_vars) and gave mine as an example.Do you object to the idea or just my convention?At least the convention, beneath group_vars is definetely not the right place.The idea, I'm not sure what exactly having this standard place would exactly mean?
Vault files are just encrypted files, users might want to 'vault' a file at any location they want.
It's really the same idea as group_vars. For each group a host is a member of, two files are included:- The file under group_vars/, as usual- The vaulted file under the vaulted group_vars dirThis allows you to separate the sensitive and normal parts of your group_vars, so that you won't lose version control on the normal parts.
--
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-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/cc0d252e-fb8b-407e-abf1-3bad7c19eae0%40googlegroups.com.
"Using Vault in group_vars has the downside of losing version control on the vaulted file"
This is not neccessarily the case.
group_vars/ folders are also loaded if they live alongside the playbook, so that can be a good option.You could also keep the variables in a role vars/ directory and pull them in to hosts that need them.In fact, a role can contain nothing but vars, and that works too!
On Wed, May 21, 2014 at 11:21 AM, Hagai Kariti <hka...@gmail.com> wrote:
Whoa, dude. Didn't know that trick. Yeah that actually solves my case pretty nicely. Thanks a bunch.
On Wednesday, May 21, 2014 6:16:19 PM UTC+3, Serge van Ginderachter wrote:On 21 May 2014 16:53, Hagai Kariti <hka...@gmail.com> wrote:It's really the same idea as group_vars. For each group a host is a member of, two files are included:- The file under group_vars/, as usual- The vaulted file under the vaulted group_vars dirThis allows you to separate the sensitive and normal parts of your group_vars, so that you won't lose version control on the normal parts.OK, actually, you already can do something similar, what I do:for each group X I have a directory group_vars/X/every file in that dir will be loaded for group Xthen you van have a group_vars/X/secret.yml e.g. which is vaulted.Would that work for you?--To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/cc0d252e-fb8b-407e-abf1-3bad7c19eae0%40googlegroups.com.
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-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/VgGIyBhFtZM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgx4yAt_LJsc3nn%2BQWxhXDGd8_aj2zk7pyGTEi1yKPBCvw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAO0%3DbmHB44%3DyFj-oW7%2B25MCdzFytXjpCoCY82GoBqZGO%2BLiW0A%40mail.gmail.com.
Yeah that's me :-)
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgzLKR6MGbdOs3nVEDJJySvh8N6GyZwC4%3DvYORoX4gYuOw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d98d99e1-b6ca-4899-93b7-904dab97aa3a%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAO0%3DbmHKqR4WPSD0hb_U3B8KyXa_ptb4okN3Fp--Y389qrheXA%40mail.gmail.com.