Skip to content

Commit

Permalink
Improve gitignore (#65)
Browse files Browse the repository at this point in the history
* consolidate terraform gitignore

What I Did
----------
1. Combine all .gitignore files from terraform examples into one file:

    ```
    find examples/terraform/ -name .gitignore -exec cat {} \; -exec git rm --quiet {} \; |
     sort | uniq > examples/terraform/.gitignore
    ```

2. Remove logically overlapping ignore patterns

3. Make the ssh_keys/ pattern work relative to new .gitignore location

3. Add: .terraform.lock.hcl

Why
---
Noticed they were out of sync with each other when I went to add .terraform.lock.hcl

Signed-off-by: Trapier Marshall <[email protected]>

* gitignore: .DS_Store

Signed-off-by: Trapier Marshall <[email protected]>
  • Loading branch information
trapier authored Mar 8, 2021
1 parent b05a0e1 commit 6a30507
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 18 deletions.
Binary file removed .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
ssh_keys/*.pem
.terraform/
cluster.yaml
*terraform.tfstate*
terraform.tfvars
launchpad.yaml
ssh_keys/
.terraform/
*terraform.tfstate*
*.tfvars
.terraform.lock.hcl
5 changes: 0 additions & 5 deletions examples/terraform/aws/.gitignore

This file was deleted.

5 changes: 0 additions & 5 deletions examples/terraform/hetzner/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions examples/terraform/vmware/.gitignore

This file was deleted.

0 comments on commit 6a30507

Please sign in to comment.