From ba5c0fa364533b78cec4330383584546dc67f9b8 Mon Sep 17 00:00:00 2001 From: "Earl C. Ruby III" Date: Thu, 7 Feb 2019 23:30:28 -0800 Subject: [PATCH] Tell Git to ignore the inventory/mycluster directory (#3900) The inventory/mycluster directory gets created when someone follows the instructions in README.md, but it should never be committed to the kubespray repo. Ignore it. --- .gitignore | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 3f7924496..5f89c143a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,6 @@ .vagrant *.retry **/vagrant_ansible_inventory -inventory/credentials/ -inventory/group_vars/fake_hosts.yml -inventory/host_vars/ temp .idea .tox @@ -17,6 +14,12 @@ contrib/terraform/aws/credentials.tfvars *~ vagrant/ +# Ansible inventory +inventory/* +!inventory/local +!inventory/sample +inventory/*/artifacts/ + # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] @@ -24,7 +27,6 @@ __pycache__/ # Distribution / packaging .Python -inventory/*/artifacts/ env/ build/ credentials/