-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Vagrant capable of creating two servers; Allow Windows
* use vagrantconf(.default).yml instead of env vars * make it work on Windows# This is the 5th commit message: * add .gitattributes to aid CRLF handling to make files on Windows that get copied into VM not have issues * make app1 primary vagrant box
- Loading branch information
1 parent
e132278
commit e138581
Showing
5 changed files
with
229 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Set the default behavior, in case people don't have core.autocrlf set. | ||
* text=auto | ||
|
||
# When using Vagrant on Windows, whatever git has checked out gets transferred | ||
# to the guest OS. If, for example, a shell script is transferred with Windows | ||
# CRLF line endings then errors like the following will occur: | ||
# | ||
# /opt/meza/src/scripts/getmeza.sh: line 6: $'\r': command not found | ||
# | ||
# To avoid this, always checkout many files out with LF line endings. The | ||
# downside to this (I think) is that Windows users editing code and submitting | ||
# changes will have to make sure their text editors respect line endings. | ||
*.sh text eol=lf | ||
*.py text eol=lf | ||
*.js text eol=lf | ||
*.php text eol=lf | ||
*.yml text eol=lf | ||
*.yaml text eol=lf | ||
*.cfg text eol=lf | ||
*.j2 text eol=lf | ||
*.sh text eol=lf | ||
|
||
# Denote all files that are truly binary and should not be modified. | ||
*.png binary | ||
*.jpg binary | ||
*.gif binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.DS_Store | ||
|
||
.vagrant/* | ||
vagrantconf.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
app1: | ||
memory: 2048 | ||
cpus: 1 | ||
|
||
# To add a second app server, uncomment the lines below | ||
# app2: | ||
# memory: 512 | ||
# cpus: 1 |